datadog_api_client 1.9.0 → 1.10.0
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/schemas/v1/openapi.yaml +489 -124
- data/.generator/schemas/v2/openapi.yaml +701 -28
- data/.generator/src/generator/formatter.py +6 -1
- data/.generator/src/generator/openapi.py +5 -5
- data/.generator/src/generator/templates/api_client.j2 +1 -4
- data/.generator/src/generator/templates/model_generic.j2 +42 -3
- data/.github/workflows/prepare_release.yml +15 -3
- data/CHANGELOG.md +32 -0
- data/Makefile +1 -1
- data/README.md +16 -0
- data/check-examples.sh +0 -2
- data/examples/v1/aws-integration/UpdateAWSAccount.rb +8 -4
- data/examples/v1/downtimes/CreateDowntime_2908359488.rb +1 -0
- data/examples/v1/downtimes/CreateDowntime_3059354445.rb +1 -0
- data/examples/v1/downtimes/UpdateDowntime.rb +1 -0
- data/examples/v1/monitors/CreateMonitor_1969035628.rb +52 -0
- data/examples/v1/monitors/CreateMonitor_2520912138.rb +22 -0
- data/examples/v1/security-monitoring/AddSecurityMonitoringSignalToIncident.rb +9 -0
- data/examples/v1/security-monitoring/EditSecurityMonitoringSignalAssignee.rb +9 -0
- data/examples/v1/security-monitoring/EditSecurityMonitoringSignalState.rb +10 -0
- data/examples/v1/service-level-objective-corrections/CreateSLOCorrection.rb +0 -3
- data/examples/v1/service-level-objective-corrections/CreateSLOCorrection_1326388368.rb +0 -3
- data/examples/v1/service-level-objective-corrections/DeleteSLOCorrection.rb +0 -3
- data/examples/v1/service-level-objective-corrections/GetSLOCorrection.rb +0 -3
- data/examples/v1/service-level-objective-corrections/ListSLOCorrection.rb +0 -3
- data/examples/v1/service-level-objective-corrections/UpdateSLOCorrection.rb +0 -3
- data/examples/v1/service-level-objectives/GetSLOCorrections.rb +0 -3
- data/examples/v1/synthetics/CreateSyntheticsAPITest.rb +5 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1402674167.rb +44 -0
- data/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +64 -0
- data/examples/v1/synthetics/UpdateBrowserTest.rb +5 -0
- data/examples/v1/usage-metering/GetHourlyUsageAttribution.rb +1 -1
- data/examples/v1/usage-metering/GetMonthlyUsageAttribution.rb +1 -1
- data/examples/v1/usage-metering/{GetMonthlyUsageAttribution_3738504447.rb → GetMonthlyUsageAttribution_3849653599.rb} +1 -1
- data/examples/v1/usage-metering/GetUsageAttribution.rb +1 -1
- data/examples/v1/usage-metering/GetUsageRumSessions_3271366243.rb +9 -0
- data/examples/v2/logs/SubmitLog.rb +1 -0
- data/examples/v2/logs-archives/CreateLogsArchive.rb +1 -0
- data/examples/v2/logs-archives/UpdateLogsArchive.rb +1 -0
- data/examples/v2/metrics/EstimateMetricsOutputSeries.rb +9 -0
- data/examples/v2/metrics/SubmitMetrics.rb +20 -0
- data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.rb +1 -0
- data/examples/v2/usage-metering/GetCostByOrg.rb +5 -0
- data/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring.rb +8 -0
- data/examples/v2/usage-metering/GetUsageLambdaTracedInvocations.rb +8 -0
- data/lib/datadog_api_client/v1/api/metrics_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/monitors_api.rb +69 -56
- data/lib/datadog_api_client/v1/api/security_monitoring_api.rb +266 -0
- data/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +10 -10
- data/lib/datadog_api_client/v1/api_client.rb +1 -4
- data/lib/datadog_api_client/v1/configuration.rb +0 -6
- data/lib/datadog_api_client/v1/models/add_signal_to_incident_request.rb +142 -0
- data/lib/datadog_api_client/v1/models/downtime.rb +11 -1
- data/lib/datadog_api_client/v1/models/downtime_child.rb +11 -1
- data/lib/datadog_api_client/v1/models/event.rb +1 -1
- data/lib/datadog_api_client/v1/models/http_log_item.rb +29 -4
- data/lib/datadog_api_client/v1/models/logs_category_processor.rb +1 -1
- data/lib/datadog_api_client/v1/models/logs_list_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/logs_sort.rb +1 -1
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/monitor_group_search_response_counts.rb +2 -2
- data/lib/datadog_api_client/v1/models/{monitor_search_response_counts_tag_item.rb → monitor_search_count_item.rb} +3 -3
- data/lib/datadog_api_client/v1/models/monitor_search_response_counts.rb +4 -4
- data/lib/datadog_api_client/v1/models/monitor_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_response.rb +1 -1
- data/lib/datadog_api_client/v1/models/notebook_cell_create_request.rb +146 -0
- data/lib/datadog_api_client/v1/models/notebook_cell_create_request_attributes.rb +68 -0
- data/lib/datadog_api_client/v1/models/series.rb +2 -2
- data/lib/datadog_api_client/v1/models/signal_archive_reason.rb +29 -0
- data/lib/datadog_api_client/v1/models/signal_assignee_update_request.rb +132 -0
- data/lib/datadog_api_client/v1/models/signal_state_update_request.rb +152 -0
- data/lib/datadog_api_client/v1/models/signal_triage_state.rb +28 -0
- data/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb +4 -4
- data/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/{monitor_search_response_counts_status_item.rb → successful_signal_update_response.rb} +12 -22
- data/lib/datadog_api_client/v1/models/synthetics_api_test.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_assertion_type.rb +2 -0
- data/lib/datadog_api_client/v1/models/synthetics_browser_test_rum_settings.rb +152 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_details.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_details_sub_type.rb +2 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +21 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_attribution_response.rb +1 -1
- data/lib/datadog_api_client/v1/models/usage_rum_sessions_hour.rb +18 -4
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +11 -1
- data/lib/datadog_api_client/v1.rb +11 -6
- data/lib/datadog_api_client/v2/api/authn_mappings_api.rb +0 -2
- data/lib/datadog_api_client/v2/api/metrics_api.rb +173 -0
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +228 -0
- data/lib/datadog_api_client/v2/api_client.rb +1 -4
- data/lib/datadog_api_client/v2/models/authn_mapping.rb +1 -13
- data/lib/datadog_api_client/v2/models/authn_mapping_attributes.rb +1 -12
- data/lib/datadog_api_client/v2/models/authn_mapping_response.rb +16 -4
- data/lib/datadog_api_client/v2/models/authn_mappings_response.rb +13 -1
- data/lib/datadog_api_client/v2/models/chargeback_breakdown.rb +131 -0
- data/lib/datadog_api_client/v2/models/cost_by_org.rb +133 -0
- data/lib/datadog_api_client/v2/models/cost_by_org_attributes.rb +153 -0
- data/lib/datadog_api_client/v2/models/cost_by_org_response.rb +113 -0
- data/lib/datadog_api_client/v2/models/cost_by_org_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/hourly_usage_type.rb +2 -0
- data/lib/datadog_api_client/v2/models/http_log_item.rb +40 -4
- data/lib/datadog_api_client/v2/models/intake_payload_accepted.rb +111 -0
- data/lib/datadog_api_client/v2/models/logs_archive_attributes.rb +12 -1
- data/lib/datadog_api_client/v2/models/logs_archive_create_request_attributes.rb +12 -1
- data/lib/datadog_api_client/v2/models/metric_content_encoding.rb +26 -0
- data/lib/datadog_api_client/v2/models/metric_estimate.rb +133 -0
- data/lib/datadog_api_client/v2/models/metric_estimate_attributes.rb +133 -0
- data/lib/datadog_api_client/v2/models/metric_estimate_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/metric_estimate_response.rb +111 -0
- data/lib/datadog_api_client/v2/models/metric_estimate_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/metric_intake_type.rb +30 -0
- data/lib/datadog_api_client/v2/models/metric_metadata.rb +111 -0
- data/lib/datadog_api_client/v2/models/metric_origin.rb +170 -0
- data/lib/datadog_api_client/{v1/models/monitor_group_search_response_counts_type_item.rb → v2/models/metric_payload.rb} +27 -24
- data/lib/datadog_api_client/v2/models/metric_point.rb +122 -0
- data/lib/datadog_api_client/{v1/models/monitor_search_response_counts_type_item.rb → v2/models/metric_resource.rb} +21 -21
- data/lib/datadog_api_client/v2/models/metric_series.rb +220 -0
- data/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute_data.rb +1 -5
- data/lib/datadog_api_client/v2/models/saml_assertion_attribute.rb +1 -5
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_detection_method.rb +1 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_hardcoded_evaluator_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +11 -1
- data/lib/datadog_api_client/{v1/models/monitor_group_search_response_counts_status_item.rb → v2/models/usage_application_security_monitoring_response.rb} +16 -24
- data/lib/datadog_api_client/{v1/models/monitor_search_response_counts_muted_item.rb → v2/models/usage_lambda_traced_invocations_response.rb} +16 -24
- data/lib/datadog_api_client/v2.rb +22 -0
- data/lib/datadog_api_client/version.rb +1 -1
- data/spec/v1/api_client_spec.rb +3 -3
- data/spec/v2/api_client_spec.rb +3 -3
- metadata +49 -11
- data/extract-code-blocks.awk +0 -81
- data/extract-code-blocks.sh +0 -3
@@ -172,6 +172,9 @@ module DatadogAPIClient::V1
|
|
172
172
|
# Shows the sum of all mobile RUM Sessions on iOS over all hours in the current months for all organizations.
|
173
173
|
attr_accessor :mobile_rum_session_count_ios_agg_sum
|
174
174
|
|
175
|
+
# Shows the sum of all mobile RUM Sessions on React Native over all hours in the current months for all organizations.
|
176
|
+
attr_accessor :mobile_rum_session_count_reactnative_agg_sum
|
177
|
+
|
175
178
|
# Shows the sum of all mobile RUM units over all hours in the current months for all organizations.
|
176
179
|
attr_accessor :mobile_rum_units_agg_sum
|
177
180
|
|
@@ -294,6 +297,7 @@ module DatadogAPIClient::V1
|
|
294
297
|
:'mobile_rum_session_count_agg_sum' => :'mobile_rum_session_count_agg_sum',
|
295
298
|
:'mobile_rum_session_count_android_agg_sum' => :'mobile_rum_session_count_android_agg_sum',
|
296
299
|
:'mobile_rum_session_count_ios_agg_sum' => :'mobile_rum_session_count_ios_agg_sum',
|
300
|
+
:'mobile_rum_session_count_reactnative_agg_sum' => :'mobile_rum_session_count_reactnative_agg_sum',
|
297
301
|
:'mobile_rum_units_agg_sum' => :'mobile_rum_units_agg_sum',
|
298
302
|
:'netflow_indexed_events_count_agg_sum' => :'netflow_indexed_events_count_agg_sum',
|
299
303
|
:'npm_host_top99p_sum' => :'npm_host_top99p_sum',
|
@@ -379,6 +383,7 @@ module DatadogAPIClient::V1
|
|
379
383
|
:'mobile_rum_session_count_agg_sum' => :'Integer',
|
380
384
|
:'mobile_rum_session_count_android_agg_sum' => :'Integer',
|
381
385
|
:'mobile_rum_session_count_ios_agg_sum' => :'Integer',
|
386
|
+
:'mobile_rum_session_count_reactnative_agg_sum' => :'Integer',
|
382
387
|
:'mobile_rum_units_agg_sum' => :'Integer',
|
383
388
|
:'netflow_indexed_events_count_agg_sum' => :'Integer',
|
384
389
|
:'npm_host_top99p_sum' => :'Integer',
|
@@ -624,6 +629,10 @@ module DatadogAPIClient::V1
|
|
624
629
|
self.mobile_rum_session_count_ios_agg_sum = attributes[:'mobile_rum_session_count_ios_agg_sum']
|
625
630
|
end
|
626
631
|
|
632
|
+
if attributes.key?(:'mobile_rum_session_count_reactnative_agg_sum')
|
633
|
+
self.mobile_rum_session_count_reactnative_agg_sum = attributes[:'mobile_rum_session_count_reactnative_agg_sum']
|
634
|
+
end
|
635
|
+
|
627
636
|
if attributes.key?(:'mobile_rum_units_agg_sum')
|
628
637
|
self.mobile_rum_units_agg_sum = attributes[:'mobile_rum_units_agg_sum']
|
629
638
|
end
|
@@ -781,6 +790,7 @@ module DatadogAPIClient::V1
|
|
781
790
|
mobile_rum_session_count_agg_sum == o.mobile_rum_session_count_agg_sum &&
|
782
791
|
mobile_rum_session_count_android_agg_sum == o.mobile_rum_session_count_android_agg_sum &&
|
783
792
|
mobile_rum_session_count_ios_agg_sum == o.mobile_rum_session_count_ios_agg_sum &&
|
793
|
+
mobile_rum_session_count_reactnative_agg_sum == o.mobile_rum_session_count_reactnative_agg_sum &&
|
784
794
|
mobile_rum_units_agg_sum == o.mobile_rum_units_agg_sum &&
|
785
795
|
netflow_indexed_events_count_agg_sum == o.netflow_indexed_events_count_agg_sum &&
|
786
796
|
npm_host_top99p_sum == o.npm_host_top99p_sum &&
|
@@ -817,7 +827,7 @@ module DatadogAPIClient::V1
|
|
817
827
|
# @return [Integer] Hash code
|
818
828
|
# @!visibility private
|
819
829
|
def hash
|
820
|
-
[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_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
|
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
|
821
831
|
end
|
822
832
|
end
|
823
833
|
end
|
@@ -23,6 +23,7 @@ require 'datadog_api_client/v1/configuration'
|
|
23
23
|
# Models
|
24
24
|
require 'datadog_api_client/v1/model_base'
|
25
25
|
require 'datadog_api_client/v1/models/access_role'
|
26
|
+
require 'datadog_api_client/v1/models/add_signal_to_incident_request'
|
26
27
|
require 'datadog_api_client/v1/models/alert_graph_widget_definition'
|
27
28
|
require 'datadog_api_client/v1/models/alert_graph_widget_definition_type'
|
28
29
|
require 'datadog_api_client/v1/models/alert_value_widget_definition'
|
@@ -275,19 +276,14 @@ require 'datadog_api_client/v1/models/monitor_formula_and_function_events_data_s
|
|
275
276
|
require 'datadog_api_client/v1/models/monitor_formula_and_function_query_definition'
|
276
277
|
require 'datadog_api_client/v1/models/monitor_group_search_response'
|
277
278
|
require 'datadog_api_client/v1/models/monitor_group_search_response_counts'
|
278
|
-
require 'datadog_api_client/v1/models/monitor_group_search_response_counts_status_item'
|
279
|
-
require 'datadog_api_client/v1/models/monitor_group_search_response_counts_type_item'
|
280
279
|
require 'datadog_api_client/v1/models/monitor_group_search_result'
|
281
280
|
require 'datadog_api_client/v1/models/monitor_options'
|
282
281
|
require 'datadog_api_client/v1/models/monitor_options_aggregation'
|
283
282
|
require 'datadog_api_client/v1/models/monitor_overall_states'
|
284
283
|
require 'datadog_api_client/v1/models/monitor_renotify_status_type'
|
284
|
+
require 'datadog_api_client/v1/models/monitor_search_count_item'
|
285
285
|
require 'datadog_api_client/v1/models/monitor_search_response'
|
286
286
|
require 'datadog_api_client/v1/models/monitor_search_response_counts'
|
287
|
-
require 'datadog_api_client/v1/models/monitor_search_response_counts_muted_item'
|
288
|
-
require 'datadog_api_client/v1/models/monitor_search_response_counts_status_item'
|
289
|
-
require 'datadog_api_client/v1/models/monitor_search_response_counts_tag_item'
|
290
|
-
require 'datadog_api_client/v1/models/monitor_search_response_counts_type_item'
|
291
287
|
require 'datadog_api_client/v1/models/monitor_search_response_metadata'
|
292
288
|
require 'datadog_api_client/v1/models/monitor_search_result'
|
293
289
|
require 'datadog_api_client/v1/models/monitor_search_result_notification'
|
@@ -307,6 +303,8 @@ require 'datadog_api_client/v1/models/monthly_usage_attribution_supported_metric
|
|
307
303
|
require 'datadog_api_client/v1/models/monthly_usage_attribution_values'
|
308
304
|
require 'datadog_api_client/v1/models/notebook_absolute_time'
|
309
305
|
require 'datadog_api_client/v1/models/notebook_author'
|
306
|
+
require 'datadog_api_client/v1/models/notebook_cell_create_request'
|
307
|
+
require 'datadog_api_client/v1/models/notebook_cell_create_request_attributes'
|
310
308
|
require 'datadog_api_client/v1/models/notebook_cell_resource_type'
|
311
309
|
require 'datadog_api_client/v1/models/notebook_cell_response'
|
312
310
|
require 'datadog_api_client/v1/models/notebook_cell_response_attributes'
|
@@ -386,6 +384,10 @@ require 'datadog_api_client/v1/models/service_map_widget_definition'
|
|
386
384
|
require 'datadog_api_client/v1/models/service_map_widget_definition_type'
|
387
385
|
require 'datadog_api_client/v1/models/service_summary_widget_definition'
|
388
386
|
require 'datadog_api_client/v1/models/service_summary_widget_definition_type'
|
387
|
+
require 'datadog_api_client/v1/models/signal_archive_reason'
|
388
|
+
require 'datadog_api_client/v1/models/signal_assignee_update_request'
|
389
|
+
require 'datadog_api_client/v1/models/signal_state_update_request'
|
390
|
+
require 'datadog_api_client/v1/models/signal_triage_state'
|
389
391
|
require 'datadog_api_client/v1/models/slack_integration_channel'
|
390
392
|
require 'datadog_api_client/v1/models/slack_integration_channel_display'
|
391
393
|
require 'datadog_api_client/v1/models/slo_bulk_delete_error'
|
@@ -427,6 +429,7 @@ require 'datadog_api_client/v1/models/slo_type'
|
|
427
429
|
require 'datadog_api_client/v1/models/slo_type_numeric'
|
428
430
|
require 'datadog_api_client/v1/models/slo_widget_definition'
|
429
431
|
require 'datadog_api_client/v1/models/slo_widget_definition_type'
|
432
|
+
require 'datadog_api_client/v1/models/successful_signal_update_response'
|
430
433
|
require 'datadog_api_client/v1/models/sunburst_widget_definition'
|
431
434
|
require 'datadog_api_client/v1/models/sunburst_widget_definition_type'
|
432
435
|
require 'datadog_api_client/v1/models/sunburst_widget_legend'
|
@@ -475,6 +478,7 @@ require 'datadog_api_client/v1/models/synthetics_browser_test_result_full'
|
|
475
478
|
require 'datadog_api_client/v1/models/synthetics_browser_test_result_full_check'
|
476
479
|
require 'datadog_api_client/v1/models/synthetics_browser_test_result_short'
|
477
480
|
require 'datadog_api_client/v1/models/synthetics_browser_test_result_short_result'
|
481
|
+
require 'datadog_api_client/v1/models/synthetics_browser_test_rum_settings'
|
478
482
|
require 'datadog_api_client/v1/models/synthetics_browser_test_type'
|
479
483
|
require 'datadog_api_client/v1/models/synthetics_browser_variable'
|
480
484
|
require 'datadog_api_client/v1/models/synthetics_browser_variable_type'
|
@@ -737,6 +741,7 @@ require 'datadog_api_client/v1/api/monitors_api'
|
|
737
741
|
require 'datadog_api_client/v1/api/notebooks_api'
|
738
742
|
require 'datadog_api_client/v1/api/organizations_api'
|
739
743
|
require 'datadog_api_client/v1/api/pager_duty_integration_api'
|
744
|
+
require 'datadog_api_client/v1/api/security_monitoring_api'
|
740
745
|
require 'datadog_api_client/v1/api/service_checks_api'
|
741
746
|
require 'datadog_api_client/v1/api/service_level_objective_corrections_api'
|
742
747
|
require 'datadog_api_client/v1/api/service_level_objectives_api'
|
@@ -260,7 +260,6 @@ module DatadogAPIClient::V2
|
|
260
260
|
# @option opts [Integer] :page_size Size for a given page.
|
261
261
|
# @option opts [Integer] :page_number Specific page number to return.
|
262
262
|
# @option opts [AuthNMappingsSort] :sort Sort AuthN Mappings depending on the given field.
|
263
|
-
# @option opts [Array<String>] :include Include additional information in the response.
|
264
263
|
# @option opts [String] :filter Filter all mappings by the given string.
|
265
264
|
# @return [Array<(AuthNMappingsResponse, Integer, Hash)>] AuthNMappingsResponse data, response status code and response headers
|
266
265
|
def list_authn_mappings_with_http_info(opts = {})
|
@@ -289,7 +288,6 @@ module DatadogAPIClient::V2
|
|
289
288
|
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
290
289
|
query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
291
290
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
292
|
-
query_params[:'include'] = @api_client.build_collection_param(opts[:'include'], :multi) if !opts[:'include'].nil?
|
293
291
|
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
294
292
|
|
295
293
|
# header parameters
|
@@ -338,6 +338,89 @@ module DatadogAPIClient::V2
|
|
338
338
|
return data, status_code, headers
|
339
339
|
end
|
340
340
|
|
341
|
+
# Tag Configuration Cardinality Estimator.
|
342
|
+
#
|
343
|
+
# @see #estimate_metrics_output_series_with_http_info
|
344
|
+
def estimate_metrics_output_series(metric_name, opts = {})
|
345
|
+
data, _status_code, _headers = estimate_metrics_output_series_with_http_info(metric_name, opts)
|
346
|
+
data
|
347
|
+
end
|
348
|
+
|
349
|
+
# Tag Configuration Cardinality Estimator.
|
350
|
+
#
|
351
|
+
# Returns the estimated cardinality for a metric with a given tag, percentile and number of aggregations configuration using Metrics without Limits™.
|
352
|
+
#
|
353
|
+
# @param metric_name [String] The name of the metric.
|
354
|
+
# @param opts [Hash] the optional parameters
|
355
|
+
# @option opts [String] :filter_groups Filtered tag keys that the metric is configured to query with.
|
356
|
+
# @option opts [Integer] :filter_hours_ago The number of hours of look back (from now) to estimate cardinality with.
|
357
|
+
# @option opts [Integer] :filter_num_aggregations The number of aggregations that a `count`, `rate`, or `gauge` metric is configured to use. Max number of aggregation combos is 9.
|
358
|
+
# @option opts [Boolean] :filter_pct A boolean, for distribution metrics only, to estimate cardinality if the metric includes additional percentile aggregators.
|
359
|
+
# @option opts [Integer] :filter_timespan_h A window, in hours, from the look back to estimate cardinality with.
|
360
|
+
# @return [Array<(MetricEstimateResponse, Integer, Hash)>] MetricEstimateResponse data, response status code and response headers
|
361
|
+
def estimate_metrics_output_series_with_http_info(metric_name, opts = {})
|
362
|
+
|
363
|
+
if @api_client.config.unstable_operations.has_key?(:estimate_metrics_output_series)
|
364
|
+
unstable_enabled = @api_client.config.unstable_operations[:estimate_metrics_output_series]
|
365
|
+
if unstable_enabled
|
366
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "estimate_metrics_output_series")
|
367
|
+
else
|
368
|
+
raise APIError.new(message: format("Unstable operation '%s' is disabled", "estimate_metrics_output_series"))
|
369
|
+
end
|
370
|
+
end
|
371
|
+
|
372
|
+
if @api_client.config.debugging
|
373
|
+
@api_client.config.logger.debug 'Calling API: MetricsAPI.estimate_metrics_output_series ...'
|
374
|
+
end
|
375
|
+
# verify the required parameter 'metric_name' is set
|
376
|
+
if @api_client.config.client_side_validation && metric_name.nil?
|
377
|
+
fail ArgumentError, "Missing the required parameter 'metric_name' when calling MetricsAPI.estimate_metrics_output_series"
|
378
|
+
end
|
379
|
+
# resource path
|
380
|
+
local_var_path = '/api/v2/metrics/{metric_name}/estimate'.sub('{metric_name}', CGI.escape(metric_name.to_s).gsub('%2F', '/'))
|
381
|
+
|
382
|
+
# query parameters
|
383
|
+
query_params = opts[:query_params] || {}
|
384
|
+
query_params[:'filter[groups]'] = opts[:'filter_groups'] if !opts[:'filter_groups'].nil?
|
385
|
+
query_params[:'filter[hours_ago]'] = opts[:'filter_hours_ago'] if !opts[:'filter_hours_ago'].nil?
|
386
|
+
query_params[:'filter[num_aggregations]'] = opts[:'filter_num_aggregations'] if !opts[:'filter_num_aggregations'].nil?
|
387
|
+
query_params[:'filter[pct]'] = opts[:'filter_pct'] if !opts[:'filter_pct'].nil?
|
388
|
+
query_params[:'filter[timespan_h]'] = opts[:'filter_timespan_h'] if !opts[:'filter_timespan_h'].nil?
|
389
|
+
|
390
|
+
# header parameters
|
391
|
+
header_params = opts[:header_params] || {}
|
392
|
+
# HTTP header 'Accept' (if needed)
|
393
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
394
|
+
|
395
|
+
# form parameters
|
396
|
+
form_params = opts[:form_params] || {}
|
397
|
+
|
398
|
+
# http body (model)
|
399
|
+
post_body = opts[:debug_body]
|
400
|
+
|
401
|
+
# return_type
|
402
|
+
return_type = opts[:debug_return_type] || 'MetricEstimateResponse'
|
403
|
+
|
404
|
+
# auth_names
|
405
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
406
|
+
|
407
|
+
new_options = opts.merge(
|
408
|
+
:operation => :estimate_metrics_output_series,
|
409
|
+
:header_params => header_params,
|
410
|
+
:query_params => query_params,
|
411
|
+
:form_params => form_params,
|
412
|
+
:body => post_body,
|
413
|
+
:auth_names => auth_names,
|
414
|
+
:return_type => return_type
|
415
|
+
)
|
416
|
+
|
417
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
418
|
+
if @api_client.config.debugging
|
419
|
+
@api_client.config.logger.debug "API called: MetricsAPI#estimate_metrics_output_series\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
420
|
+
end
|
421
|
+
return data, status_code, headers
|
422
|
+
end
|
423
|
+
|
341
424
|
# List tag configuration by name.
|
342
425
|
#
|
343
426
|
# @see #list_tag_configuration_by_name_with_http_info
|
@@ -646,6 +729,96 @@ module DatadogAPIClient::V2
|
|
646
729
|
return data, status_code, headers
|
647
730
|
end
|
648
731
|
|
732
|
+
# Submit metrics.
|
733
|
+
#
|
734
|
+
# @see #submit_metrics_with_http_info
|
735
|
+
def submit_metrics(body, opts = {})
|
736
|
+
data, _status_code, _headers = submit_metrics_with_http_info(body, opts)
|
737
|
+
data
|
738
|
+
end
|
739
|
+
|
740
|
+
# Submit metrics.
|
741
|
+
#
|
742
|
+
# The metrics end-point allows you to post time-series data that can be graphed on Datadog’s dashboards.
|
743
|
+
# The maximum payload size is 500 kilobytes (512000 bytes). Compressed payloads must have a decompressed size of less than 5 megabytes (5242880 bytes).
|
744
|
+
#
|
745
|
+
# If you’re submitting metrics directly to the Datadog API without using DogStatsD, expect:
|
746
|
+
#
|
747
|
+
# - 64 bits for the timestamp
|
748
|
+
# - 64 bits for the value
|
749
|
+
# - 20 bytes for the metric names
|
750
|
+
# - 50 bytes for the timeseries
|
751
|
+
# - The full payload is approximately 100 bytes.
|
752
|
+
#
|
753
|
+
# @param body [MetricPayload]
|
754
|
+
# @param opts [Hash] the optional parameters
|
755
|
+
# @option opts [MetricContentEncoding] :content_encoding HTTP header used to compress the media-type.
|
756
|
+
# @return [Array<(IntakePayloadAccepted, Integer, Hash)>] IntakePayloadAccepted data, response status code and response headers
|
757
|
+
def submit_metrics_with_http_info(body, opts = {})
|
758
|
+
|
759
|
+
if @api_client.config.unstable_operations.has_key?(:submit_metrics)
|
760
|
+
unstable_enabled = @api_client.config.unstable_operations[:submit_metrics]
|
761
|
+
if unstable_enabled
|
762
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "submit_metrics")
|
763
|
+
else
|
764
|
+
raise APIError.new(message: format("Unstable operation '%s' is disabled", "submit_metrics"))
|
765
|
+
end
|
766
|
+
end
|
767
|
+
|
768
|
+
if @api_client.config.debugging
|
769
|
+
@api_client.config.logger.debug 'Calling API: MetricsAPI.submit_metrics ...'
|
770
|
+
end
|
771
|
+
allowable_values = ['deflate']
|
772
|
+
if @api_client.config.client_side_validation && opts[:'content_encoding'] && !allowable_values.include?(opts[:'content_encoding'])
|
773
|
+
fail ArgumentError, "invalid value for \"content_encoding\", must be one of #{allowable_values}"
|
774
|
+
end
|
775
|
+
# verify the required parameter 'body' is set
|
776
|
+
if @api_client.config.client_side_validation && body.nil?
|
777
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling MetricsAPI.submit_metrics"
|
778
|
+
end
|
779
|
+
# resource path
|
780
|
+
local_var_path = '/api/v2/series'
|
781
|
+
|
782
|
+
# query parameters
|
783
|
+
query_params = opts[:query_params] || {}
|
784
|
+
|
785
|
+
# header parameters
|
786
|
+
header_params = opts[:header_params] || {}
|
787
|
+
# HTTP header 'Accept' (if needed)
|
788
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
789
|
+
# HTTP header 'Content-Type'
|
790
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
791
|
+
header_params['Content-Encoding'] = opts[:'content_encoding'] if !opts[:'content_encoding'].nil?
|
792
|
+
|
793
|
+
# form parameters
|
794
|
+
form_params = opts[:form_params] || {}
|
795
|
+
|
796
|
+
# http body (model)
|
797
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
798
|
+
|
799
|
+
# return_type
|
800
|
+
return_type = opts[:debug_return_type] || 'IntakePayloadAccepted'
|
801
|
+
|
802
|
+
# auth_names
|
803
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth]
|
804
|
+
|
805
|
+
new_options = opts.merge(
|
806
|
+
:operation => :submit_metrics,
|
807
|
+
:header_params => header_params,
|
808
|
+
:query_params => query_params,
|
809
|
+
:form_params => form_params,
|
810
|
+
:body => post_body,
|
811
|
+
:auth_names => auth_names,
|
812
|
+
:return_type => return_type
|
813
|
+
)
|
814
|
+
|
815
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
816
|
+
if @api_client.config.debugging
|
817
|
+
@api_client.config.logger.debug "API called: MetricsAPI#submit_metrics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
818
|
+
end
|
819
|
+
return data, status_code, headers
|
820
|
+
end
|
821
|
+
|
649
822
|
# Update a tag configuration.
|
650
823
|
#
|
651
824
|
# @see #update_tag_configuration_with_http_info
|
@@ -23,6 +23,234 @@ module DatadogAPIClient::V2
|
|
23
23
|
@api_client = api_client
|
24
24
|
end
|
25
25
|
|
26
|
+
# Get cost across multi-org account.
|
27
|
+
#
|
28
|
+
# @see #get_cost_by_org_with_http_info
|
29
|
+
def get_cost_by_org(start_month, opts = {})
|
30
|
+
data, _status_code, _headers = get_cost_by_org_with_http_info(start_month, opts)
|
31
|
+
data
|
32
|
+
end
|
33
|
+
|
34
|
+
# Get cost across multi-org account.
|
35
|
+
#
|
36
|
+
# Get cost across multi-org account. Cost by org data for a given month becomes available no later than the 16th of the following month.
|
37
|
+
#
|
38
|
+
# @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for cost beginning this month.
|
39
|
+
# @param opts [Hash] the optional parameters
|
40
|
+
# @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for cost ending this month.
|
41
|
+
# @return [Array<(CostByOrgResponse, Integer, Hash)>] CostByOrgResponse data, response status code and response headers
|
42
|
+
def get_cost_by_org_with_http_info(start_month, opts = {})
|
43
|
+
|
44
|
+
if @api_client.config.unstable_operations.has_key?(:get_cost_by_org)
|
45
|
+
unstable_enabled = @api_client.config.unstable_operations[:get_cost_by_org]
|
46
|
+
if unstable_enabled
|
47
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "get_cost_by_org")
|
48
|
+
else
|
49
|
+
raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_cost_by_org"))
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
if @api_client.config.debugging
|
54
|
+
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_cost_by_org ...'
|
55
|
+
end
|
56
|
+
# verify the required parameter 'start_month' is set
|
57
|
+
if @api_client.config.client_side_validation && start_month.nil?
|
58
|
+
fail ArgumentError, "Missing the required parameter 'start_month' when calling UsageMeteringAPI.get_cost_by_org"
|
59
|
+
end
|
60
|
+
# resource path
|
61
|
+
local_var_path = '/api/v2/usage/cost_by_org'
|
62
|
+
|
63
|
+
# query parameters
|
64
|
+
query_params = opts[:query_params] || {}
|
65
|
+
query_params[:'start_month'] = start_month
|
66
|
+
query_params[:'end_month'] = opts[:'end_month'] if !opts[:'end_month'].nil?
|
67
|
+
|
68
|
+
# header parameters
|
69
|
+
header_params = opts[:header_params] || {}
|
70
|
+
# HTTP header 'Accept' (if needed)
|
71
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json;datetime-format=rfc3339'])
|
72
|
+
|
73
|
+
# form parameters
|
74
|
+
form_params = opts[:form_params] || {}
|
75
|
+
|
76
|
+
# http body (model)
|
77
|
+
post_body = opts[:debug_body]
|
78
|
+
|
79
|
+
# return_type
|
80
|
+
return_type = opts[:debug_return_type] || 'CostByOrgResponse'
|
81
|
+
|
82
|
+
# auth_names
|
83
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
84
|
+
|
85
|
+
new_options = opts.merge(
|
86
|
+
:operation => :get_cost_by_org,
|
87
|
+
:header_params => header_params,
|
88
|
+
:query_params => query_params,
|
89
|
+
:form_params => form_params,
|
90
|
+
:body => post_body,
|
91
|
+
:auth_names => auth_names,
|
92
|
+
:return_type => return_type
|
93
|
+
)
|
94
|
+
|
95
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
96
|
+
if @api_client.config.debugging
|
97
|
+
@api_client.config.logger.debug "API called: UsageMeteringAPI#get_cost_by_org\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
98
|
+
end
|
99
|
+
return data, status_code, headers
|
100
|
+
end
|
101
|
+
|
102
|
+
# Get hourly usage for Application Security.
|
103
|
+
#
|
104
|
+
# @see #get_usage_application_security_monitoring_with_http_info
|
105
|
+
def get_usage_application_security_monitoring(start_hr, opts = {})
|
106
|
+
data, _status_code, _headers = get_usage_application_security_monitoring_with_http_info(start_hr, opts)
|
107
|
+
data
|
108
|
+
end
|
109
|
+
|
110
|
+
# Get hourly usage for Application Security.
|
111
|
+
#
|
112
|
+
# Get hourly usage for Application Security .
|
113
|
+
#
|
114
|
+
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
115
|
+
# @param opts [Hash] the optional parameters
|
116
|
+
# @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour.
|
117
|
+
# @return [Array<(UsageApplicationSecurityMonitoringResponse, Integer, Hash)>] UsageApplicationSecurityMonitoringResponse data, response status code and response headers
|
118
|
+
def get_usage_application_security_monitoring_with_http_info(start_hr, opts = {})
|
119
|
+
|
120
|
+
if @api_client.config.unstable_operations.has_key?(:get_usage_application_security_monitoring)
|
121
|
+
unstable_enabled = @api_client.config.unstable_operations[:get_usage_application_security_monitoring]
|
122
|
+
if unstable_enabled
|
123
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_application_security_monitoring")
|
124
|
+
else
|
125
|
+
raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_application_security_monitoring"))
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
if @api_client.config.debugging
|
130
|
+
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_application_security_monitoring ...'
|
131
|
+
end
|
132
|
+
# verify the required parameter 'start_hr' is set
|
133
|
+
if @api_client.config.client_side_validation && start_hr.nil?
|
134
|
+
fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_application_security_monitoring"
|
135
|
+
end
|
136
|
+
# resource path
|
137
|
+
local_var_path = '/api/v2/usage/application_security'
|
138
|
+
|
139
|
+
# query parameters
|
140
|
+
query_params = opts[:query_params] || {}
|
141
|
+
query_params[:'start_hr'] = start_hr
|
142
|
+
query_params[:'end_hr'] = opts[:'end_hr'] if !opts[:'end_hr'].nil?
|
143
|
+
|
144
|
+
# header parameters
|
145
|
+
header_params = opts[:header_params] || {}
|
146
|
+
# HTTP header 'Accept' (if needed)
|
147
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json;datetime-format=rfc3339'])
|
148
|
+
|
149
|
+
# form parameters
|
150
|
+
form_params = opts[:form_params] || {}
|
151
|
+
|
152
|
+
# http body (model)
|
153
|
+
post_body = opts[:debug_body]
|
154
|
+
|
155
|
+
# return_type
|
156
|
+
return_type = opts[:debug_return_type] || 'UsageApplicationSecurityMonitoringResponse'
|
157
|
+
|
158
|
+
# auth_names
|
159
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
160
|
+
|
161
|
+
new_options = opts.merge(
|
162
|
+
:operation => :get_usage_application_security_monitoring,
|
163
|
+
:header_params => header_params,
|
164
|
+
:query_params => query_params,
|
165
|
+
:form_params => form_params,
|
166
|
+
:body => post_body,
|
167
|
+
:auth_names => auth_names,
|
168
|
+
:return_type => return_type
|
169
|
+
)
|
170
|
+
|
171
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
172
|
+
if @api_client.config.debugging
|
173
|
+
@api_client.config.logger.debug "API called: UsageMeteringAPI#get_usage_application_security_monitoring\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
174
|
+
end
|
175
|
+
return data, status_code, headers
|
176
|
+
end
|
177
|
+
|
178
|
+
# Get hourly usage for Lambda Traced Invocations.
|
179
|
+
#
|
180
|
+
# @see #get_usage_lambda_traced_invocations_with_http_info
|
181
|
+
def get_usage_lambda_traced_invocations(start_hr, opts = {})
|
182
|
+
data, _status_code, _headers = get_usage_lambda_traced_invocations_with_http_info(start_hr, opts)
|
183
|
+
data
|
184
|
+
end
|
185
|
+
|
186
|
+
# Get hourly usage for Lambda Traced Invocations.
|
187
|
+
#
|
188
|
+
# Get hourly usage for Lambda Traced Invocations.
|
189
|
+
#
|
190
|
+
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
191
|
+
# @param opts [Hash] the optional parameters
|
192
|
+
# @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour.
|
193
|
+
# @return [Array<(UsageLambdaTracedInvocationsResponse, Integer, Hash)>] UsageLambdaTracedInvocationsResponse data, response status code and response headers
|
194
|
+
def get_usage_lambda_traced_invocations_with_http_info(start_hr, opts = {})
|
195
|
+
|
196
|
+
if @api_client.config.unstable_operations.has_key?(:get_usage_lambda_traced_invocations)
|
197
|
+
unstable_enabled = @api_client.config.unstable_operations[:get_usage_lambda_traced_invocations]
|
198
|
+
if unstable_enabled
|
199
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_lambda_traced_invocations")
|
200
|
+
else
|
201
|
+
raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_lambda_traced_invocations"))
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
205
|
+
if @api_client.config.debugging
|
206
|
+
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_lambda_traced_invocations ...'
|
207
|
+
end
|
208
|
+
# verify the required parameter 'start_hr' is set
|
209
|
+
if @api_client.config.client_side_validation && start_hr.nil?
|
210
|
+
fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_lambda_traced_invocations"
|
211
|
+
end
|
212
|
+
# resource path
|
213
|
+
local_var_path = '/api/v2/usage/lambda_traced_invocations'
|
214
|
+
|
215
|
+
# query parameters
|
216
|
+
query_params = opts[:query_params] || {}
|
217
|
+
query_params[:'start_hr'] = start_hr
|
218
|
+
query_params[:'end_hr'] = opts[:'end_hr'] if !opts[:'end_hr'].nil?
|
219
|
+
|
220
|
+
# header parameters
|
221
|
+
header_params = opts[:header_params] || {}
|
222
|
+
# HTTP header 'Accept' (if needed)
|
223
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json;datetime-format=rfc3339'])
|
224
|
+
|
225
|
+
# form parameters
|
226
|
+
form_params = opts[:form_params] || {}
|
227
|
+
|
228
|
+
# http body (model)
|
229
|
+
post_body = opts[:debug_body]
|
230
|
+
|
231
|
+
# return_type
|
232
|
+
return_type = opts[:debug_return_type] || 'UsageLambdaTracedInvocationsResponse'
|
233
|
+
|
234
|
+
# auth_names
|
235
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
236
|
+
|
237
|
+
new_options = opts.merge(
|
238
|
+
:operation => :get_usage_lambda_traced_invocations,
|
239
|
+
:header_params => header_params,
|
240
|
+
:query_params => query_params,
|
241
|
+
:form_params => form_params,
|
242
|
+
:body => post_body,
|
243
|
+
:auth_names => auth_names,
|
244
|
+
:return_type => return_type
|
245
|
+
)
|
246
|
+
|
247
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
248
|
+
if @api_client.config.debugging
|
249
|
+
@api_client.config.logger.debug "API called: UsageMeteringAPI#get_usage_lambda_traced_invocations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
250
|
+
end
|
251
|
+
return data, status_code, headers
|
252
|
+
end
|
253
|
+
|
26
254
|
# Get hourly usage for Observability Pipelines.
|
27
255
|
#
|
28
256
|
# @see #get_usage_observability_pipelines_with_http_info
|
@@ -36,7 +36,6 @@ module DatadogAPIClient::V2
|
|
36
36
|
@config = config
|
37
37
|
@user_agent = "#{DatadogAPIClient::USER_AGENT}"
|
38
38
|
@default_headers = {
|
39
|
-
'Content-Type' => 'application/json',
|
40
39
|
'User-Agent' => @user_agent
|
41
40
|
}
|
42
41
|
@default_headers['Accept-Encoding'] = 'gzip' if @config.compress
|
@@ -341,9 +340,7 @@ module DatadogAPIClient::V2
|
|
341
340
|
# @return [String] the Accept header (e.g. application/json)
|
342
341
|
def select_header_accept(accepts)
|
343
342
|
return nil if accepts.nil? || accepts.empty?
|
344
|
-
|
345
|
-
json_accept = accepts.find { |s| json_mime?(s) }
|
346
|
-
json_accept || accepts.join(',')
|
343
|
+
accepts.join(', ')
|
347
344
|
end
|
348
345
|
|
349
346
|
# Return Content-Type header based on an array of content types provided.
|
@@ -31,9 +31,6 @@ module DatadogAPIClient::V2
|
|
31
31
|
# ID of the AuthN Mapping.
|
32
32
|
attr_accessor :id
|
33
33
|
|
34
|
-
# Included data in the AuthN Mapping response.
|
35
|
-
attr_accessor :included
|
36
|
-
|
37
34
|
# All relationships associated with AuthN Mapping.
|
38
35
|
attr_accessor :relationships
|
39
36
|
|
@@ -46,7 +43,6 @@ module DatadogAPIClient::V2
|
|
46
43
|
{
|
47
44
|
:'attributes' => :'attributes',
|
48
45
|
:'id' => :'id',
|
49
|
-
:'included' => :'included',
|
50
46
|
:'relationships' => :'relationships',
|
51
47
|
:'type' => :'type'
|
52
48
|
}
|
@@ -64,7 +60,6 @@ module DatadogAPIClient::V2
|
|
64
60
|
{
|
65
61
|
:'attributes' => :'AuthNMappingAttributes',
|
66
62
|
:'id' => :'String',
|
67
|
-
:'included' => :'Array<AuthNMappingIncluded>',
|
68
63
|
:'relationships' => :'AuthNMappingRelationships',
|
69
64
|
:'type' => :'AuthNMappingsType'
|
70
65
|
}
|
@@ -101,12 +96,6 @@ module DatadogAPIClient::V2
|
|
101
96
|
self.id = attributes[:'id']
|
102
97
|
end
|
103
98
|
|
104
|
-
if attributes.key?(:'included')
|
105
|
-
if (value = attributes[:'included']).is_a?(Array)
|
106
|
-
self.included = value
|
107
|
-
end
|
108
|
-
end
|
109
|
-
|
110
99
|
if attributes.key?(:'relationships')
|
111
100
|
self.relationships = attributes[:'relationships']
|
112
101
|
end
|
@@ -155,7 +144,6 @@ module DatadogAPIClient::V2
|
|
155
144
|
self.class == o.class &&
|
156
145
|
attributes == o.attributes &&
|
157
146
|
id == o.id &&
|
158
|
-
included == o.included &&
|
159
147
|
relationships == o.relationships &&
|
160
148
|
type == o.type
|
161
149
|
end
|
@@ -171,7 +159,7 @@ module DatadogAPIClient::V2
|
|
171
159
|
# @return [Integer] Hash code
|
172
160
|
# @!visibility private
|
173
161
|
def hash
|
174
|
-
[attributes, id,
|
162
|
+
[attributes, id, relationships, type].hash
|
175
163
|
end
|
176
164
|
end
|
177
165
|
end
|