datadog_api_client 2.1.0 → 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 +4 -4
- data/.generator/poetry.lock +21 -14
- data/.generator/pyproject.toml +1 -1
- data/.generator/schemas/v1/openapi.yaml +558 -8
- data/.generator/schemas/v2/openapi.yaml +973 -253
- data/.generator/src/generator/templates/api_client.j2 +5 -1
- data/.generator/src/generator/templates/configuration.j2 +17 -0
- data/.github/workflows/test.yml +3 -0
- data/.pre-commit-config.yaml +1 -1
- data/CHANGELOG.md +26 -0
- data/README.md +11 -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/synthetics/CreateGlobalVariable_1068962881.rb +1 -1
- 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/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/generate.sh +30 -0
- data/lib/datadog_api_client/api_client.rb +5 -1
- data/lib/datadog_api_client/configuration.rb +20 -1
- data/lib/datadog_api_client/inflector.rb +51 -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 +5 -5
- 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/hourly_usage_attribution_usage_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/list_stream_query.rb +14 -4
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +2 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +21 -1
- 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/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 +2 -0
- data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +2 -0
- data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +21 -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 +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/models/widget_definition.rb +3 -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/metrics_api.rb +76 -8
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +65 -0
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +83 -17
- 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_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/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 +70 -6
- data/Makefile +0 -7
- data/examples/v2/metrics/ListTagConfigurations_1799362914.rb +0 -8
|
@@ -31,6 +31,12 @@ module DatadogAPIClient::V1
|
|
|
31
31
|
# The synthetic API test usage by tag(s).
|
|
32
32
|
attr_accessor :api_usage
|
|
33
33
|
|
|
34
|
+
# The percentage of APM ECS Fargate task usage by tag(s).
|
|
35
|
+
attr_accessor :apm_fargate_percentage
|
|
36
|
+
|
|
37
|
+
# The APM ECS Fargate task usage by tag(s).
|
|
38
|
+
attr_accessor :apm_fargate_usage
|
|
39
|
+
|
|
34
40
|
# The percentage of APM host usage by tag(s).
|
|
35
41
|
attr_accessor :apm_host_percentage
|
|
36
42
|
|
|
@@ -169,6 +175,8 @@ module DatadogAPIClient::V1
|
|
|
169
175
|
{
|
|
170
176
|
:'api_percentage' => :'api_percentage',
|
|
171
177
|
:'api_usage' => :'api_usage',
|
|
178
|
+
:'apm_fargate_percentage' => :'apm_fargate_percentage',
|
|
179
|
+
:'apm_fargate_usage' => :'apm_fargate_usage',
|
|
172
180
|
:'apm_host_percentage' => :'apm_host_percentage',
|
|
173
181
|
:'apm_host_usage' => :'apm_host_usage',
|
|
174
182
|
:'appsec_percentage' => :'appsec_percentage',
|
|
@@ -228,6 +236,8 @@ module DatadogAPIClient::V1
|
|
|
228
236
|
{
|
|
229
237
|
:'api_percentage' => :'Float',
|
|
230
238
|
:'api_usage' => :'Float',
|
|
239
|
+
:'apm_fargate_percentage' => :'Float',
|
|
240
|
+
:'apm_fargate_usage' => :'Float',
|
|
231
241
|
:'apm_host_percentage' => :'Float',
|
|
232
242
|
:'apm_host_usage' => :'Float',
|
|
233
243
|
:'appsec_percentage' => :'Float',
|
|
@@ -306,6 +316,14 @@ module DatadogAPIClient::V1
|
|
|
306
316
|
self.api_usage = attributes[:'api_usage']
|
|
307
317
|
end
|
|
308
318
|
|
|
319
|
+
if attributes.key?(:'apm_fargate_percentage')
|
|
320
|
+
self.apm_fargate_percentage = attributes[:'apm_fargate_percentage']
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
if attributes.key?(:'apm_fargate_usage')
|
|
324
|
+
self.apm_fargate_usage = attributes[:'apm_fargate_usage']
|
|
325
|
+
end
|
|
326
|
+
|
|
309
327
|
if attributes.key?(:'apm_host_percentage')
|
|
310
328
|
self.apm_host_percentage = attributes[:'apm_host_percentage']
|
|
311
329
|
end
|
|
@@ -498,6 +516,8 @@ module DatadogAPIClient::V1
|
|
|
498
516
|
self.class == o.class &&
|
|
499
517
|
api_percentage == o.api_percentage &&
|
|
500
518
|
api_usage == o.api_usage &&
|
|
519
|
+
apm_fargate_percentage == o.apm_fargate_percentage &&
|
|
520
|
+
apm_fargate_usage == o.apm_fargate_usage &&
|
|
501
521
|
apm_host_percentage == o.apm_host_percentage &&
|
|
502
522
|
apm_host_usage == o.apm_host_usage &&
|
|
503
523
|
appsec_percentage == o.appsec_percentage &&
|
|
@@ -555,7 +575,7 @@ module DatadogAPIClient::V1
|
|
|
555
575
|
# @return [Integer] Hash code
|
|
556
576
|
# @!visibility private
|
|
557
577
|
def hash
|
|
558
|
-
[api_percentage, api_usage, apm_host_percentage, apm_host_usage, appsec_percentage, appsec_usage, browser_percentage, browser_usage, container_percentage, container_usage, cspm_container_percentage, cspm_container_usage, cspm_host_percentage, cspm_host_usage, custom_timeseries_percentage, custom_timeseries_usage, cws_container_percentage, cws_container_usage, cws_host_percentage, cws_host_usage, dbm_hosts_percentage, dbm_hosts_usage, dbm_queries_percentage, dbm_queries_usage, estimated_indexed_logs_percentage, estimated_indexed_logs_usage, estimated_indexed_spans_percentage, estimated_indexed_spans_usage, estimated_ingested_logs_percentage, estimated_ingested_logs_usage, estimated_ingested_spans_percentage, estimated_ingested_spans_usage, infra_host_percentage, infra_host_usage, lambda_functions_percentage, lambda_functions_usage, lambda_invocations_percentage, lambda_invocations_usage, npm_host_percentage, npm_host_usage, profiled_container_percentage, profiled_container_usage, profiled_hosts_percentage, profiled_hosts_usage, snmp_percentage, snmp_usage].hash
|
|
578
|
+
[api_percentage, api_usage, apm_fargate_percentage, apm_fargate_usage, apm_host_percentage, apm_host_usage, appsec_percentage, appsec_usage, browser_percentage, browser_usage, container_percentage, container_usage, cspm_container_percentage, cspm_container_usage, cspm_host_percentage, cspm_host_usage, custom_timeseries_percentage, custom_timeseries_usage, cws_container_percentage, cws_container_usage, cws_host_percentage, cws_host_usage, dbm_hosts_percentage, dbm_hosts_usage, dbm_queries_percentage, dbm_queries_usage, estimated_indexed_logs_percentage, estimated_indexed_logs_usage, estimated_indexed_spans_percentage, estimated_indexed_spans_usage, estimated_ingested_logs_percentage, estimated_ingested_logs_usage, estimated_ingested_spans_percentage, estimated_ingested_spans_usage, infra_host_percentage, infra_host_usage, lambda_functions_percentage, lambda_functions_usage, lambda_invocations_percentage, lambda_invocations_usage, npm_host_percentage, npm_host_usage, profiled_container_percentage, profiled_container_usage, profiled_hosts_percentage, profiled_hosts_usage, snmp_percentage, snmp_usage].hash
|
|
559
579
|
end
|
|
560
580
|
end
|
|
561
581
|
end
|
|
@@ -25,6 +25,9 @@ module DatadogAPIClient::V1
|
|
|
25
25
|
# @!visibility private
|
|
26
26
|
attr_accessor :_unparsed
|
|
27
27
|
|
|
28
|
+
# The high-water mark of APM ECS Fargate tasks during the given hour.
|
|
29
|
+
attr_accessor :apm_fargate_count
|
|
30
|
+
|
|
28
31
|
# The average profiled task count for Fargate Profiling.
|
|
29
32
|
attr_accessor :avg_profiled_fargate_tasks
|
|
30
33
|
|
|
@@ -44,6 +47,7 @@ module DatadogAPIClient::V1
|
|
|
44
47
|
# @!visibility private
|
|
45
48
|
def self.attribute_map
|
|
46
49
|
{
|
|
50
|
+
:'apm_fargate_count' => :'apm_fargate_count',
|
|
47
51
|
:'avg_profiled_fargate_tasks' => :'avg_profiled_fargate_tasks',
|
|
48
52
|
:'hour' => :'hour',
|
|
49
53
|
:'org_name' => :'org_name',
|
|
@@ -62,6 +66,7 @@ module DatadogAPIClient::V1
|
|
|
62
66
|
# @!visibility private
|
|
63
67
|
def self.openapi_types
|
|
64
68
|
{
|
|
69
|
+
:'apm_fargate_count' => :'Integer',
|
|
65
70
|
:'avg_profiled_fargate_tasks' => :'Integer',
|
|
66
71
|
:'hour' => :'Time',
|
|
67
72
|
:'org_name' => :'String',
|
|
@@ -93,6 +98,10 @@ module DatadogAPIClient::V1
|
|
|
93
98
|
h[k.to_sym] = v
|
|
94
99
|
}
|
|
95
100
|
|
|
101
|
+
if attributes.key?(:'apm_fargate_count')
|
|
102
|
+
self.apm_fargate_count = attributes[:'apm_fargate_count']
|
|
103
|
+
end
|
|
104
|
+
|
|
96
105
|
if attributes.key?(:'avg_profiled_fargate_tasks')
|
|
97
106
|
self.avg_profiled_fargate_tasks = attributes[:'avg_profiled_fargate_tasks']
|
|
98
107
|
end
|
|
@@ -127,6 +136,7 @@ module DatadogAPIClient::V1
|
|
|
127
136
|
def ==(o)
|
|
128
137
|
return true if self.equal?(o)
|
|
129
138
|
self.class == o.class &&
|
|
139
|
+
apm_fargate_count == o.apm_fargate_count &&
|
|
130
140
|
avg_profiled_fargate_tasks == o.avg_profiled_fargate_tasks &&
|
|
131
141
|
hour == o.hour &&
|
|
132
142
|
org_name == o.org_name &&
|
|
@@ -145,7 +155,7 @@ module DatadogAPIClient::V1
|
|
|
145
155
|
# @return [Integer] Hash code
|
|
146
156
|
# @!visibility private
|
|
147
157
|
def hash
|
|
148
|
-
[avg_profiled_fargate_tasks, hour, org_name, public_id, tasks_count].hash
|
|
158
|
+
[apm_fargate_count, avg_profiled_fargate_tasks, hour, org_name, public_id, tasks_count].hash
|
|
149
159
|
end
|
|
150
160
|
end
|
|
151
161
|
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 date all organizations.
|
|
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 date for all organizations.
|
|
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 all organizations.
|
|
35
38
|
attr_accessor :apm_host_top99p
|
|
36
39
|
|
|
@@ -226,6 +229,7 @@ module DatadogAPIClient::V1
|
|
|
226
229
|
{
|
|
227
230
|
:'agent_host_top99p' => :'agent_host_top99p',
|
|
228
231
|
:'apm_azure_app_service_host_top99p' => :'apm_azure_app_service_host_top99p',
|
|
232
|
+
:'apm_fargate_count_avg' => :'apm_fargate_count_avg',
|
|
229
233
|
:'apm_host_top99p' => :'apm_host_top99p',
|
|
230
234
|
:'audit_logs_lines_indexed_sum' => :'audit_logs_lines_indexed_sum',
|
|
231
235
|
:'avg_profiled_fargate_tasks' => :'avg_profiled_fargate_tasks',
|
|
@@ -304,6 +308,7 @@ module DatadogAPIClient::V1
|
|
|
304
308
|
{
|
|
305
309
|
:'agent_host_top99p' => :'Integer',
|
|
306
310
|
:'apm_azure_app_service_host_top99p' => :'Integer',
|
|
311
|
+
:'apm_fargate_count_avg' => :'Integer',
|
|
307
312
|
:'apm_host_top99p' => :'Integer',
|
|
308
313
|
:'audit_logs_lines_indexed_sum' => :'Integer',
|
|
309
314
|
:'avg_profiled_fargate_tasks' => :'Integer',
|
|
@@ -401,6 +406,10 @@ module DatadogAPIClient::V1
|
|
|
401
406
|
self.apm_azure_app_service_host_top99p = attributes[:'apm_azure_app_service_host_top99p']
|
|
402
407
|
end
|
|
403
408
|
|
|
409
|
+
if attributes.key?(:'apm_fargate_count_avg')
|
|
410
|
+
self.apm_fargate_count_avg = attributes[:'apm_fargate_count_avg']
|
|
411
|
+
end
|
|
412
|
+
|
|
404
413
|
if attributes.key?(:'apm_host_top99p')
|
|
405
414
|
self.apm_host_top99p = attributes[:'apm_host_top99p']
|
|
406
415
|
end
|
|
@@ -671,6 +680,7 @@ module DatadogAPIClient::V1
|
|
|
671
680
|
self.class == o.class &&
|
|
672
681
|
agent_host_top99p == o.agent_host_top99p &&
|
|
673
682
|
apm_azure_app_service_host_top99p == o.apm_azure_app_service_host_top99p &&
|
|
683
|
+
apm_fargate_count_avg == o.apm_fargate_count_avg &&
|
|
674
684
|
apm_host_top99p == o.apm_host_top99p &&
|
|
675
685
|
audit_logs_lines_indexed_sum == o.audit_logs_lines_indexed_sum &&
|
|
676
686
|
avg_profiled_fargate_tasks == o.avg_profiled_fargate_tasks &&
|
|
@@ -747,7 +757,7 @@ module DatadogAPIClient::V1
|
|
|
747
757
|
# @return [Integer] Hash code
|
|
748
758
|
# @!visibility private
|
|
749
759
|
def hash
|
|
750
|
-
[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_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, date, dbm_host_top99p, dbm_queries_count_avg, fargate_tasks_count_avg, fargate_tasks_count_hwm, gcp_host_top99p, heroku_host_top99p, incident_management_monthly_active_users_hwm, indexed_events_count_sum, infra_host_top99p, ingested_events_bytes_sum, iot_device_sum, iot_device_top99p, 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, netflow_indexed_events_count_sum, npm_host_top99p, observability_pipelines_bytes_processed_sum, online_archive_events_count_sum, opentelemetry_host_top99p, orgs, profiling_host_top99p, 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
|
|
760
|
+
[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, date, dbm_host_top99p, dbm_queries_count_avg, fargate_tasks_count_avg, fargate_tasks_count_hwm, gcp_host_top99p, heroku_host_top99p, incident_management_monthly_active_users_hwm, indexed_events_count_sum, infra_host_top99p, ingested_events_bytes_sum, iot_device_sum, iot_device_top99p, 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, netflow_indexed_events_count_sum, npm_host_top99p, observability_pipelines_bytes_processed_sum, online_archive_events_count_sum, opentelemetry_host_top99p, orgs, profiling_host_top99p, 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
|
|
751
761
|
end
|
|
752
762
|
end
|
|
753
763
|
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 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
|
|
|
@@ -232,6 +235,7 @@ module DatadogAPIClient::V1
|
|
|
232
235
|
{
|
|
233
236
|
:'agent_host_top99p' => :'agent_host_top99p',
|
|
234
237
|
:'apm_azure_app_service_host_top99p' => :'apm_azure_app_service_host_top99p',
|
|
238
|
+
:'apm_fargate_count_avg' => :'apm_fargate_count_avg',
|
|
235
239
|
:'apm_host_top99p' => :'apm_host_top99p',
|
|
236
240
|
:'audit_logs_lines_indexed_sum' => :'audit_logs_lines_indexed_sum',
|
|
237
241
|
:'avg_profiled_fargate_tasks' => :'avg_profiled_fargate_tasks',
|
|
@@ -312,6 +316,7 @@ module DatadogAPIClient::V1
|
|
|
312
316
|
{
|
|
313
317
|
:'agent_host_top99p' => :'Integer',
|
|
314
318
|
:'apm_azure_app_service_host_top99p' => :'Integer',
|
|
319
|
+
:'apm_fargate_count_avg' => :'Integer',
|
|
315
320
|
:'apm_host_top99p' => :'Integer',
|
|
316
321
|
:'audit_logs_lines_indexed_sum' => :'Integer',
|
|
317
322
|
:'avg_profiled_fargate_tasks' => :'Integer',
|
|
@@ -411,6 +416,10 @@ module DatadogAPIClient::V1
|
|
|
411
416
|
self.apm_azure_app_service_host_top99p = attributes[:'apm_azure_app_service_host_top99p']
|
|
412
417
|
end
|
|
413
418
|
|
|
419
|
+
if attributes.key?(:'apm_fargate_count_avg')
|
|
420
|
+
self.apm_fargate_count_avg = attributes[:'apm_fargate_count_avg']
|
|
421
|
+
end
|
|
422
|
+
|
|
414
423
|
if attributes.key?(:'apm_host_top99p')
|
|
415
424
|
self.apm_host_top99p = attributes[:'apm_host_top99p']
|
|
416
425
|
end
|
|
@@ -687,6 +696,7 @@ module DatadogAPIClient::V1
|
|
|
687
696
|
self.class == o.class &&
|
|
688
697
|
agent_host_top99p == o.agent_host_top99p &&
|
|
689
698
|
apm_azure_app_service_host_top99p == o.apm_azure_app_service_host_top99p &&
|
|
699
|
+
apm_fargate_count_avg == o.apm_fargate_count_avg &&
|
|
690
700
|
apm_host_top99p == o.apm_host_top99p &&
|
|
691
701
|
audit_logs_lines_indexed_sum == o.audit_logs_lines_indexed_sum &&
|
|
692
702
|
avg_profiled_fargate_tasks == o.avg_profiled_fargate_tasks &&
|
|
@@ -765,7 +775,7 @@ module DatadogAPIClient::V1
|
|
|
765
775
|
# @return [Integer] Hash code
|
|
766
776
|
# @!visibility private
|
|
767
777
|
def hash
|
|
768
|
-
[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_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
|
|
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
|
|
769
779
|
end
|
|
770
780
|
end
|
|
771
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
|
|
|
@@ -253,6 +256,7 @@ module DatadogAPIClient::V1
|
|
|
253
256
|
{
|
|
254
257
|
:'agent_host_top99p_sum' => :'agent_host_top99p_sum',
|
|
255
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',
|
|
256
260
|
:'apm_host_top99p_sum' => :'apm_host_top99p_sum',
|
|
257
261
|
:'audit_logs_lines_indexed_agg_sum' => :'audit_logs_lines_indexed_agg_sum',
|
|
258
262
|
:'avg_profiled_fargate_tasks_sum' => :'avg_profiled_fargate_tasks_sum',
|
|
@@ -340,6 +344,7 @@ module DatadogAPIClient::V1
|
|
|
340
344
|
{
|
|
341
345
|
:'agent_host_top99p_sum' => :'Integer',
|
|
342
346
|
:'apm_azure_app_service_host_top99p_sum' => :'Integer',
|
|
347
|
+
:'apm_fargate_count_avg_sum' => :'Integer',
|
|
343
348
|
:'apm_host_top99p_sum' => :'Integer',
|
|
344
349
|
:'audit_logs_lines_indexed_agg_sum' => :'Integer',
|
|
345
350
|
:'avg_profiled_fargate_tasks_sum' => :'Integer',
|
|
@@ -446,6 +451,10 @@ module DatadogAPIClient::V1
|
|
|
446
451
|
self.apm_azure_app_service_host_top99p_sum = attributes[:'apm_azure_app_service_host_top99p_sum']
|
|
447
452
|
end
|
|
448
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
|
+
|
|
449
458
|
if attributes.key?(:'apm_host_top99p_sum')
|
|
450
459
|
self.apm_host_top99p_sum = attributes[:'apm_host_top99p_sum']
|
|
451
460
|
end
|
|
@@ -752,6 +761,7 @@ module DatadogAPIClient::V1
|
|
|
752
761
|
self.class == o.class &&
|
|
753
762
|
agent_host_top99p_sum == o.agent_host_top99p_sum &&
|
|
754
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 &&
|
|
755
765
|
apm_host_top99p_sum == o.apm_host_top99p_sum &&
|
|
756
766
|
audit_logs_lines_indexed_agg_sum == o.audit_logs_lines_indexed_agg_sum &&
|
|
757
767
|
avg_profiled_fargate_tasks_sum == o.avg_profiled_fargate_tasks_sum &&
|
|
@@ -837,7 +847,7 @@ module DatadogAPIClient::V1
|
|
|
837
847
|
# @return [Integer] Hash code
|
|
838
848
|
# @!visibility private
|
|
839
849
|
def hash
|
|
840
|
-
[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_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
|
|
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
|
|
841
851
|
end
|
|
842
852
|
end
|
|
843
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
|
|
@@ -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
|
|
@@ -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
|
|