datadog_api_client 2.0.2 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.apigentools-info +6 -6
- data/.generator/poetry.lock +21 -14
- data/.generator/pyproject.toml +1 -1
- data/.generator/schemas/v1/openapi.yaml +840 -908
- data/.generator/schemas/v2/openapi.yaml +1304 -913
- data/.generator/src/generator/formatter.py +1 -1
- data/.generator/src/generator/templates/api_client.j2 +5 -1
- data/.generator/src/generator/templates/configuration.j2 +17 -0
- data/.github/workflows/test.yml +4 -1
- data/.github/workflows/test_integration.yml +5 -0
- data/.pre-commit-config.yaml +1 -1
- data/CHANGELOG.md +49 -0
- data/README.md +11 -0
- data/examples/v1/dashboards/CreateDashboard_1094917386.rb +37 -0
- data/examples/v1/dashboards/CreateDashboard_1307120899.rb +61 -0
- data/examples/v1/dashboards/CreateDashboard_1423904722.rb +38 -0
- data/examples/v1/dashboards/CreateDashboard_2652180930.rb +43 -0
- data/examples/v1/dashboards/CreateDashboard_2850365602.rb +55 -0
- data/examples/v1/dashboards/CreateDashboard_3117424216.rb +33 -0
- data/examples/v1/dashboards/CreateDashboard_3669695268.rb +50 -0
- data/examples/v1/dashboards/CreateDashboard_858397694.rb +41 -0
- data/examples/v1/monitors/ValidateExistingMonitor.rb +1 -0
- data/examples/v1/monitors/ValidateMonitor.rb +1 -0
- data/examples/v1/monitors/ValidateMonitor_4247196452.rb +38 -0
- data/examples/v1/synthetics/CreateGlobalVariable.rb +1 -0
- data/examples/v1/synthetics/CreateGlobalVariable_1068962881.rb +23 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +10 -0
- data/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +6 -0
- data/examples/v1/synthetics/EditGlobalVariable.rb +1 -0
- data/examples/v1/synthetics/UpdateBrowserTest.rb +1 -0
- data/examples/v1/usage-metering/GetDailyCustomReports.rb +0 -3
- data/examples/v1/usage-metering/GetMonthlyCustomReports.rb +0 -3
- data/examples/v1/usage-metering/GetSpecifiedDailyCustomReports.rb +0 -3
- data/examples/v1/usage-metering/GetSpecifiedMonthlyCustomReports.rb +0 -3
- data/examples/v1/usage-metering/GetUsageAttribution.rb +0 -3
- data/examples/v2/incidents/ListIncidentAttachments.rb +8 -0
- data/examples/v2/incidents/ListIncidentAttachments_2457735435.rb +11 -0
- data/examples/v2/incidents/UpdateIncidentAttachments.rb +38 -0
- data/examples/v2/incidents/UpdateIncidentAttachments_3881702075.rb +26 -0
- data/examples/v2/metrics/ListActiveMetricConfigurations.rb +5 -0
- data/examples/v2/metrics/ListTagConfigurations.rb +1 -1
- data/examples/v2/metrics/ListTagConfigurations_265033704.rb +8 -0
- data/examples/v2/metrics/{ListTagConfigurations_103226315.rb → ListTagConfigurations_2739018321.rb} +1 -1
- data/examples/v2/metrics/SubmitMetrics_1762007427.rb +23 -0
- data/examples/v2/roles/UpdateRole.rb +13 -0
- data/examples/v2/rum/CreateRUMApplication.rb +15 -0
- data/examples/v2/rum/DeleteRUMApplication.rb +8 -0
- data/examples/v2/rum/GetRUMApplication.rb +8 -0
- data/examples/v2/rum/GetRUMApplications.rb +5 -0
- data/examples/v2/rum/UpdateRUMApplication.rb +16 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule.rb +3 -2
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_461183901.rb +2 -2
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_498211763.rb +2 -2
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_914562040.rb +50 -0
- data/examples/v2/security-monitoring/GetSecurityMonitoringSignal.rb +5 -0
- data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.rb +2 -1
- data/examples/v2/usage-metering/GetEstimatedCostByOrg.rb +1 -4
- data/examples/v2/usage-metering/GetEstimatedCostByOrg_2734954020.rb +2 -4
- data/examples/v2/usage-metering/GetEstimatedCostByOrg_3186693804.rb +2 -4
- data/examples/v2/usage-metering/GetHistoricalCostByOrg.rb +8 -0
- data/examples/v2/usage-metering/GetHourlyUsage.rb +5 -0
- data/generate.sh +30 -0
- data/lib/datadog_api_client/api_client.rb +5 -1
- data/lib/datadog_api_client/configuration.rb +20 -6
- data/lib/datadog_api_client/inflector.rb +67 -1
- data/lib/datadog_api_client/v1/api/metrics_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +3 -1
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +42 -62
- data/lib/datadog_api_client/v1/models/dashboard_template_variable.rb +14 -2
- data/lib/datadog_api_client/v1/models/dashboard_template_variable_preset_value.rb +28 -5
- data/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition.rb +14 -4
- data/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +2 -0
- data/lib/datadog_api_client/v1/models/list_stream_query.rb +14 -4
- data/lib/datadog_api_client/v1/models/list_stream_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/metric_content_encoding.rb +1 -0
- data/lib/datadog_api_client/v1/models/monitor_options.rb +28 -1
- data/lib/datadog_api_client/v1/models/monitor_summary_widget_definition.rb +13 -1
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +4 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +41 -1
- data/lib/datadog_api_client/v1/models/on_missing_data_option.rb +33 -0
- data/lib/datadog_api_client/v1/models/search_service_level_objective.rb +111 -0
- data/lib/datadog_api_client/v1/models/search_service_level_objective_attributes.rb +286 -0
- data/lib/datadog_api_client/v1/models/search_service_level_objective_data.rb +134 -0
- data/lib/datadog_api_client/v1/models/search_slo_query.rb +137 -0
- data/lib/datadog_api_client/v1/models/search_slo_response_data_attributes.rb +8 -8
- data/lib/datadog_api_client/v1/models/search_slo_response_links.rb +2 -0
- data/lib/datadog_api_client/v1/models/search_slo_threshold.rb +184 -0
- data/lib/datadog_api_client/v1/models/search_slo_timeframe.rb +28 -0
- data/lib/datadog_api_client/v1/models/slo_creator.rb +131 -0
- data/lib/datadog_api_client/v1/models/slo_list_widget_definition.rb +185 -0
- data/lib/datadog_api_client/v1/models/slo_list_widget_definition_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/slo_list_widget_query.rb +149 -0
- data/lib/datadog_api_client/v1/models/slo_list_widget_request.rb +143 -0
- data/lib/datadog_api_client/v1/models/slo_list_widget_request_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/slo_overall_statuses.rb +174 -0
- data/lib/datadog_api_client/v1/models/slo_raw_error_budget_remaining.rb +121 -0
- data/lib/datadog_api_client/v1/models/synthetics_assertion_operator.rb +1 -0
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth.rb +2 -1
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest.rb +155 -0
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb +11 -12
- data/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +31 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_process_status.rb +0 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +15 -1
- data/lib/datadog_api_client/v1/models/topology_map_widget_definition.rb +193 -0
- data/lib/datadog_api_client/v1/models/topology_map_widget_definition_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/topology_query.rb +144 -0
- data/lib/datadog_api_client/v1/models/topology_query_data_source.rb +27 -0
- data/lib/datadog_api_client/v1/models/topology_request.rb +121 -0
- data/lib/datadog_api_client/v1/models/topology_request_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +4 -0
- data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +4 -0
- data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +41 -1
- data/lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb +12 -1
- data/lib/datadog_api_client/v1/models/usage_fargate_hour.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +31 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +21 -1
- data/lib/datadog_api_client/v1/models/widget_definition.rb +3 -1
- data/lib/datadog_api_client/v1/models/widget_monitor_summary_sort.rb +2 -0
- data/lib/datadog_api_client/v2/api/events_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/incident_services_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/incident_teams_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/incidents_api.rb +155 -0
- data/lib/datadog_api_client/v2/api/logs_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/metrics_api.rb +77 -9
- data/lib/datadog_api_client/v2/api/rum_api.rb +329 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +68 -3
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +83 -17
- data/lib/datadog_api_client/v2/models/content_encoding.rb +1 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_attachment_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_attributes.rb +63 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_data.rb +187 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_link_attachment_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_link_attributes.rb +145 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_link_attributes_attachment_object.rb +143 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_postmortem_attachment_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_postmortem_attributes.rb +145 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_related_object.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_relationships.rb +111 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_update_attributes.rb +63 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_update_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_update_request.rb +127 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_update_response.rb +137 -0
- data/lib/datadog_api_client/v2/models/incident_attachments_postmortem_attributes_attachment_object.rb +143 -0
- data/lib/datadog_api_client/v2/models/incident_attachments_response.rb +136 -0
- data/lib/datadog_api_client/v2/models/incident_attachments_response_included_item.rb +62 -0
- data/lib/datadog_api_client/v2/models/incident_related_object.rb +1 -0
- data/lib/datadog_api_client/v2/models/incident_response_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/incident_response_included_item.rb +2 -1
- data/lib/datadog_api_client/v2/models/incident_response_relationships.rb +14 -14
- data/lib/datadog_api_client/v2/models/metric_active_configuration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/metric_content_encoding.rb +2 -0
- data/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations.rb +133 -0
- data/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations_response.rb +111 -0
- data/lib/datadog_api_client/v2/models/metric_suggested_tags_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_attachment.rb +124 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_attachment_data.rb +145 -0
- data/lib/datadog_api_client/v2/models/role_update_data.rb +11 -1
- data/lib/datadog_api_client/v2/models/rum_application.rb +166 -0
- data/lib/datadog_api_client/v2/models/rum_application_attributes.rb +279 -0
- data/lib/datadog_api_client/v2/models/rum_application_create.rb +145 -0
- data/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb +132 -0
- data/lib/datadog_api_client/v2/models/rum_application_create_request.rb +122 -0
- data/lib/datadog_api_client/v2/models/rum_application_create_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_application_response.rb +111 -0
- data/lib/datadog_api_client/v2/models/rum_application_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_application_update.rb +155 -0
- data/lib/datadog_api_client/v2/models/rum_application_update_attributes.rb +121 -0
- data/lib/datadog_api_client/v2/models/rum_application_update_request.rb +122 -0
- data/lib/datadog_api_client/v2/models/rum_application_update_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_applications_response.rb +113 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb +36 -248
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb +36 -151
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_query_aggregation.rb +1 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb +37 -253
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb +275 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_query.rb +187 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +279 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +275 -0
- data/lib/datadog_api_client/v2/models/{security_monitoring_rule_query_create.rb → security_monitoring_standard_rule_query.rb} +3 -3
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +279 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +97 -6
- data/Makefile +0 -7
- data/examples/v2/metrics/ListTagConfigurations_1799362914.rb +0 -8
|
@@ -31,6 +31,9 @@ module DatadogAPIClient::V1
|
|
|
31
31
|
# Shows the 99th percentile of all Azure app services using APM over all hours in the current date for the given org.
|
|
32
32
|
attr_accessor :apm_azure_app_service_host_top99p
|
|
33
33
|
|
|
34
|
+
# Shows the average of all APM ECS Fargate tasks over all hours in the current months for the given org.
|
|
35
|
+
attr_accessor :apm_fargate_count_avg
|
|
36
|
+
|
|
34
37
|
# Shows the 99th percentile of all distinct APM hosts over all hours in the current date for the given org.
|
|
35
38
|
attr_accessor :apm_host_top99p
|
|
36
39
|
|
|
@@ -85,6 +88,9 @@ module DatadogAPIClient::V1
|
|
|
85
88
|
# Shows the 99th percentile of all Cloud Security Posture Management Azure app services hosts over all hours in the current date for the given org.
|
|
86
89
|
attr_accessor :cspm_aas_host_top99p
|
|
87
90
|
|
|
91
|
+
# Shows the 99th percentile of all Cloud Security Posture Management AWS hosts over all hours in the current date for the given org.
|
|
92
|
+
attr_accessor :cspm_aws_host_top99p
|
|
93
|
+
|
|
88
94
|
# Shows the 99th percentile of all Cloud Security Posture Management Azure hosts over all hours in the current date for the given org.
|
|
89
95
|
attr_accessor :cspm_azure_host_top99p
|
|
90
96
|
|
|
@@ -187,6 +193,9 @@ module DatadogAPIClient::V1
|
|
|
187
193
|
# The organization public id.
|
|
188
194
|
attr_accessor :public_id
|
|
189
195
|
|
|
196
|
+
# The region of the organization.
|
|
197
|
+
attr_accessor :region
|
|
198
|
+
|
|
190
199
|
# Shows the sum of all mobile sessions and all browser lite and legacy sessions over all hours in the current date for the given org.
|
|
191
200
|
attr_accessor :rum_browser_and_mobile_session_count
|
|
192
201
|
|
|
@@ -226,6 +235,7 @@ module DatadogAPIClient::V1
|
|
|
226
235
|
{
|
|
227
236
|
:'agent_host_top99p' => :'agent_host_top99p',
|
|
228
237
|
:'apm_azure_app_service_host_top99p' => :'apm_azure_app_service_host_top99p',
|
|
238
|
+
:'apm_fargate_count_avg' => :'apm_fargate_count_avg',
|
|
229
239
|
:'apm_host_top99p' => :'apm_host_top99p',
|
|
230
240
|
:'audit_logs_lines_indexed_sum' => :'audit_logs_lines_indexed_sum',
|
|
231
241
|
:'avg_profiled_fargate_tasks' => :'avg_profiled_fargate_tasks',
|
|
@@ -244,6 +254,7 @@ module DatadogAPIClient::V1
|
|
|
244
254
|
:'container_avg' => :'container_avg',
|
|
245
255
|
:'container_hwm' => :'container_hwm',
|
|
246
256
|
:'cspm_aas_host_top99p' => :'cspm_aas_host_top99p',
|
|
257
|
+
:'cspm_aws_host_top99p' => :'cspm_aws_host_top99p',
|
|
247
258
|
:'cspm_azure_host_top99p' => :'cspm_azure_host_top99p',
|
|
248
259
|
:'cspm_container_avg' => :'cspm_container_avg',
|
|
249
260
|
:'cspm_container_hwm' => :'cspm_container_hwm',
|
|
@@ -278,6 +289,7 @@ module DatadogAPIClient::V1
|
|
|
278
289
|
:'opentelemetry_host_top99p' => :'opentelemetry_host_top99p',
|
|
279
290
|
:'profiling_host_top99p' => :'profiling_host_top99p',
|
|
280
291
|
:'public_id' => :'public_id',
|
|
292
|
+
:'region' => :'region',
|
|
281
293
|
:'rum_browser_and_mobile_session_count' => :'rum_browser_and_mobile_session_count',
|
|
282
294
|
:'rum_session_count_sum' => :'rum_session_count_sum',
|
|
283
295
|
:'rum_total_session_count_sum' => :'rum_total_session_count_sum',
|
|
@@ -304,6 +316,7 @@ module DatadogAPIClient::V1
|
|
|
304
316
|
{
|
|
305
317
|
:'agent_host_top99p' => :'Integer',
|
|
306
318
|
:'apm_azure_app_service_host_top99p' => :'Integer',
|
|
319
|
+
:'apm_fargate_count_avg' => :'Integer',
|
|
307
320
|
:'apm_host_top99p' => :'Integer',
|
|
308
321
|
:'audit_logs_lines_indexed_sum' => :'Integer',
|
|
309
322
|
:'avg_profiled_fargate_tasks' => :'Integer',
|
|
@@ -322,6 +335,7 @@ module DatadogAPIClient::V1
|
|
|
322
335
|
:'container_avg' => :'Integer',
|
|
323
336
|
:'container_hwm' => :'Integer',
|
|
324
337
|
:'cspm_aas_host_top99p' => :'Integer',
|
|
338
|
+
:'cspm_aws_host_top99p' => :'Integer',
|
|
325
339
|
:'cspm_azure_host_top99p' => :'Integer',
|
|
326
340
|
:'cspm_container_avg' => :'Integer',
|
|
327
341
|
:'cspm_container_hwm' => :'Integer',
|
|
@@ -356,6 +370,7 @@ module DatadogAPIClient::V1
|
|
|
356
370
|
:'opentelemetry_host_top99p' => :'Integer',
|
|
357
371
|
:'profiling_host_top99p' => :'Integer',
|
|
358
372
|
:'public_id' => :'String',
|
|
373
|
+
:'region' => :'String',
|
|
359
374
|
:'rum_browser_and_mobile_session_count' => :'Integer',
|
|
360
375
|
:'rum_session_count_sum' => :'Integer',
|
|
361
376
|
:'rum_total_session_count_sum' => :'Integer',
|
|
@@ -401,6 +416,10 @@ module DatadogAPIClient::V1
|
|
|
401
416
|
self.apm_azure_app_service_host_top99p = attributes[:'apm_azure_app_service_host_top99p']
|
|
402
417
|
end
|
|
403
418
|
|
|
419
|
+
if attributes.key?(:'apm_fargate_count_avg')
|
|
420
|
+
self.apm_fargate_count_avg = attributes[:'apm_fargate_count_avg']
|
|
421
|
+
end
|
|
422
|
+
|
|
404
423
|
if attributes.key?(:'apm_host_top99p')
|
|
405
424
|
self.apm_host_top99p = attributes[:'apm_host_top99p']
|
|
406
425
|
end
|
|
@@ -473,6 +492,10 @@ module DatadogAPIClient::V1
|
|
|
473
492
|
self.cspm_aas_host_top99p = attributes[:'cspm_aas_host_top99p']
|
|
474
493
|
end
|
|
475
494
|
|
|
495
|
+
if attributes.key?(:'cspm_aws_host_top99p')
|
|
496
|
+
self.cspm_aws_host_top99p = attributes[:'cspm_aws_host_top99p']
|
|
497
|
+
end
|
|
498
|
+
|
|
476
499
|
if attributes.key?(:'cspm_azure_host_top99p')
|
|
477
500
|
self.cspm_azure_host_top99p = attributes[:'cspm_azure_host_top99p']
|
|
478
501
|
end
|
|
@@ -609,6 +632,10 @@ module DatadogAPIClient::V1
|
|
|
609
632
|
self.public_id = attributes[:'public_id']
|
|
610
633
|
end
|
|
611
634
|
|
|
635
|
+
if attributes.key?(:'region')
|
|
636
|
+
self.region = attributes[:'region']
|
|
637
|
+
end
|
|
638
|
+
|
|
612
639
|
if attributes.key?(:'rum_browser_and_mobile_session_count')
|
|
613
640
|
self.rum_browser_and_mobile_session_count = attributes[:'rum_browser_and_mobile_session_count']
|
|
614
641
|
end
|
|
@@ -669,6 +696,7 @@ module DatadogAPIClient::V1
|
|
|
669
696
|
self.class == o.class &&
|
|
670
697
|
agent_host_top99p == o.agent_host_top99p &&
|
|
671
698
|
apm_azure_app_service_host_top99p == o.apm_azure_app_service_host_top99p &&
|
|
699
|
+
apm_fargate_count_avg == o.apm_fargate_count_avg &&
|
|
672
700
|
apm_host_top99p == o.apm_host_top99p &&
|
|
673
701
|
audit_logs_lines_indexed_sum == o.audit_logs_lines_indexed_sum &&
|
|
674
702
|
avg_profiled_fargate_tasks == o.avg_profiled_fargate_tasks &&
|
|
@@ -687,6 +715,7 @@ module DatadogAPIClient::V1
|
|
|
687
715
|
container_avg == o.container_avg &&
|
|
688
716
|
container_hwm == o.container_hwm &&
|
|
689
717
|
cspm_aas_host_top99p == o.cspm_aas_host_top99p &&
|
|
718
|
+
cspm_aws_host_top99p == o.cspm_aws_host_top99p &&
|
|
690
719
|
cspm_azure_host_top99p == o.cspm_azure_host_top99p &&
|
|
691
720
|
cspm_container_avg == o.cspm_container_avg &&
|
|
692
721
|
cspm_container_hwm == o.cspm_container_hwm &&
|
|
@@ -721,6 +750,7 @@ module DatadogAPIClient::V1
|
|
|
721
750
|
opentelemetry_host_top99p == o.opentelemetry_host_top99p &&
|
|
722
751
|
profiling_host_top99p == o.profiling_host_top99p &&
|
|
723
752
|
public_id == o.public_id &&
|
|
753
|
+
region == o.region &&
|
|
724
754
|
rum_browser_and_mobile_session_count == o.rum_browser_and_mobile_session_count &&
|
|
725
755
|
rum_session_count_sum == o.rum_session_count_sum &&
|
|
726
756
|
rum_total_session_count_sum == o.rum_total_session_count_sum &&
|
|
@@ -745,7 +775,7 @@ module DatadogAPIClient::V1
|
|
|
745
775
|
# @return [Integer] Hash code
|
|
746
776
|
# @!visibility private
|
|
747
777
|
def hash
|
|
748
|
-
[agent_host_top99p, apm_azure_app_service_host_top99p, apm_host_top99p, audit_logs_lines_indexed_sum, avg_profiled_fargate_tasks, aws_host_top99p, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p, billable_ingested_bytes_sum, browser_rum_lite_session_count_sum, browser_rum_replay_session_count_sum, browser_rum_units_sum, ci_pipeline_indexed_spans_sum, ci_test_indexed_spans_sum, ci_visibility_pipeline_committers_hwm, ci_visibility_test_committers_hwm, container_avg, container_hwm, cspm_aas_host_top99p, cspm_azure_host_top99p, cspm_container_avg, cspm_container_hwm, cspm_host_top99p, custom_ts_avg, cws_container_count_avg, cws_host_top99p, dbm_host_top99p_sum, dbm_queries_avg_sum, fargate_tasks_count_avg, fargate_tasks_count_hwm, gcp_host_top99p, heroku_host_top99p, id, incident_management_monthly_active_users_hwm, indexed_events_count_sum, infra_host_top99p, ingested_events_bytes_sum, iot_device_agg_sum, iot_device_top99p_sum, mobile_rum_lite_session_count_sum, mobile_rum_session_count_android_sum, mobile_rum_session_count_ios_sum, mobile_rum_session_count_reactnative_sum, mobile_rum_session_count_sum, mobile_rum_units_sum, name, netflow_indexed_events_count_sum, npm_host_top99p, observability_pipelines_bytes_processed_sum, online_archive_events_count_sum, opentelemetry_host_top99p, profiling_host_top99p, public_id, rum_browser_and_mobile_session_count, rum_session_count_sum, rum_total_session_count_sum, rum_units_sum, sds_logs_scanned_bytes_sum, sds_total_scanned_bytes_sum, synthetics_browser_check_calls_count_sum, synthetics_check_calls_count_sum, trace_search_indexed_events_count_sum, twol_ingested_events_bytes_sum, vsphere_host_top99p].hash
|
|
778
|
+
[agent_host_top99p, apm_azure_app_service_host_top99p, apm_fargate_count_avg, apm_host_top99p, audit_logs_lines_indexed_sum, avg_profiled_fargate_tasks, aws_host_top99p, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p, billable_ingested_bytes_sum, browser_rum_lite_session_count_sum, browser_rum_replay_session_count_sum, browser_rum_units_sum, ci_pipeline_indexed_spans_sum, ci_test_indexed_spans_sum, ci_visibility_pipeline_committers_hwm, ci_visibility_test_committers_hwm, container_avg, container_hwm, cspm_aas_host_top99p, cspm_aws_host_top99p, cspm_azure_host_top99p, cspm_container_avg, cspm_container_hwm, cspm_host_top99p, custom_ts_avg, cws_container_count_avg, cws_host_top99p, dbm_host_top99p_sum, dbm_queries_avg_sum, fargate_tasks_count_avg, fargate_tasks_count_hwm, gcp_host_top99p, heroku_host_top99p, id, incident_management_monthly_active_users_hwm, indexed_events_count_sum, infra_host_top99p, ingested_events_bytes_sum, iot_device_agg_sum, iot_device_top99p_sum, mobile_rum_lite_session_count_sum, mobile_rum_session_count_android_sum, mobile_rum_session_count_ios_sum, mobile_rum_session_count_reactnative_sum, mobile_rum_session_count_sum, mobile_rum_units_sum, name, netflow_indexed_events_count_sum, npm_host_top99p, observability_pipelines_bytes_processed_sum, online_archive_events_count_sum, opentelemetry_host_top99p, profiling_host_top99p, public_id, region, rum_browser_and_mobile_session_count, rum_session_count_sum, rum_total_session_count_sum, rum_units_sum, sds_logs_scanned_bytes_sum, sds_total_scanned_bytes_sum, synthetics_browser_check_calls_count_sum, synthetics_check_calls_count_sum, trace_search_indexed_events_count_sum, twol_ingested_events_bytes_sum, vsphere_host_top99p].hash
|
|
749
779
|
end
|
|
750
780
|
end
|
|
751
781
|
end
|
|
@@ -31,6 +31,9 @@ module DatadogAPIClient::V1
|
|
|
31
31
|
# Shows the 99th percentile of all Azure app services using APM over all hours in the current months all organizations.
|
|
32
32
|
attr_accessor :apm_azure_app_service_host_top99p_sum
|
|
33
33
|
|
|
34
|
+
# Shows the average of all APM ECS Fargate tasks over all hours in the current months for all organizations.
|
|
35
|
+
attr_accessor :apm_fargate_count_avg_sum
|
|
36
|
+
|
|
34
37
|
# Shows the 99th percentile of all distinct APM hosts over all hours in the current months for all organizations.
|
|
35
38
|
attr_accessor :apm_host_top99p_sum
|
|
36
39
|
|
|
@@ -88,6 +91,9 @@ module DatadogAPIClient::V1
|
|
|
88
91
|
# Shows the 99th percentile of all Cloud Security Posture Management Azure app services hosts over all hours in the current months for all organizations.
|
|
89
92
|
attr_accessor :cspm_aas_host_top99p_sum
|
|
90
93
|
|
|
94
|
+
# Shows the 99th percentile of all Cloud Security Posture Management AWS hosts over all hours in the current months for all organizations.
|
|
95
|
+
attr_accessor :cspm_aws_host_top99p_sum
|
|
96
|
+
|
|
91
97
|
# Shows the 99th percentile of all Cloud Security Posture Management Azure hosts over all hours in the current months for all organizations.
|
|
92
98
|
attr_accessor :cspm_azure_host_top99p_sum
|
|
93
99
|
|
|
@@ -250,6 +256,7 @@ module DatadogAPIClient::V1
|
|
|
250
256
|
{
|
|
251
257
|
:'agent_host_top99p_sum' => :'agent_host_top99p_sum',
|
|
252
258
|
:'apm_azure_app_service_host_top99p_sum' => :'apm_azure_app_service_host_top99p_sum',
|
|
259
|
+
:'apm_fargate_count_avg_sum' => :'apm_fargate_count_avg_sum',
|
|
253
260
|
:'apm_host_top99p_sum' => :'apm_host_top99p_sum',
|
|
254
261
|
:'audit_logs_lines_indexed_agg_sum' => :'audit_logs_lines_indexed_agg_sum',
|
|
255
262
|
:'avg_profiled_fargate_tasks_sum' => :'avg_profiled_fargate_tasks_sum',
|
|
@@ -269,6 +276,7 @@ module DatadogAPIClient::V1
|
|
|
269
276
|
:'container_avg_sum' => :'container_avg_sum',
|
|
270
277
|
:'container_hwm_sum' => :'container_hwm_sum',
|
|
271
278
|
:'cspm_aas_host_top99p_sum' => :'cspm_aas_host_top99p_sum',
|
|
279
|
+
:'cspm_aws_host_top99p_sum' => :'cspm_aws_host_top99p_sum',
|
|
272
280
|
:'cspm_azure_host_top99p_sum' => :'cspm_azure_host_top99p_sum',
|
|
273
281
|
:'cspm_container_avg_sum' => :'cspm_container_avg_sum',
|
|
274
282
|
:'cspm_container_hwm_sum' => :'cspm_container_hwm_sum',
|
|
@@ -336,6 +344,7 @@ module DatadogAPIClient::V1
|
|
|
336
344
|
{
|
|
337
345
|
:'agent_host_top99p_sum' => :'Integer',
|
|
338
346
|
:'apm_azure_app_service_host_top99p_sum' => :'Integer',
|
|
347
|
+
:'apm_fargate_count_avg_sum' => :'Integer',
|
|
339
348
|
:'apm_host_top99p_sum' => :'Integer',
|
|
340
349
|
:'audit_logs_lines_indexed_agg_sum' => :'Integer',
|
|
341
350
|
:'avg_profiled_fargate_tasks_sum' => :'Integer',
|
|
@@ -355,6 +364,7 @@ module DatadogAPIClient::V1
|
|
|
355
364
|
:'container_avg_sum' => :'Integer',
|
|
356
365
|
:'container_hwm_sum' => :'Integer',
|
|
357
366
|
:'cspm_aas_host_top99p_sum' => :'Integer',
|
|
367
|
+
:'cspm_aws_host_top99p_sum' => :'Integer',
|
|
358
368
|
:'cspm_azure_host_top99p_sum' => :'Integer',
|
|
359
369
|
:'cspm_container_avg_sum' => :'Integer',
|
|
360
370
|
:'cspm_container_hwm_sum' => :'Integer',
|
|
@@ -441,6 +451,10 @@ module DatadogAPIClient::V1
|
|
|
441
451
|
self.apm_azure_app_service_host_top99p_sum = attributes[:'apm_azure_app_service_host_top99p_sum']
|
|
442
452
|
end
|
|
443
453
|
|
|
454
|
+
if attributes.key?(:'apm_fargate_count_avg_sum')
|
|
455
|
+
self.apm_fargate_count_avg_sum = attributes[:'apm_fargate_count_avg_sum']
|
|
456
|
+
end
|
|
457
|
+
|
|
444
458
|
if attributes.key?(:'apm_host_top99p_sum')
|
|
445
459
|
self.apm_host_top99p_sum = attributes[:'apm_host_top99p_sum']
|
|
446
460
|
end
|
|
@@ -517,6 +531,10 @@ module DatadogAPIClient::V1
|
|
|
517
531
|
self.cspm_aas_host_top99p_sum = attributes[:'cspm_aas_host_top99p_sum']
|
|
518
532
|
end
|
|
519
533
|
|
|
534
|
+
if attributes.key?(:'cspm_aws_host_top99p_sum')
|
|
535
|
+
self.cspm_aws_host_top99p_sum = attributes[:'cspm_aws_host_top99p_sum']
|
|
536
|
+
end
|
|
537
|
+
|
|
520
538
|
if attributes.key?(:'cspm_azure_host_top99p_sum')
|
|
521
539
|
self.cspm_azure_host_top99p_sum = attributes[:'cspm_azure_host_top99p_sum']
|
|
522
540
|
end
|
|
@@ -743,6 +761,7 @@ module DatadogAPIClient::V1
|
|
|
743
761
|
self.class == o.class &&
|
|
744
762
|
agent_host_top99p_sum == o.agent_host_top99p_sum &&
|
|
745
763
|
apm_azure_app_service_host_top99p_sum == o.apm_azure_app_service_host_top99p_sum &&
|
|
764
|
+
apm_fargate_count_avg_sum == o.apm_fargate_count_avg_sum &&
|
|
746
765
|
apm_host_top99p_sum == o.apm_host_top99p_sum &&
|
|
747
766
|
audit_logs_lines_indexed_agg_sum == o.audit_logs_lines_indexed_agg_sum &&
|
|
748
767
|
avg_profiled_fargate_tasks_sum == o.avg_profiled_fargate_tasks_sum &&
|
|
@@ -762,6 +781,7 @@ module DatadogAPIClient::V1
|
|
|
762
781
|
container_avg_sum == o.container_avg_sum &&
|
|
763
782
|
container_hwm_sum == o.container_hwm_sum &&
|
|
764
783
|
cspm_aas_host_top99p_sum == o.cspm_aas_host_top99p_sum &&
|
|
784
|
+
cspm_aws_host_top99p_sum == o.cspm_aws_host_top99p_sum &&
|
|
765
785
|
cspm_azure_host_top99p_sum == o.cspm_azure_host_top99p_sum &&
|
|
766
786
|
cspm_container_avg_sum == o.cspm_container_avg_sum &&
|
|
767
787
|
cspm_container_hwm_sum == o.cspm_container_hwm_sum &&
|
|
@@ -827,7 +847,7 @@ module DatadogAPIClient::V1
|
|
|
827
847
|
# @return [Integer] Hash code
|
|
828
848
|
# @!visibility private
|
|
829
849
|
def hash
|
|
830
|
-
[agent_host_top99p_sum, apm_azure_app_service_host_top99p_sum, apm_host_top99p_sum, audit_logs_lines_indexed_agg_sum, avg_profiled_fargate_tasks_sum, aws_host_top99p_sum, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p_sum, azure_host_top99p_sum, billable_ingested_bytes_agg_sum, browser_rum_lite_session_count_agg_sum, browser_rum_replay_session_count_agg_sum, browser_rum_units_agg_sum, ci_pipeline_indexed_spans_agg_sum, ci_test_indexed_spans_agg_sum, ci_visibility_pipeline_committers_hwm_sum, ci_visibility_test_committers_hwm_sum, container_avg_sum, container_hwm_sum, cspm_aas_host_top99p_sum, cspm_azure_host_top99p_sum, cspm_container_avg_sum, cspm_container_hwm_sum, cspm_host_top99p_sum, custom_ts_sum, cws_containers_avg_sum, cws_host_top99p_sum, dbm_host_top99p_sum, dbm_queries_avg_sum, end_date, fargate_tasks_count_avg_sum, fargate_tasks_count_hwm_sum, gcp_host_top99p_sum, heroku_host_top99p_sum, incident_management_monthly_active_users_hwm_sum, indexed_events_count_agg_sum, infra_host_top99p_sum, ingested_events_bytes_agg_sum, iot_device_agg_sum, iot_device_top99p_sum, last_updated, live_indexed_events_agg_sum, live_ingested_bytes_agg_sum, logs_by_retention, mobile_rum_lite_session_count_agg_sum, mobile_rum_session_count_agg_sum, mobile_rum_session_count_android_agg_sum, mobile_rum_session_count_ios_agg_sum, mobile_rum_session_count_reactnative_agg_sum, mobile_rum_units_agg_sum, netflow_indexed_events_count_agg_sum, npm_host_top99p_sum, observability_pipelines_bytes_processed_agg_sum, online_archive_events_count_agg_sum, opentelemetry_host_top99p_sum, profiling_container_agent_count_avg, profiling_host_count_top99p_sum, rehydrated_indexed_events_agg_sum, rehydrated_ingested_bytes_agg_sum, rum_browser_and_mobile_session_count, rum_session_count_agg_sum, rum_total_session_count_agg_sum, rum_units_agg_sum, sds_logs_scanned_bytes_sum, sds_total_scanned_bytes_sum, start_date, synthetics_browser_check_calls_count_agg_sum, synthetics_check_calls_count_agg_sum, trace_search_indexed_events_count_agg_sum, twol_ingested_events_bytes_agg_sum, usage, vsphere_host_top99p_sum].hash
|
|
850
|
+
[agent_host_top99p_sum, apm_azure_app_service_host_top99p_sum, apm_fargate_count_avg_sum, apm_host_top99p_sum, audit_logs_lines_indexed_agg_sum, avg_profiled_fargate_tasks_sum, aws_host_top99p_sum, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p_sum, azure_host_top99p_sum, billable_ingested_bytes_agg_sum, browser_rum_lite_session_count_agg_sum, browser_rum_replay_session_count_agg_sum, browser_rum_units_agg_sum, ci_pipeline_indexed_spans_agg_sum, ci_test_indexed_spans_agg_sum, ci_visibility_pipeline_committers_hwm_sum, ci_visibility_test_committers_hwm_sum, container_avg_sum, container_hwm_sum, cspm_aas_host_top99p_sum, cspm_aws_host_top99p_sum, cspm_azure_host_top99p_sum, cspm_container_avg_sum, cspm_container_hwm_sum, cspm_host_top99p_sum, custom_ts_sum, cws_containers_avg_sum, cws_host_top99p_sum, dbm_host_top99p_sum, dbm_queries_avg_sum, end_date, fargate_tasks_count_avg_sum, fargate_tasks_count_hwm_sum, gcp_host_top99p_sum, heroku_host_top99p_sum, incident_management_monthly_active_users_hwm_sum, indexed_events_count_agg_sum, infra_host_top99p_sum, ingested_events_bytes_agg_sum, iot_device_agg_sum, iot_device_top99p_sum, last_updated, live_indexed_events_agg_sum, live_ingested_bytes_agg_sum, logs_by_retention, mobile_rum_lite_session_count_agg_sum, mobile_rum_session_count_agg_sum, mobile_rum_session_count_android_agg_sum, mobile_rum_session_count_ios_agg_sum, mobile_rum_session_count_reactnative_agg_sum, mobile_rum_units_agg_sum, netflow_indexed_events_count_agg_sum, npm_host_top99p_sum, observability_pipelines_bytes_processed_agg_sum, online_archive_events_count_agg_sum, opentelemetry_host_top99p_sum, profiling_container_agent_count_avg, profiling_host_count_top99p_sum, rehydrated_indexed_events_agg_sum, rehydrated_ingested_bytes_agg_sum, rum_browser_and_mobile_session_count, rum_session_count_agg_sum, rum_total_session_count_agg_sum, rum_units_agg_sum, sds_logs_scanned_bytes_sum, sds_total_scanned_bytes_sum, start_date, synthetics_browser_check_calls_count_agg_sum, synthetics_check_calls_count_agg_sum, trace_search_indexed_events_count_agg_sum, twol_ingested_events_bytes_agg_sum, usage, vsphere_host_top99p_sum].hash
|
|
831
851
|
end
|
|
832
852
|
end
|
|
833
853
|
end
|
|
@@ -46,6 +46,7 @@ module DatadogAPIClient::V1
|
|
|
46
46
|
:'QueryValueWidgetDefinition',
|
|
47
47
|
:'ScatterPlotWidgetDefinition',
|
|
48
48
|
:'SLOWidgetDefinition',
|
|
49
|
+
:'SLOListWidgetDefinition',
|
|
49
50
|
:'ServiceMapWidgetDefinition',
|
|
50
51
|
:'ServiceSummaryWidgetDefinition',
|
|
51
52
|
:'SunburstWidgetDefinition',
|
|
@@ -54,7 +55,8 @@ module DatadogAPIClient::V1
|
|
|
54
55
|
:'ToplistWidgetDefinition',
|
|
55
56
|
:'TreeMapWidgetDefinition',
|
|
56
57
|
:'ListStreamWidgetDefinition',
|
|
57
|
-
:'FunnelWidgetDefinition'
|
|
58
|
+
:'FunnelWidgetDefinition',
|
|
59
|
+
:'TopologyMapWidgetDefinition'
|
|
58
60
|
]
|
|
59
61
|
end
|
|
60
62
|
# Builds the object
|
|
@@ -36,5 +36,7 @@ module DatadogAPIClient::V1
|
|
|
36
36
|
TAGS_DESCENDING = "tags,desc".freeze
|
|
37
37
|
TRIGGERED_ASCENDING = "triggered,asc".freeze
|
|
38
38
|
TRIGGERED_DESCENDING = "triggered,desc".freeze
|
|
39
|
+
PRIORITY_ASCENDING = "priority,asc".freeze
|
|
40
|
+
PRIORITY_DESCENDING = "priority,desc".freeze
|
|
39
41
|
end
|
|
40
42
|
end
|
|
@@ -184,7 +184,7 @@ module DatadogAPIClient::V2
|
|
|
184
184
|
return_type = opts[:debug_return_type] || 'EventsListResponse'
|
|
185
185
|
|
|
186
186
|
# auth_names
|
|
187
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
187
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
188
188
|
|
|
189
189
|
new_options = opts.merge(
|
|
190
190
|
:operation => :search_events,
|
|
@@ -199,7 +199,7 @@ module DatadogAPIClient::V2
|
|
|
199
199
|
if @api_client.config.client_side_validation && service_id.nil?
|
|
200
200
|
fail ArgumentError, "Missing the required parameter 'service_id' when calling IncidentServicesAPI.get_incident_service"
|
|
201
201
|
end
|
|
202
|
-
allowable_values = ['users']
|
|
202
|
+
allowable_values = ['users', 'attachments']
|
|
203
203
|
if @api_client.config.client_side_validation && opts[:'include'] && !allowable_values.include?(opts[:'include'])
|
|
204
204
|
fail ArgumentError, "invalid value for \"include\", must be one of #{allowable_values}"
|
|
205
205
|
end
|
|
@@ -274,7 +274,7 @@ module DatadogAPIClient::V2
|
|
|
274
274
|
if @api_client.config.debugging
|
|
275
275
|
@api_client.config.logger.debug 'Calling API: IncidentServicesAPI.list_incident_services ...'
|
|
276
276
|
end
|
|
277
|
-
allowable_values = ['users']
|
|
277
|
+
allowable_values = ['users', 'attachments']
|
|
278
278
|
if @api_client.config.client_side_validation && opts[:'include'] && !allowable_values.include?(opts[:'include'])
|
|
279
279
|
fail ArgumentError, "invalid value for \"include\", must be one of #{allowable_values}"
|
|
280
280
|
end
|
|
@@ -199,7 +199,7 @@ module DatadogAPIClient::V2
|
|
|
199
199
|
if @api_client.config.client_side_validation && team_id.nil?
|
|
200
200
|
fail ArgumentError, "Missing the required parameter 'team_id' when calling IncidentTeamsAPI.get_incident_team"
|
|
201
201
|
end
|
|
202
|
-
allowable_values = ['users']
|
|
202
|
+
allowable_values = ['users', 'attachments']
|
|
203
203
|
if @api_client.config.client_side_validation && opts[:'include'] && !allowable_values.include?(opts[:'include'])
|
|
204
204
|
fail ArgumentError, "invalid value for \"include\", must be one of #{allowable_values}"
|
|
205
205
|
end
|
|
@@ -274,7 +274,7 @@ module DatadogAPIClient::V2
|
|
|
274
274
|
if @api_client.config.debugging
|
|
275
275
|
@api_client.config.logger.debug 'Calling API: IncidentTeamsAPI.list_incident_teams ...'
|
|
276
276
|
end
|
|
277
|
-
allowable_values = ['users']
|
|
277
|
+
allowable_values = ['users', 'attachments']
|
|
278
278
|
if @api_client.config.client_side_validation && opts[:'include'] && !allowable_values.include?(opts[:'include'])
|
|
279
279
|
fail ArgumentError, "invalid value for \"include\", must be one of #{allowable_values}"
|
|
280
280
|
end
|
|
@@ -240,6 +240,81 @@ module DatadogAPIClient::V2
|
|
|
240
240
|
return data, status_code, headers
|
|
241
241
|
end
|
|
242
242
|
|
|
243
|
+
# Get a list of attachments.
|
|
244
|
+
#
|
|
245
|
+
# @see #list_incident_attachments_with_http_info
|
|
246
|
+
def list_incident_attachments(incident_id, opts = {})
|
|
247
|
+
data, _status_code, _headers = list_incident_attachments_with_http_info(incident_id, opts)
|
|
248
|
+
data
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
# Get a list of attachments.
|
|
252
|
+
#
|
|
253
|
+
# Get all attachments for a given incident.
|
|
254
|
+
#
|
|
255
|
+
# @param incident_id [String] The UUID of the incident.
|
|
256
|
+
# @param opts [Hash] the optional parameters
|
|
257
|
+
# @option opts [Array<IncidentAttachmentRelatedObject>] :include Specifies which types of related objects are included in the response.
|
|
258
|
+
# @option opts [Array<IncidentAttachmentAttachmentType>] :filter_attachment_type Specifies which types of attachments are included in the response.
|
|
259
|
+
# @return [Array<(IncidentAttachmentsResponse, Integer, Hash)>] IncidentAttachmentsResponse data, response status code and response headers
|
|
260
|
+
def list_incident_attachments_with_http_info(incident_id, opts = {})
|
|
261
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.list_incident_attachments".to_sym]
|
|
262
|
+
if unstable_enabled
|
|
263
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_incident_attachments")
|
|
264
|
+
else
|
|
265
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_incident_attachments"))
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
if @api_client.config.debugging
|
|
269
|
+
@api_client.config.logger.debug 'Calling API: IncidentsAPI.list_incident_attachments ...'
|
|
270
|
+
end
|
|
271
|
+
# verify the required parameter 'incident_id' is set
|
|
272
|
+
if @api_client.config.client_side_validation && incident_id.nil?
|
|
273
|
+
fail ArgumentError, "Missing the required parameter 'incident_id' when calling IncidentsAPI.list_incident_attachments"
|
|
274
|
+
end
|
|
275
|
+
# resource path
|
|
276
|
+
local_var_path = '/api/v2/incidents/{incident_id}/attachments'.sub('{incident_id}', CGI.escape(incident_id.to_s).gsub('%2F', '/'))
|
|
277
|
+
|
|
278
|
+
# query parameters
|
|
279
|
+
query_params = opts[:query_params] || {}
|
|
280
|
+
query_params[:'include'] = @api_client.build_collection_param(opts[:'include'], :csv) if !opts[:'include'].nil?
|
|
281
|
+
query_params[:'filter[attachment_type]'] = @api_client.build_collection_param(opts[:'filter_attachment_type'], :csv) if !opts[:'filter_attachment_type'].nil?
|
|
282
|
+
|
|
283
|
+
# header parameters
|
|
284
|
+
header_params = opts[:header_params] || {}
|
|
285
|
+
# HTTP header 'Accept' (if needed)
|
|
286
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
287
|
+
|
|
288
|
+
# form parameters
|
|
289
|
+
form_params = opts[:form_params] || {}
|
|
290
|
+
|
|
291
|
+
# http body (model)
|
|
292
|
+
post_body = opts[:debug_body]
|
|
293
|
+
|
|
294
|
+
# return_type
|
|
295
|
+
return_type = opts[:debug_return_type] || 'IncidentAttachmentsResponse'
|
|
296
|
+
|
|
297
|
+
# auth_names
|
|
298
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
299
|
+
|
|
300
|
+
new_options = opts.merge(
|
|
301
|
+
:operation => :list_incident_attachments,
|
|
302
|
+
:header_params => header_params,
|
|
303
|
+
:query_params => query_params,
|
|
304
|
+
:form_params => form_params,
|
|
305
|
+
:body => post_body,
|
|
306
|
+
:auth_names => auth_names,
|
|
307
|
+
:return_type => return_type,
|
|
308
|
+
:api_version => "V2"
|
|
309
|
+
)
|
|
310
|
+
|
|
311
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
312
|
+
if @api_client.config.debugging
|
|
313
|
+
@api_client.config.logger.debug "API called: IncidentsAPI#list_incident_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
314
|
+
end
|
|
315
|
+
return data, status_code, headers
|
|
316
|
+
end
|
|
317
|
+
|
|
243
318
|
# Get a list of incidents.
|
|
244
319
|
#
|
|
245
320
|
# @see #list_incidents_with_http_info
|
|
@@ -412,5 +487,85 @@ module DatadogAPIClient::V2
|
|
|
412
487
|
end
|
|
413
488
|
return data, status_code, headers
|
|
414
489
|
end
|
|
490
|
+
|
|
491
|
+
# Create, update, and delete incident attachments.
|
|
492
|
+
#
|
|
493
|
+
# @see #update_incident_attachments_with_http_info
|
|
494
|
+
def update_incident_attachments(incident_id, body, opts = {})
|
|
495
|
+
data, _status_code, _headers = update_incident_attachments_with_http_info(incident_id, body, opts)
|
|
496
|
+
data
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
# Create, update, and delete incident attachments.
|
|
500
|
+
#
|
|
501
|
+
# The bulk update endpoint for creating, updating, and deleting attachments for a given incident.
|
|
502
|
+
#
|
|
503
|
+
# @param incident_id [String] The UUID of the incident.
|
|
504
|
+
# @param body [IncidentAttachmentUpdateRequest] Incident Attachment Payload.
|
|
505
|
+
# @param opts [Hash] the optional parameters
|
|
506
|
+
# @option opts [Array<IncidentAttachmentRelatedObject>] :include Specifies which types of related objects are included in the response.
|
|
507
|
+
# @return [Array<(IncidentAttachmentUpdateResponse, Integer, Hash)>] IncidentAttachmentUpdateResponse data, response status code and response headers
|
|
508
|
+
def update_incident_attachments_with_http_info(incident_id, body, opts = {})
|
|
509
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.update_incident_attachments".to_sym]
|
|
510
|
+
if unstable_enabled
|
|
511
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_incident_attachments")
|
|
512
|
+
else
|
|
513
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_incident_attachments"))
|
|
514
|
+
end
|
|
515
|
+
|
|
516
|
+
if @api_client.config.debugging
|
|
517
|
+
@api_client.config.logger.debug 'Calling API: IncidentsAPI.update_incident_attachments ...'
|
|
518
|
+
end
|
|
519
|
+
# verify the required parameter 'incident_id' is set
|
|
520
|
+
if @api_client.config.client_side_validation && incident_id.nil?
|
|
521
|
+
fail ArgumentError, "Missing the required parameter 'incident_id' when calling IncidentsAPI.update_incident_attachments"
|
|
522
|
+
end
|
|
523
|
+
# verify the required parameter 'body' is set
|
|
524
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
525
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling IncidentsAPI.update_incident_attachments"
|
|
526
|
+
end
|
|
527
|
+
# resource path
|
|
528
|
+
local_var_path = '/api/v2/incidents/{incident_id}/attachments'.sub('{incident_id}', CGI.escape(incident_id.to_s).gsub('%2F', '/'))
|
|
529
|
+
|
|
530
|
+
# query parameters
|
|
531
|
+
query_params = opts[:query_params] || {}
|
|
532
|
+
query_params[:'include'] = @api_client.build_collection_param(opts[:'include'], :csv) if !opts[:'include'].nil?
|
|
533
|
+
|
|
534
|
+
# header parameters
|
|
535
|
+
header_params = opts[:header_params] || {}
|
|
536
|
+
# HTTP header 'Accept' (if needed)
|
|
537
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
538
|
+
# HTTP header 'Content-Type'
|
|
539
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
540
|
+
|
|
541
|
+
# form parameters
|
|
542
|
+
form_params = opts[:form_params] || {}
|
|
543
|
+
|
|
544
|
+
# http body (model)
|
|
545
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
546
|
+
|
|
547
|
+
# return_type
|
|
548
|
+
return_type = opts[:debug_return_type] || 'IncidentAttachmentUpdateResponse'
|
|
549
|
+
|
|
550
|
+
# auth_names
|
|
551
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
552
|
+
|
|
553
|
+
new_options = opts.merge(
|
|
554
|
+
:operation => :update_incident_attachments,
|
|
555
|
+
:header_params => header_params,
|
|
556
|
+
:query_params => query_params,
|
|
557
|
+
:form_params => form_params,
|
|
558
|
+
:body => post_body,
|
|
559
|
+
:auth_names => auth_names,
|
|
560
|
+
:return_type => return_type,
|
|
561
|
+
:api_version => "V2"
|
|
562
|
+
)
|
|
563
|
+
|
|
564
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
565
|
+
if @api_client.config.debugging
|
|
566
|
+
@api_client.config.logger.debug "API called: IncidentsAPI#update_incident_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
567
|
+
end
|
|
568
|
+
return data, status_code, headers
|
|
569
|
+
end
|
|
415
570
|
end
|
|
416
571
|
end
|
|
@@ -340,7 +340,7 @@ module DatadogAPIClient::V2
|
|
|
340
340
|
if @api_client.config.debugging
|
|
341
341
|
@api_client.config.logger.debug 'Calling API: LogsAPI.submit_log ...'
|
|
342
342
|
end
|
|
343
|
-
allowable_values = ['gzip', 'deflate']
|
|
343
|
+
allowable_values = ['identity', 'gzip', 'deflate']
|
|
344
344
|
if @api_client.config.client_side_validation && opts[:'content_encoding'] && !allowable_values.include?(opts[:'content_encoding'])
|
|
345
345
|
fail ArgumentError, "invalid value for \"content_encoding\", must be one of #{allowable_values}"
|
|
346
346
|
end
|
|
@@ -381,6 +381,73 @@ module DatadogAPIClient::V2
|
|
|
381
381
|
return data, status_code, headers
|
|
382
382
|
end
|
|
383
383
|
|
|
384
|
+
# List active tags and aggregations.
|
|
385
|
+
#
|
|
386
|
+
# @see #list_active_metric_configurations_with_http_info
|
|
387
|
+
def list_active_metric_configurations(metric_name, opts = {})
|
|
388
|
+
data, _status_code, _headers = list_active_metric_configurations_with_http_info(metric_name, opts)
|
|
389
|
+
data
|
|
390
|
+
end
|
|
391
|
+
|
|
392
|
+
# List active tags and aggregations.
|
|
393
|
+
#
|
|
394
|
+
# List tags and aggregations that are actively queried on dashboards and monitors for a given metric name.
|
|
395
|
+
#
|
|
396
|
+
# @param metric_name [String] The name of the metric.
|
|
397
|
+
# @param opts [Hash] the optional parameters
|
|
398
|
+
# @option opts [Integer] :window_seconds The number of seconds of look back (from now). Default value is 604,800 (1 week), minimum value is 7200 (2 hours), maximum value is 2,630,000 (1 month).
|
|
399
|
+
# @return [Array<(MetricSuggestedTagsAndAggregationsResponse, Integer, Hash)>] MetricSuggestedTagsAndAggregationsResponse data, response status code and response headers
|
|
400
|
+
def list_active_metric_configurations_with_http_info(metric_name, opts = {})
|
|
401
|
+
|
|
402
|
+
if @api_client.config.debugging
|
|
403
|
+
@api_client.config.logger.debug 'Calling API: MetricsAPI.list_active_metric_configurations ...'
|
|
404
|
+
end
|
|
405
|
+
# verify the required parameter 'metric_name' is set
|
|
406
|
+
if @api_client.config.client_side_validation && metric_name.nil?
|
|
407
|
+
fail ArgumentError, "Missing the required parameter 'metric_name' when calling MetricsAPI.list_active_metric_configurations"
|
|
408
|
+
end
|
|
409
|
+
# resource path
|
|
410
|
+
local_var_path = '/api/v2/metrics/{metric_name}/active-configurations'.sub('{metric_name}', CGI.escape(metric_name.to_s).gsub('%2F', '/'))
|
|
411
|
+
|
|
412
|
+
# query parameters
|
|
413
|
+
query_params = opts[:query_params] || {}
|
|
414
|
+
query_params[:'window[seconds]'] = opts[:'window_seconds'] if !opts[:'window_seconds'].nil?
|
|
415
|
+
|
|
416
|
+
# header parameters
|
|
417
|
+
header_params = opts[:header_params] || {}
|
|
418
|
+
# HTTP header 'Accept' (if needed)
|
|
419
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
420
|
+
|
|
421
|
+
# form parameters
|
|
422
|
+
form_params = opts[:form_params] || {}
|
|
423
|
+
|
|
424
|
+
# http body (model)
|
|
425
|
+
post_body = opts[:debug_body]
|
|
426
|
+
|
|
427
|
+
# return_type
|
|
428
|
+
return_type = opts[:debug_return_type] || 'MetricSuggestedTagsAndAggregationsResponse'
|
|
429
|
+
|
|
430
|
+
# auth_names
|
|
431
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
432
|
+
|
|
433
|
+
new_options = opts.merge(
|
|
434
|
+
:operation => :list_active_metric_configurations,
|
|
435
|
+
:header_params => header_params,
|
|
436
|
+
:query_params => query_params,
|
|
437
|
+
:form_params => form_params,
|
|
438
|
+
:body => post_body,
|
|
439
|
+
:auth_names => auth_names,
|
|
440
|
+
:return_type => return_type,
|
|
441
|
+
:api_version => "V2"
|
|
442
|
+
)
|
|
443
|
+
|
|
444
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
445
|
+
if @api_client.config.debugging
|
|
446
|
+
@api_client.config.logger.debug "API called: MetricsAPI#list_active_metric_configurations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
447
|
+
end
|
|
448
|
+
return data, status_code, headers
|
|
449
|
+
end
|
|
450
|
+
|
|
384
451
|
# List tag configuration by name.
|
|
385
452
|
#
|
|
386
453
|
# @see #list_tag_configuration_by_name_with_http_info
|
|
@@ -446,7 +513,7 @@ module DatadogAPIClient::V2
|
|
|
446
513
|
return data, status_code, headers
|
|
447
514
|
end
|
|
448
515
|
|
|
449
|
-
#
|
|
516
|
+
# Get a list of metrics.
|
|
450
517
|
#
|
|
451
518
|
# @see #list_tag_configurations_with_http_info
|
|
452
519
|
def list_tag_configurations(opts = {})
|
|
@@ -454,18 +521,18 @@ module DatadogAPIClient::V2
|
|
|
454
521
|
data
|
|
455
522
|
end
|
|
456
523
|
|
|
457
|
-
#
|
|
524
|
+
# Get a list of metrics.
|
|
458
525
|
#
|
|
459
|
-
# Returns all
|
|
460
|
-
# (with additional filters if specified).
|
|
526
|
+
# Returns all metrics (matching additional filters if specified).
|
|
461
527
|
#
|
|
462
528
|
# @param opts [Hash] the optional parameters
|
|
463
|
-
# @option opts [Boolean] :filter_configured Filter metrics that have configured tags.
|
|
529
|
+
# @option opts [Boolean] :filter_configured Filter custom metrics that have configured tags.
|
|
464
530
|
# @option opts [String] :filter_tags_configured Filter tag configurations by configured tags.
|
|
465
|
-
# @option opts [MetricTagConfigurationMetricTypes] :filter_metric_type Filter
|
|
531
|
+
# @option opts [MetricTagConfigurationMetricTypes] :filter_metric_type Filter metrics by metric type.
|
|
466
532
|
# @option opts [Boolean] :filter_include_percentiles Filter distributions with additional percentile aggregations enabled or disabled.
|
|
467
|
-
# @option opts [
|
|
468
|
-
# @option opts [
|
|
533
|
+
# @option opts [Boolean] :filter_queried Filter custom metrics that have or have not been queried in the specified window[seconds]. If no window is provided or the window is less than 2 hours, a default of 2 hours will be applied.
|
|
534
|
+
# @option opts [String] :filter_tags Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions. Can only be combined with the filter[queried] filter.
|
|
535
|
+
# @option opts [Integer] :window_seconds The number of seconds of look back (from now) to apply to a filter[tag] or filter[queried] query. Defaults value is 3600 (1 hour), maximum value is 1,209,600 (2 weeks).
|
|
469
536
|
# @return [Array<(MetricsAndMetricTagConfigurationsResponse, Integer, Hash)>] MetricsAndMetricTagConfigurationsResponse data, response status code and response headers
|
|
470
537
|
def list_tag_configurations_with_http_info(opts = {})
|
|
471
538
|
|
|
@@ -485,6 +552,7 @@ module DatadogAPIClient::V2
|
|
|
485
552
|
query_params[:'filter[tags_configured]'] = opts[:'filter_tags_configured'] if !opts[:'filter_tags_configured'].nil?
|
|
486
553
|
query_params[:'filter[metric_type]'] = opts[:'filter_metric_type'] if !opts[:'filter_metric_type'].nil?
|
|
487
554
|
query_params[:'filter[include_percentiles]'] = opts[:'filter_include_percentiles'] if !opts[:'filter_include_percentiles'].nil?
|
|
555
|
+
query_params[:'filter[queried]'] = opts[:'filter_queried'] if !opts[:'filter_queried'].nil?
|
|
488
556
|
query_params[:'filter[tags]'] = opts[:'filter_tags'] if !opts[:'filter_tags'].nil?
|
|
489
557
|
query_params[:'window[seconds]'] = opts[:'window_seconds'] if !opts[:'window_seconds'].nil?
|
|
490
558
|
|
|
@@ -687,7 +755,7 @@ module DatadogAPIClient::V2
|
|
|
687
755
|
if @api_client.config.debugging
|
|
688
756
|
@api_client.config.logger.debug 'Calling API: MetricsAPI.submit_metrics ...'
|
|
689
757
|
end
|
|
690
|
-
allowable_values = ['deflate']
|
|
758
|
+
allowable_values = ['deflate', 'zstd1', 'gzip']
|
|
691
759
|
if @api_client.config.client_side_validation && opts[:'content_encoding'] && !allowable_values.include?(opts[:'content_encoding'])
|
|
692
760
|
fail ArgumentError, "invalid value for \"content_encoding\", must be one of #{allowable_values}"
|
|
693
761
|
end
|