datadog_api_client 2.26.1 → 2.28.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/conftest.py +0 -3
- data/.generator/schemas/v1/openapi.yaml +2123 -212
- data/.generator/schemas/v2/openapi.yaml +3082 -240
- data/.generator/src/generator/formatter.py +3 -44
- data/.generator/src/generator/keywords.json +43 -0
- data/.generator/src/generator/templates/api.j2 +4 -0
- data/.generator/src/generator/templates/api_client.j2 +1 -0
- data/.github/workflows/approved_status.yml +4 -0
- data/.github/workflows/changelog.yml +5 -0
- data/.github/workflows/codeql-analysis.yml +4 -0
- data/.github/workflows/docs.yml +3 -0
- data/.github/workflows/labeler.yml +5 -0
- data/.github/workflows/prepare_release.yml +4 -0
- data/.github/workflows/publish.yml +5 -0
- data/.github/workflows/release.yml +4 -0
- data/.github/workflows/stale.yml +6 -0
- data/.github/workflows/test.yml +3 -0
- data/.github/workflows/test_integration.yml +3 -0
- data/CHANGELOG.md +66 -0
- data/examples/v1/dashboards/CreateDashboard_1413226400.rb +66 -0
- data/examples/v1/dashboards/CreateDashboard_1433408735.rb +44 -0
- data/examples/v1/dashboards/CreateDashboard_3298564989.rb +65 -0
- data/examples/v1/dashboards/CreateDashboard_794302680.rb +152 -0
- data/examples/v1/gcp-integration/CreateGCPIntegration.rb +1 -0
- data/examples/v1/gcp-integration/UpdateGCPIntegration.rb +1 -0
- data/examples/v1/gcp-integration/UpdateGCPIntegration_3544259255.rb +1 -0
- data/examples/v1/monitors/ValidateExistingMonitor.rb +0 -1
- data/examples/v1/monitors/ValidateMonitor.rb +0 -1
- data/examples/v1/monitors/ValidateMonitor_4247196452.rb +0 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest.rb +3 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1072503741.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1402674167.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_3829801148.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsMobileTest.rb +27 -0
- data/examples/v1/synthetics/FetchUptimes.rb +13 -0
- data/examples/v1/synthetics/GetMobileTest.rb +8 -0
- data/examples/v1/synthetics/UpdateBrowserTest.rb +3 -1
- data/examples/v1/synthetics/UpdateMobileTest.rb +30 -0
- data/examples/v2/domain-allowlist/GetDomainAllowlist.rb +5 -0
- data/examples/v2/domain-allowlist/PatchDomainAllowlist.rb +17 -0
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_2597004741.rb +1 -0
- data/examples/v2/incidents/CreateIncidentType.rb +19 -0
- data/examples/v2/incidents/DeleteIncidentType.rb +11 -0
- data/examples/v2/incidents/GetIncidentType.rb +8 -0
- data/examples/v2/incidents/ListIncidentTypes.rb +8 -0
- data/examples/v2/incidents/UpdateIncidentType.rb +22 -0
- data/examples/v2/logs/AggregateLogs_2955613758.rb +0 -1
- data/examples/v2/metrics/QueryScalarData.rb +0 -3
- data/examples/v2/metrics/QueryScalarData_3112571352.rb +0 -3
- data/examples/v2/metrics/QueryTimeseriesData.rb +0 -3
- data/examples/v2/metrics/QueryTimeseriesData_301142940.rb +0 -3
- data/examples/v2/microsoft-teams-integration/CreateTenantBasedHandle.rb +17 -0
- data/examples/v2/microsoft-teams-integration/CreateTenantBasedHandle_1540689753.rb +17 -0
- data/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle.rb +5 -0
- data/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle_377884154.rb +8 -0
- data/examples/v2/microsoft-teams-integration/GetChannelByName.rb +5 -0
- data/examples/v2/microsoft-teams-integration/GetTenantBasedHandle.rb +5 -0
- data/examples/v2/microsoft-teams-integration/GetTenantBasedHandle_2883785101.rb +8 -0
- data/examples/v2/microsoft-teams-integration/ListTenantBasedHandles.rb +5 -0
- data/examples/v2/microsoft-teams-integration/ListTenantBasedHandles_769592979.rb +5 -0
- data/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle.rb +17 -0
- data/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle_419892746.rb +18 -0
- data/examples/v2/rum-metrics/CreateRumMetric.rb +32 -0
- data/examples/v2/rum-metrics/DeleteRumMetric.rb +8 -0
- data/examples/v2/rum-metrics/GetRumMetric.rb +8 -0
- data/examples/v2/rum-metrics/ListRumMetrics.rb +5 -0
- data/examples/v2/rum-metrics/UpdateRumMetric.rb +29 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule.rb +9 -0
- data/examples/v2/security-monitoring/ListFindings_1668290866.rb +14 -0
- data/examples/v2/usage-metering/GetBillingDimensionMapping.rb +8 -0
- data/examples/v2/usage-metering/GetMonthlyCostAttribution.rb +4 -1
- data/lib/datadog_api_client/api_client.rb +1 -0
- data/lib/datadog_api_client/configuration.rb +6 -2
- data/lib/datadog_api_client/inflector.rb +109 -5
- data/lib/datadog_api_client/v1/api/monitors_api.rb +6 -3
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +274 -0
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +5 -3
- data/lib/datadog_api_client/v1/models/gcp_account.rb +11 -1
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +2 -3
- data/lib/datadog_api_client/v1/models/list_stream_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +4 -6
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +21 -61
- data/lib/datadog_api_client/v1/models/slo_history_monitor.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_batch_result.rb +2 -2
- data/lib/datadog_api_client/v1/models/{synthetics_status.rb → synthetics_batch_status.rb} +4 -4
- data/lib/datadog_api_client/v1/models/synthetics_config_variable_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/synthetics_fetch_uptimes_payload.rb +167 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step.rb +229 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params.rb +249 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_direction.rb +29 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element.rb +175 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_context_type.rb +27 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_relative_position.rb +115 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_user_locator.rb +117 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_user_locator_values_items.rb +115 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_user_locator_values_items_type.rb +30 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_positions_items.rb +115 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_value.rb +63 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_variable.rb +144 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_type.rb +42 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test.rb +263 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_config.rb +117 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_options.rb +380 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_tests_mobile_application.rb +173 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_tests_mobile_application_reference_type.rb +27 -0
- data/lib/datadog_api_client/v1/models/synthetics_step.rb +22 -2
- data/lib/datadog_api_client/v1/models/synthetics_step_detail.rb +21 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_ci_options.rb +19 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_details_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options.rb +34 -4
- data/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options_notification_preset_name.rb +29 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling.rb +31 -2
- data/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling_timeframe.rb +32 -6
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request_port.rb +63 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_restriction_policy_binding.rb +117 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_restriction_policy_binding_relation.rb +27 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_uptime.rb +135 -0
- data/lib/datadog_api_client/v1/models/synthetics_uptime.rb +161 -0
- data/lib/datadog_api_client/v1/models/table_widget_request.rb +16 -4
- data/lib/datadog_api_client/v1/models/table_widget_text_format_match.rb +144 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_match_type.rb +31 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_palette.rb +36 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_replace.rb +63 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_replace_all.rb +144 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_replace_all_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_replace_substring.rb +165 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_replace_substring_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_rule.rb +163 -0
- data/lib/datadog_api_client/v1/models/toplist_widget_stacked.rb +1 -12
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +51 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +51 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +51 -1
- data/lib/datadog_api_client/v2/api/authn_mappings_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +3 -69
- data/lib/datadog_api_client/v2/api/domain_allowlist_api.rb +153 -0
- data/lib/datadog_api_client/v2/api/incidents_api.rb +362 -1
- data/lib/datadog_api_client/v2/api/metrics_api.rb +5 -17
- data/lib/datadog_api_client/v2/api/microsoft_teams_integration_api.rb +434 -0
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/rum_metrics_api.rb +357 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +3 -0
- data/lib/datadog_api_client/v2/api/software_catalog_api.rb +19 -19
- data/lib/datadog_api_client/v2/api/teams_api.rb +1 -0
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +79 -10
- data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_body_item.rb +125 -0
- data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_body_item_attributes.rb +127 -0
- data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_body_item_attributes_endpoints_items.rb +127 -0
- data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_body_item_attributes_endpoints_items_status.rb +27 -0
- data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/cloudflare_account_create_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/domain_allowlist.rb +151 -0
- data/lib/datadog_api_client/v2/models/domain_allowlist_attributes.rb +117 -0
- data/lib/datadog_api_client/v2/models/domain_allowlist_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/domain_allowlist_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/domain_allowlist_response_data.rb +151 -0
- data/lib/datadog_api_client/v2/models/domain_allowlist_response_data_attributes.rb +117 -0
- data/lib/datadog_api_client/v2/models/domain_allowlist_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/entity_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_incident.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_raw_schema.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_related_oncall_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_related_oncall_escalation_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_schema.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_v3_api_version.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_code_location_item.rb +3 -3
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_event_item.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_integration_opsgenie.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_integration_pagerduty.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_log_item.rb +3 -3
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_performance.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_pipelines.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_datastore.rb +4 -4
- data/lib/datadog_api_client/v2/models/entity_v3_datastore_datadog.rb +4 -4
- data/lib/datadog_api_client/v2/models/entity_v3_datastore_spec.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_integrations.rb +3 -3
- data/lib/datadog_api_client/v2/models/entity_v3_metadata.rb +9 -9
- data/lib/datadog_api_client/v2/models/entity_v3_metadata_additional_owners_items.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_metadata_contacts_items.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_metadata_links_items.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_metadata_owner.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_queue.rb +5 -5
- data/lib/datadog_api_client/v2/models/entity_v3_queue_datadog.rb +4 -4
- data/lib/datadog_api_client/v2/models/entity_v3_queue_spec.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_service.rb +5 -5
- data/lib/datadog_api_client/v2/models/entity_v3_service_datadog.rb +6 -6
- data/lib/datadog_api_client/v2/models/entity_v3_service_spec.rb +3 -3
- data/lib/datadog_api_client/v2/models/entity_v3_system.rb +5 -5
- data/lib/datadog_api_client/v2/models/entity_v3_system_datadog.rb +5 -5
- data/lib/datadog_api_client/v2/models/fastly_services_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/finding_attributes.rb +14 -4
- data/lib/datadog_api_client/v2/models/finding_vulnerability_type.rb +29 -0
- data/lib/datadog_api_client/v2/models/gcp_metric_namespace_config.rb +115 -0
- data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +23 -1
- data/lib/datadog_api_client/v2/models/incident_create_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/incident_integration_metadata_metadata.rb +2 -1
- data/lib/datadog_api_client/v2/models/incident_notification_handle.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_response_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/incident_response_included_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_type_attributes.rb +193 -0
- data/lib/datadog_api_client/v2/models/incident_type_create_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/incident_type_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_type_list_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/{aws_related_account.rb → incident_type_object.rb} +8 -8
- data/lib/datadog_api_client/v2/models/incident_type_patch_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/incident_type_patch_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_type_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/{aws_related_account_type.rb → incident_type_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/incident_type_update_attributes.rb +175 -0
- data/lib/datadog_api_client/v2/models/incident_user_attributes.rb +153 -0
- data/lib/datadog_api_client/v2/models/incident_user_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/include_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/list_entity_catalog_response_links.rb +3 -3
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_metric_type_category.rb +27 -0
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/microsoft_teams_channel_info_response_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_channel_info_response_data.rb +147 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_channel_info_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_create_tenant_based_handle_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_get_channel_by_name_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_attributes.rb +186 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_info_response_attributes.rb +249 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_info_response_data.rb +147 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_info_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_request_attributes.rb +202 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_response_data.rb +147 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handles_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_update_tenant_based_handle_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_update_tenant_based_handle_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/ms_teams_integration_metadata.rb +125 -0
- data/lib/datadog_api_client/v2/models/ms_teams_integration_metadata_teams_item.rb +186 -0
- data/lib/datadog_api_client/v2/models/powerpack_template_variable.rb +35 -4
- data/lib/datadog_api_client/v2/models/relation_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/relationship_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/rum_metric_compute.rb +145 -0
- data/lib/datadog_api_client/v2/models/rum_metric_compute_aggregation_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/rum_metric_create_attributes.rb +176 -0
- data/lib/datadog_api_client/v2/models/rum_metric_create_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/rum_metric_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_metric_event_type.rb +32 -0
- data/lib/datadog_api_client/v2/models/rum_metric_filter.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_metric_group_by.rb +133 -0
- data/lib/datadog_api_client/v2/models/rum_metric_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/rum_metric_response_attributes.rb +147 -0
- data/lib/datadog_api_client/v2/models/rum_metric_response_compute.rb +127 -0
- data/lib/datadog_api_client/v2/models/rum_metric_response_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/rum_metric_response_filter.rb +105 -0
- data/lib/datadog_api_client/v2/models/rum_metric_response_group_by.rb +115 -0
- data/lib/datadog_api_client/v2/models/{aws_related_account_attributes.rb → rum_metric_response_uniqueness.rb} +11 -21
- data/lib/datadog_api_client/v2/models/rum_metric_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_metric_uniqueness.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_metric_uniqueness_when.rb +27 -0
- data/lib/datadog_api_client/v2/models/rum_metric_update_attributes.rb +127 -0
- data/lib/datadog_api_client/v2/models/rum_metric_update_compute.rb +106 -0
- data/lib/datadog_api_client/v2/models/rum_metric_update_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/rum_metric_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/{aws_related_accounts_response.rb → rum_metrics_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/security_monitoring_reference_table.rb +145 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_test_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_included_keyword_configuration.rb +15 -4
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta.rb +2 -2
- data/lib/datadog_api_client/v2/models/team_update_attributes.rb +1 -26
- data/lib/datadog_api_client/v2/models/upsert_catalog_entity_request.rb +1 -1
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +145 -8
- data/examples/v2/cloud-cost-management/ListAWSRelatedAccounts.rb +0 -5
@@ -5,49 +5,8 @@ import re
|
|
5
5
|
from functools import singledispatch
|
6
6
|
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
"and",
|
11
|
-
"def",
|
12
|
-
"end",
|
13
|
-
"in",
|
14
|
-
"or",
|
15
|
-
"self",
|
16
|
-
"unless",
|
17
|
-
"__LINE__",
|
18
|
-
"begin",
|
19
|
-
"defined?",
|
20
|
-
"ensure",
|
21
|
-
"module",
|
22
|
-
"redo",
|
23
|
-
"super",
|
24
|
-
"until",
|
25
|
-
"BEGIN",
|
26
|
-
"break",
|
27
|
-
"do",
|
28
|
-
"false",
|
29
|
-
"next",
|
30
|
-
"rescue",
|
31
|
-
"then",
|
32
|
-
"when",
|
33
|
-
"END",
|
34
|
-
"case",
|
35
|
-
"else",
|
36
|
-
"for",
|
37
|
-
"nil",
|
38
|
-
"retry",
|
39
|
-
"true",
|
40
|
-
"while",
|
41
|
-
"alias",
|
42
|
-
"class",
|
43
|
-
"elsif",
|
44
|
-
"if",
|
45
|
-
"not",
|
46
|
-
"return",
|
47
|
-
"undef",
|
48
|
-
"yield",
|
49
|
-
"hash",
|
50
|
-
}
|
8
|
+
with (pathlib.Path(__file__).parent / "keywords.json").open() as f:
|
9
|
+
KEYWORDS = json.load(f)
|
51
10
|
|
52
11
|
with (pathlib.Path(__file__).parent / "replacement.json").open() as f:
|
53
12
|
EDGE_CASES = json.load(f)
|
@@ -251,7 +210,7 @@ def format_data_with_schema(
|
|
251
210
|
return str(x)
|
252
211
|
|
253
212
|
def format_string(x):
|
254
|
-
if isinstance(x, bool):
|
213
|
+
if isinstance(x, (bool, int, float)):
|
255
214
|
raise TypeError(f"{x} is not supported type {schema}")
|
256
215
|
if schema.get("format") == "binary":
|
257
216
|
return open_file(x)
|
@@ -0,0 +1,43 @@
|
|
1
|
+
[
|
2
|
+
"__FILE__",
|
3
|
+
"and",
|
4
|
+
"def",
|
5
|
+
"end",
|
6
|
+
"in",
|
7
|
+
"or",
|
8
|
+
"self",
|
9
|
+
"unless",
|
10
|
+
"__LINE__",
|
11
|
+
"begin",
|
12
|
+
"defined?",
|
13
|
+
"ensure",
|
14
|
+
"module",
|
15
|
+
"redo",
|
16
|
+
"super",
|
17
|
+
"until",
|
18
|
+
"BEGIN",
|
19
|
+
"break",
|
20
|
+
"do",
|
21
|
+
"false",
|
22
|
+
"next",
|
23
|
+
"rescue",
|
24
|
+
"then",
|
25
|
+
"when",
|
26
|
+
"END",
|
27
|
+
"case",
|
28
|
+
"else",
|
29
|
+
"for",
|
30
|
+
"nil",
|
31
|
+
"retry",
|
32
|
+
"true",
|
33
|
+
"while",
|
34
|
+
"alias",
|
35
|
+
"class",
|
36
|
+
"elsif",
|
37
|
+
"if",
|
38
|
+
"not",
|
39
|
+
"return",
|
40
|
+
"undef",
|
41
|
+
"yield",
|
42
|
+
"hash"
|
43
|
+
]
|
@@ -207,6 +207,10 @@ module {{ module_name }}::{{ version|upper }}
|
|
207
207
|
:return_type => return_type,
|
208
208
|
:api_version => "{{ version|upper }}"
|
209
209
|
)
|
210
|
+
{%- set query_multi_params = operation|parameters | map(attribute=1) | selectattr("in", "equalto", "query")| map("collection_format")| select("eq", "multi") | first-%}
|
211
|
+
{%- if query_multi_params %}
|
212
|
+
new_options[:query_string_normalizer] = HTTParty::Request::NON_RAILS_QUERY_STRING_NORMALIZER
|
213
|
+
{%- endif %}
|
210
214
|
|
211
215
|
data, status_code, headers = @api_client.call_api(Net::HTTP::{{ httpMethod|camel_case }}, local_var_path, new_options)
|
212
216
|
if @api_client.config.debugging
|
@@ -188,6 +188,7 @@ module {{ module_name }}
|
|
188
188
|
|
189
189
|
req_opts[:pem] = File.read(@config.cert_file) if @config.cert_file
|
190
190
|
req_opts[:pem_password] = File.read(@config.key_file) if @config.key_file
|
191
|
+
req_opts[:query_string_normalizer] = opts[:query_string_normalizer] if opts[:query_string_normalizer]
|
191
192
|
|
192
193
|
opts[:stream_body] = true if opts[:return_type] == 'File'
|
193
194
|
|
data/.github/workflows/docs.yml
CHANGED
data/.github/workflows/stale.yml
CHANGED
data/.github/workflows/test.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,71 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 2.28.1 / 2024-11-07
|
4
|
+
|
5
|
+
### Fixed
|
6
|
+
* Fix Toplist widget's stacked display style - remove legend as required field by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2030
|
7
|
+
* Remove user fields that are unsupported by the Incidents API by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2043
|
8
|
+
* Fix Synthetics batch status by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2084
|
9
|
+
### Added
|
10
|
+
* Add MSTeams integration metadata info by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2045
|
11
|
+
* Add `code_analysis_sa_committers_hwm` and `code_analysis_sca_committers_hwm` to UsageMetering by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2046
|
12
|
+
* Update GCP API Spec to support `is_resource_change_collection_enabled` by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2049
|
13
|
+
* Add vulnerability type to Findings API by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2048
|
14
|
+
* Update Documentation for Data Stream Monitoring by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2055
|
15
|
+
* Add LLM Observability to ListStreamSource by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2054
|
16
|
+
* Add synthetics stepDetail.allowFailure and stepDetail.failure by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2064
|
17
|
+
* Integrate incident types into Incidents API documentation by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2047
|
18
|
+
* Add `use_recommended_keywords` attribute to sensitive data scanner rule spec by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2075
|
19
|
+
* Add domain allowlist endpoints by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2072
|
20
|
+
* Add v2 endpoints for RUM custom metrics. by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2076
|
21
|
+
* Documentation for beta /v2/usage/billing_dimension_mapping by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1995
|
22
|
+
* Add `alwaysExecute` and `exitIfSucceed` to Synthetics steps by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2085
|
23
|
+
* Add metric_namespace_configs to GCP v2 API by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2087
|
24
|
+
### Changed
|
25
|
+
* Edit Naming for v2 Microsoft Teams Integration Endpoints by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2044
|
26
|
+
* Change the mobile device ids from enum to string by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2042
|
27
|
+
* Mark Cost Attribution end_month parameter as not required by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2027
|
28
|
+
* Allow for any type for additionalProperties in HTTPLogItem by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2062
|
29
|
+
* Make some amendments to the new mobiles schema by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2061
|
30
|
+
* Make value be oneOf number or string by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2077
|
31
|
+
* Add examples for resources for Cloudflare by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2070
|
32
|
+
### Removed
|
33
|
+
* Remove deprecated estimated usage types for usage attribution by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2068
|
34
|
+
### Deprecated
|
35
|
+
* Deprecate two sds metadata fields by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2060
|
36
|
+
* Delete `api/v2/cost/aws_related_accounts` from spec by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2078
|
37
|
+
* Deprecate `api/v2/cost/enabled` by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2080
|
38
|
+
|
39
|
+
|
40
|
+
**Full Changelog**: https://github.com/DataDog/datadog-api-client-ruby/compare/v2.27.1...v2.28.1
|
41
|
+
|
42
|
+
## 2.27.1 / 2024-10-02
|
43
|
+
|
44
|
+
### Fixed
|
45
|
+
* change schema used in FastlyServicesResponse by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2020
|
46
|
+
* Update configuration for frozen-string-literal by @HParker in https://github.com/DataDog/datadog-api-client-ruby/pull/1971
|
47
|
+
### Added
|
48
|
+
* Allow Table Widget requests to specify text replace formatting in dashboards by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1993
|
49
|
+
* Add documentation for Data Jobs Monitoring summary keys by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1997
|
50
|
+
* Update estimate docs with realtime changes by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2024
|
51
|
+
* Ensure clients can handle empty oneOf objects by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2022
|
52
|
+
* Add referenceTables field to security monitoring endpoints by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2017
|
53
|
+
* Add UA documentation for new DJM usage_type by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2018
|
54
|
+
* Add v2 endpoints for MS Teams Integration by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2026
|
55
|
+
* Add documention for OCI Integration by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2033
|
56
|
+
* Add schema for mobile test by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2010
|
57
|
+
* Add Synthetics endpoint to fetch uptimes in API spec by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1984
|
58
|
+
### Changed
|
59
|
+
* Split the synthetics request port field into a oneOf by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2005
|
60
|
+
* Remove unused field `color` in `TeamUpdateAttributes` by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1998
|
61
|
+
* Powerpack add support for prefix and available values by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2011
|
62
|
+
* Update v2 metrics list endpoint filter by metric type to use metric type category by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2025
|
63
|
+
|
64
|
+
## New Contributors
|
65
|
+
* @HParker made their first contribution in https://github.com/DataDog/datadog-api-client-ruby/pull/1971
|
66
|
+
|
67
|
+
**Full Changelog**: https://github.com/DataDog/datadog-api-client-ruby/compare/v2.26.1...v2.27.1
|
68
|
+
|
3
69
|
## 2.26.1 / 2024-09-11
|
4
70
|
|
5
71
|
### Fixed
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# Create a new dashboard with a toplist widget with stacked type and no legend specified
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V1::DashboardsAPI.new
|
5
|
+
|
6
|
+
body = DatadogAPIClient::V1::Dashboard.new({
|
7
|
+
title: "Example-Dashboard",
|
8
|
+
description: "",
|
9
|
+
widgets: [
|
10
|
+
DatadogAPIClient::V1::Widget.new({
|
11
|
+
layout: DatadogAPIClient::V1::WidgetLayout.new({
|
12
|
+
x: 0,
|
13
|
+
y: 0,
|
14
|
+
width: 47,
|
15
|
+
height: 15,
|
16
|
+
}),
|
17
|
+
definition: DatadogAPIClient::V1::ToplistWidgetDefinition.new({
|
18
|
+
title: "",
|
19
|
+
title_size: "16",
|
20
|
+
title_align: DatadogAPIClient::V1::WidgetTextAlign::LEFT,
|
21
|
+
time: DatadogAPIClient::V1::WidgetLegacyLiveSpan.new({}),
|
22
|
+
style: DatadogAPIClient::V1::ToplistWidgetStyle.new({
|
23
|
+
display: DatadogAPIClient::V1::ToplistWidgetStacked.new({
|
24
|
+
type: DatadogAPIClient::V1::ToplistWidgetStackedType::STACKED,
|
25
|
+
}),
|
26
|
+
scaling: DatadogAPIClient::V1::ToplistWidgetScaling::RELATIVE,
|
27
|
+
palette: "dog_classic",
|
28
|
+
}),
|
29
|
+
type: DatadogAPIClient::V1::ToplistWidgetDefinitionType::TOPLIST,
|
30
|
+
requests: [
|
31
|
+
DatadogAPIClient::V1::ToplistWidgetRequest.new({
|
32
|
+
queries: [
|
33
|
+
DatadogAPIClient::V1::FormulaAndFunctionMetricQueryDefinition.new({
|
34
|
+
data_source: DatadogAPIClient::V1::FormulaAndFunctionMetricDataSource::METRICS,
|
35
|
+
name: "query1",
|
36
|
+
query: "avg:system.cpu.user{*} by {service}",
|
37
|
+
aggregator: DatadogAPIClient::V1::FormulaAndFunctionMetricAggregation::AVG,
|
38
|
+
}),
|
39
|
+
],
|
40
|
+
formulas: [
|
41
|
+
DatadogAPIClient::V1::WidgetFormula.new({
|
42
|
+
formula: "query1",
|
43
|
+
}),
|
44
|
+
],
|
45
|
+
sort: DatadogAPIClient::V1::WidgetSortBy.new({
|
46
|
+
count: 10,
|
47
|
+
order_by: [
|
48
|
+
DatadogAPIClient::V1::WidgetGroupSort.new({
|
49
|
+
type: DatadogAPIClient::V1::GroupType::GROUP,
|
50
|
+
name: "service",
|
51
|
+
order: DatadogAPIClient::V1::WidgetSort::ASCENDING,
|
52
|
+
}),
|
53
|
+
],
|
54
|
+
}),
|
55
|
+
response_format: DatadogAPIClient::V1::FormulaAndFunctionResponseFormat::SCALAR,
|
56
|
+
}),
|
57
|
+
],
|
58
|
+
}),
|
59
|
+
}),
|
60
|
+
],
|
61
|
+
template_variables: [],
|
62
|
+
layout_type: DatadogAPIClient::V1::DashboardLayoutType::FREE,
|
63
|
+
is_read_only: false,
|
64
|
+
notify_list: [],
|
65
|
+
})
|
66
|
+
p api_instance.create_dashboard(body)
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# Clients deserialize a dashboard with a empty time object
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V1::DashboardsAPI.new
|
5
|
+
|
6
|
+
body = DatadogAPIClient::V1::Dashboard.new({
|
7
|
+
title: "Example-Dashboard",
|
8
|
+
widgets: [
|
9
|
+
DatadogAPIClient::V1::Widget.new({
|
10
|
+
definition: DatadogAPIClient::V1::TimeseriesWidgetDefinition.new({
|
11
|
+
title: "Example Cloud Cost Query",
|
12
|
+
title_size: "16",
|
13
|
+
title_align: DatadogAPIClient::V1::WidgetTextAlign::LEFT,
|
14
|
+
type: DatadogAPIClient::V1::TimeseriesWidgetDefinitionType::TIMESERIES,
|
15
|
+
requests: [
|
16
|
+
DatadogAPIClient::V1::TimeseriesWidgetRequest.new({
|
17
|
+
formulas: [
|
18
|
+
DatadogAPIClient::V1::WidgetFormula.new({
|
19
|
+
formula: "query1",
|
20
|
+
}),
|
21
|
+
],
|
22
|
+
queries: [
|
23
|
+
DatadogAPIClient::V1::FormulaAndFunctionCloudCostQueryDefinition.new({
|
24
|
+
data_source: DatadogAPIClient::V1::FormulaAndFunctionCloudCostDataSource::CLOUD_COST,
|
25
|
+
name: "query1",
|
26
|
+
query: "sum:aws.cost.amortized{*} by {aws_product}.rollup(sum, monthly)",
|
27
|
+
}),
|
28
|
+
],
|
29
|
+
response_format: DatadogAPIClient::V1::FormulaAndFunctionResponseFormat::TIMESERIES,
|
30
|
+
style: DatadogAPIClient::V1::WidgetRequestStyle.new({
|
31
|
+
palette: "dog_classic",
|
32
|
+
line_type: DatadogAPIClient::V1::WidgetLineType::SOLID,
|
33
|
+
line_width: DatadogAPIClient::V1::WidgetLineWidth::NORMAL,
|
34
|
+
}),
|
35
|
+
display_type: DatadogAPIClient::V1::WidgetDisplayType::BARS,
|
36
|
+
}),
|
37
|
+
],
|
38
|
+
time: DatadogAPIClient::V1::WidgetLegacyLiveSpan.new({}),
|
39
|
+
}),
|
40
|
+
}),
|
41
|
+
],
|
42
|
+
layout_type: DatadogAPIClient::V1::DashboardLayoutType::ORDERED,
|
43
|
+
})
|
44
|
+
p api_instance.create_dashboard(body)
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# Create a new dashboard with llm_observability_stream list_stream widget
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V1::DashboardsAPI.new
|
5
|
+
|
6
|
+
body = DatadogAPIClient::V1::Dashboard.new({
|
7
|
+
layout_type: DatadogAPIClient::V1::DashboardLayoutType::ORDERED,
|
8
|
+
title: "Example-Dashboard with list_stream widget",
|
9
|
+
widgets: [
|
10
|
+
DatadogAPIClient::V1::Widget.new({
|
11
|
+
definition: DatadogAPIClient::V1::ListStreamWidgetDefinition.new({
|
12
|
+
type: DatadogAPIClient::V1::ListStreamWidgetDefinitionType::LIST_STREAM,
|
13
|
+
requests: [
|
14
|
+
DatadogAPIClient::V1::ListStreamWidgetRequest.new({
|
15
|
+
response_format: DatadogAPIClient::V1::ListStreamResponseFormat::EVENT_LIST,
|
16
|
+
query: DatadogAPIClient::V1::ListStreamQuery.new({
|
17
|
+
data_source: DatadogAPIClient::V1::ListStreamSource::LLM_OBSERVABILITY_STREAM,
|
18
|
+
query_string: "@event_type:span @parent_id:undefined",
|
19
|
+
indexes: [],
|
20
|
+
}),
|
21
|
+
columns: [
|
22
|
+
DatadogAPIClient::V1::ListStreamColumn.new({
|
23
|
+
field: "@status",
|
24
|
+
width: DatadogAPIClient::V1::ListStreamColumnWidth::COMPACT,
|
25
|
+
}),
|
26
|
+
DatadogAPIClient::V1::ListStreamColumn.new({
|
27
|
+
field: "@content.prompt",
|
28
|
+
width: DatadogAPIClient::V1::ListStreamColumnWidth::AUTO,
|
29
|
+
}),
|
30
|
+
DatadogAPIClient::V1::ListStreamColumn.new({
|
31
|
+
field: "@content.response.content",
|
32
|
+
width: DatadogAPIClient::V1::ListStreamColumnWidth::AUTO,
|
33
|
+
}),
|
34
|
+
DatadogAPIClient::V1::ListStreamColumn.new({
|
35
|
+
field: "timestamp",
|
36
|
+
width: DatadogAPIClient::V1::ListStreamColumnWidth::AUTO,
|
37
|
+
}),
|
38
|
+
DatadogAPIClient::V1::ListStreamColumn.new({
|
39
|
+
field: "@ml_app",
|
40
|
+
width: DatadogAPIClient::V1::ListStreamColumnWidth::AUTO,
|
41
|
+
}),
|
42
|
+
DatadogAPIClient::V1::ListStreamColumn.new({
|
43
|
+
field: "service",
|
44
|
+
width: DatadogAPIClient::V1::ListStreamColumnWidth::AUTO,
|
45
|
+
}),
|
46
|
+
DatadogAPIClient::V1::ListStreamColumn.new({
|
47
|
+
field: "@meta.evaluations.quality",
|
48
|
+
width: DatadogAPIClient::V1::ListStreamColumnWidth::AUTO,
|
49
|
+
}),
|
50
|
+
DatadogAPIClient::V1::ListStreamColumn.new({
|
51
|
+
field: "@meta.evaluations.security",
|
52
|
+
width: DatadogAPIClient::V1::ListStreamColumnWidth::AUTO,
|
53
|
+
}),
|
54
|
+
DatadogAPIClient::V1::ListStreamColumn.new({
|
55
|
+
field: "@duration",
|
56
|
+
width: DatadogAPIClient::V1::ListStreamColumnWidth::AUTO,
|
57
|
+
}),
|
58
|
+
],
|
59
|
+
}),
|
60
|
+
],
|
61
|
+
}),
|
62
|
+
}),
|
63
|
+
],
|
64
|
+
})
|
65
|
+
p api_instance.create_dashboard(body)
|
@@ -0,0 +1,152 @@
|
|
1
|
+
# Create a new dashboard with query_table widget and text formatting
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V1::DashboardsAPI.new
|
5
|
+
|
6
|
+
body = DatadogAPIClient::V1::Dashboard.new({
|
7
|
+
title: "Example-Dashboard",
|
8
|
+
description: "",
|
9
|
+
widgets: [
|
10
|
+
DatadogAPIClient::V1::Widget.new({
|
11
|
+
definition: DatadogAPIClient::V1::TableWidgetDefinition.new({
|
12
|
+
title: "",
|
13
|
+
title_size: "16",
|
14
|
+
title_align: DatadogAPIClient::V1::WidgetTextAlign::LEFT,
|
15
|
+
type: DatadogAPIClient::V1::TableWidgetDefinitionType::QUERY_TABLE,
|
16
|
+
requests: [
|
17
|
+
DatadogAPIClient::V1::TableWidgetRequest.new({
|
18
|
+
queries: [
|
19
|
+
DatadogAPIClient::V1::FormulaAndFunctionMetricQueryDefinition.new({
|
20
|
+
aggregator: DatadogAPIClient::V1::FormulaAndFunctionMetricAggregation::AVG,
|
21
|
+
data_source: DatadogAPIClient::V1::FormulaAndFunctionMetricDataSource::METRICS,
|
22
|
+
name: "query1",
|
23
|
+
query: "avg:aws.stream.globalaccelerator.processed_bytes_in{*} by {aws_account,acceleratoripaddress}",
|
24
|
+
}),
|
25
|
+
DatadogAPIClient::V1::FormulaAndFunctionMetricQueryDefinition.new({
|
26
|
+
aggregator: DatadogAPIClient::V1::FormulaAndFunctionMetricAggregation::AVG,
|
27
|
+
data_source: DatadogAPIClient::V1::FormulaAndFunctionMetricDataSource::METRICS,
|
28
|
+
name: "query2",
|
29
|
+
query: "avg:aws.stream.globalaccelerator.processed_bytes_out{*} by {aws_account,acceleratoripaddress}",
|
30
|
+
}),
|
31
|
+
],
|
32
|
+
response_format: DatadogAPIClient::V1::FormulaAndFunctionResponseFormat::SCALAR,
|
33
|
+
text_formats: [
|
34
|
+
[
|
35
|
+
DatadogAPIClient::V1::TableWidgetTextFormatRule.new({
|
36
|
+
match: DatadogAPIClient::V1::TableWidgetTextFormatMatch.new({
|
37
|
+
type: DatadogAPIClient::V1::TableWidgetTextFormatMatchType::IS,
|
38
|
+
value: "fruit",
|
39
|
+
}),
|
40
|
+
palette: DatadogAPIClient::V1::TableWidgetTextFormatPalette::WHITE_ON_RED,
|
41
|
+
replace: DatadogAPIClient::V1::TableWidgetTextFormatReplaceAll.new({
|
42
|
+
type: DatadogAPIClient::V1::TableWidgetTextFormatReplaceAllType::ALL,
|
43
|
+
with: "vegetable",
|
44
|
+
}),
|
45
|
+
}),
|
46
|
+
DatadogAPIClient::V1::TableWidgetTextFormatRule.new({
|
47
|
+
match: DatadogAPIClient::V1::TableWidgetTextFormatMatch.new({
|
48
|
+
type: DatadogAPIClient::V1::TableWidgetTextFormatMatchType::IS,
|
49
|
+
value: "animal",
|
50
|
+
}),
|
51
|
+
palette: DatadogAPIClient::V1::TableWidgetTextFormatPalette::CUSTOM_BG,
|
52
|
+
custom_bg_color: "#632ca6",
|
53
|
+
}),
|
54
|
+
DatadogAPIClient::V1::TableWidgetTextFormatRule.new({
|
55
|
+
match: DatadogAPIClient::V1::TableWidgetTextFormatMatch.new({
|
56
|
+
type: DatadogAPIClient::V1::TableWidgetTextFormatMatchType::IS,
|
57
|
+
value: "robot",
|
58
|
+
}),
|
59
|
+
palette: DatadogAPIClient::V1::TableWidgetTextFormatPalette::RED_ON_WHITE,
|
60
|
+
}),
|
61
|
+
DatadogAPIClient::V1::TableWidgetTextFormatRule.new({
|
62
|
+
match: DatadogAPIClient::V1::TableWidgetTextFormatMatch.new({
|
63
|
+
type: DatadogAPIClient::V1::TableWidgetTextFormatMatchType::IS,
|
64
|
+
value: "ai",
|
65
|
+
}),
|
66
|
+
palette: DatadogAPIClient::V1::TableWidgetTextFormatPalette::YELLOW_ON_WHITE,
|
67
|
+
}),
|
68
|
+
],
|
69
|
+
[
|
70
|
+
DatadogAPIClient::V1::TableWidgetTextFormatRule.new({
|
71
|
+
match: DatadogAPIClient::V1::TableWidgetTextFormatMatch.new({
|
72
|
+
type: DatadogAPIClient::V1::TableWidgetTextFormatMatchType::IS_NOT,
|
73
|
+
value: "xyz",
|
74
|
+
}),
|
75
|
+
palette: DatadogAPIClient::V1::TableWidgetTextFormatPalette::WHITE_ON_YELLOW,
|
76
|
+
}),
|
77
|
+
],
|
78
|
+
[
|
79
|
+
DatadogAPIClient::V1::TableWidgetTextFormatRule.new({
|
80
|
+
match: DatadogAPIClient::V1::TableWidgetTextFormatMatch.new({
|
81
|
+
type: DatadogAPIClient::V1::TableWidgetTextFormatMatchType::CONTAINS,
|
82
|
+
value: "test",
|
83
|
+
}),
|
84
|
+
palette: DatadogAPIClient::V1::TableWidgetTextFormatPalette::WHITE_ON_GREEN,
|
85
|
+
replace: DatadogAPIClient::V1::TableWidgetTextFormatReplaceAll.new({
|
86
|
+
type: DatadogAPIClient::V1::TableWidgetTextFormatReplaceAllType::ALL,
|
87
|
+
with: "vegetable",
|
88
|
+
}),
|
89
|
+
}),
|
90
|
+
],
|
91
|
+
[
|
92
|
+
DatadogAPIClient::V1::TableWidgetTextFormatRule.new({
|
93
|
+
match: DatadogAPIClient::V1::TableWidgetTextFormatMatch.new({
|
94
|
+
type: DatadogAPIClient::V1::TableWidgetTextFormatMatchType::DOES_NOT_CONTAIN,
|
95
|
+
value: "blah",
|
96
|
+
}),
|
97
|
+
palette: DatadogAPIClient::V1::TableWidgetTextFormatPalette::BLACK_ON_LIGHT_RED,
|
98
|
+
}),
|
99
|
+
],
|
100
|
+
[
|
101
|
+
DatadogAPIClient::V1::TableWidgetTextFormatRule.new({
|
102
|
+
match: DatadogAPIClient::V1::TableWidgetTextFormatMatch.new({
|
103
|
+
type: DatadogAPIClient::V1::TableWidgetTextFormatMatchType::STARTS_WITH,
|
104
|
+
value: "abc",
|
105
|
+
}),
|
106
|
+
palette: DatadogAPIClient::V1::TableWidgetTextFormatPalette::BLACK_ON_LIGHT_YELLOW,
|
107
|
+
}),
|
108
|
+
],
|
109
|
+
[
|
110
|
+
DatadogAPIClient::V1::TableWidgetTextFormatRule.new({
|
111
|
+
match: DatadogAPIClient::V1::TableWidgetTextFormatMatch.new({
|
112
|
+
type: DatadogAPIClient::V1::TableWidgetTextFormatMatchType::ENDS_WITH,
|
113
|
+
value: "xyz",
|
114
|
+
}),
|
115
|
+
palette: DatadogAPIClient::V1::TableWidgetTextFormatPalette::BLACK_ON_LIGHT_GREEN,
|
116
|
+
}),
|
117
|
+
DatadogAPIClient::V1::TableWidgetTextFormatRule.new({
|
118
|
+
match: DatadogAPIClient::V1::TableWidgetTextFormatMatch.new({
|
119
|
+
type: DatadogAPIClient::V1::TableWidgetTextFormatMatchType::ENDS_WITH,
|
120
|
+
value: "zzz",
|
121
|
+
}),
|
122
|
+
palette: DatadogAPIClient::V1::TableWidgetTextFormatPalette::GREEN_ON_WHITE,
|
123
|
+
}),
|
124
|
+
DatadogAPIClient::V1::TableWidgetTextFormatRule.new({
|
125
|
+
match: DatadogAPIClient::V1::TableWidgetTextFormatMatch.new({
|
126
|
+
type: DatadogAPIClient::V1::TableWidgetTextFormatMatchType::IS,
|
127
|
+
value: "animal",
|
128
|
+
}),
|
129
|
+
palette: DatadogAPIClient::V1::TableWidgetTextFormatPalette::CUSTOM_TEXT,
|
130
|
+
custom_fg_color: "#632ca6",
|
131
|
+
}),
|
132
|
+
],
|
133
|
+
],
|
134
|
+
formulas: [],
|
135
|
+
}),
|
136
|
+
],
|
137
|
+
has_search_bar: DatadogAPIClient::V1::TableWidgetHasSearchBar::NEVER,
|
138
|
+
}),
|
139
|
+
layout: DatadogAPIClient::V1::WidgetLayout.new({
|
140
|
+
x: 0,
|
141
|
+
y: 0,
|
142
|
+
width: 4,
|
143
|
+
height: 4,
|
144
|
+
}),
|
145
|
+
}),
|
146
|
+
],
|
147
|
+
template_variables: [],
|
148
|
+
layout_type: DatadogAPIClient::V1::DashboardLayoutType::FREE,
|
149
|
+
is_read_only: false,
|
150
|
+
notify_list: [],
|
151
|
+
})
|
152
|
+
p api_instance.create_dashboard(body)
|
@@ -15,6 +15,7 @@ body = DatadogAPIClient::V1::GCPAccount.new({
|
|
15
15
|
],
|
16
16
|
is_cspm_enabled: true,
|
17
17
|
is_security_command_center_enabled: true,
|
18
|
+
is_resource_change_collection_enabled: true,
|
18
19
|
private_key: "private_key",
|
19
20
|
private_key_id: "123456789abcdefghi123456789abcdefghijklm",
|
20
21
|
project_id: "datadog-apitest",
|