datadog_api_client 2.21.0 → 2.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/schemas/v1/openapi.yaml +180 -637
  4. data/.generator/schemas/v2/openapi.yaml +515 -33
  5. data/.github/workflows/prepare_release.yml +2 -2
  6. data/.github/workflows/publish.yml +2 -2
  7. data/.github/workflows/release.yml +2 -2
  8. data/.github/workflows/test.yml +1 -1
  9. data/CHANGELOG.md +24 -0
  10. data/Gemfile +1 -1
  11. data/examples/v1/aws-integration/CreateAWSAccount.rb +1 -1
  12. data/examples/v1/aws-integration/CreateNewAWSExternalID.rb +1 -0
  13. data/examples/v1/aws-integration/UpdateAWSAccount.rb +1 -1
  14. data/examples/v1/synthetics/CreateSyntheticsAPITest_1241981394.rb +118 -0
  15. data/examples/v1/synthetics/UpdateBrowserTest.rb +3 -0
  16. data/examples/v2/apm-retention-filters/UpdateApmRetentionFilter.rb +2 -2
  17. data/examples/v2/authn-mappings/CreateAuthNMapping.rb +1 -1
  18. data/examples/v2/authn-mappings/UpdateAuthNMapping.rb +1 -1
  19. data/examples/v2/cloud-workload-security/CreateCSMThreatsAgentRule.rb +1 -1
  20. data/examples/v2/gcp-integration/CreateGCPSTSAccount.rb +1 -1
  21. data/examples/v2/gcp-integration/CreateGCPSTSAccount_109518525.rb +1 -1
  22. data/examples/v2/gcp-integration/CreateGCPSTSAccount_130557025.rb +1 -1
  23. data/examples/v2/gcp-integration/CreateGCPSTSAccount_194782945.rb +1 -1
  24. data/examples/v2/gcp-integration/CreateGCPSTSAccount_2597004741.rb +1 -1
  25. data/examples/v2/gcp-integration/CreateGCPSTSAccount_4235664992.rb +1 -1
  26. data/examples/v2/gcp-integration/UpdateGCPSTSAccount.rb +1 -1
  27. data/examples/v2/gcp-integration/UpdateGCPSTSAccount_2241994060.rb +1 -1
  28. data/examples/v2/gcp-integration/UpdateGCPSTSAccount_3205636354.rb +1 -1
  29. data/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination.rb +4 -0
  30. data/examples/v2/metrics/QueryScalarData_3112571352.rb +2 -2
  31. data/examples/v2/metrics/QueryTimeseriesData_301142940.rb +3 -3
  32. data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression_3192265332.rb +19 -0
  33. data/examples/v2/security-monitoring/ValidateSecurityMonitoringRule.rb +42 -0
  34. data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +4 -0
  35. data/examples/v2/service-level-objectives/CreateSLOReportJob.rb +20 -0
  36. data/examples/v2/service-level-objectives/GetSLOReport.rb +8 -0
  37. data/examples/v2/service-level-objectives/GetSLOReportJobStatus.rb +11 -0
  38. data/lib/datadog_api_client/configuration.rb +3 -0
  39. data/lib/datadog_api_client/inflector.rb +20 -7
  40. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +104 -131
  41. data/lib/datadog_api_client/v1/models/aws_account.rb +12 -2
  42. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +2 -0
  43. data/lib/datadog_api_client/v1/models/monitor_options.rb +4 -1
  44. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +4 -0
  45. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +41 -1
  46. data/lib/datadog_api_client/v1/models/series.rb +1 -1
  47. data/lib/datadog_api_client/v1/models/slo_time_slice_condition.rb +14 -2
  48. data/lib/datadog_api_client/v1/models/slo_time_slice_interval.rb +29 -0
  49. data/lib/datadog_api_client/v1/models/slo_time_slice_spec.rb +1 -1
  50. data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +13 -1
  51. data/lib/datadog_api_client/v1/models/synthetics_test_request_body_file.rb +175 -0
  52. data/lib/datadog_api_client/v1/models/synthetics_test_request_body_type.rb +2 -0
  53. data/lib/datadog_api_client/v2/api/apm_retention_filters_api.rb +6 -0
  54. data/lib/datadog_api_client/v2/api/metrics_api.rb +1 -1
  55. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +67 -0
  56. data/lib/datadog_api_client/v2/api/service_level_objectives_api.rb +245 -0
  57. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +12 -3
  58. data/lib/datadog_api_client/v2/models/authn_mapping_create_data.rb +1 -1
  59. data/lib/datadog_api_client/v2/models/authn_mapping_create_relationships.rb +37 -54
  60. data/lib/datadog_api_client/v2/models/authn_mapping_included.rb +2 -1
  61. data/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_role.rb +98 -0
  62. data/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_team.rb +98 -0
  63. data/lib/datadog_api_client/v2/models/authn_mapping_relationships.rb +14 -4
  64. data/lib/datadog_api_client/{v1/models/usage_attribution_metadata.rb → v2/models/authn_mapping_team.rb} +31 -23
  65. data/lib/datadog_api_client/v2/models/authn_mapping_team_attributes.rb +212 -0
  66. data/lib/datadog_api_client/v2/models/authn_mapping_update_data.rb +1 -1
  67. data/lib/datadog_api_client/v2/models/authn_mapping_update_relationships.rb +37 -54
  68. data/lib/datadog_api_client/v2/models/custom_destination_type.rb +1 -1
  69. data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +1 -1
  70. data/lib/datadog_api_client/v2/models/metric_series.rb +1 -1
  71. data/lib/datadog_api_client/v2/models/relationship_to_team.rb +80 -0
  72. data/lib/datadog_api_client/{v1/models/usage_attribution_response.rb → v2/models/relationship_to_team_data.rb} +21 -23
  73. data/lib/datadog_api_client/v2/models/retention_filter_update_attributes.rb +183 -0
  74. data/lib/datadog_api_client/v2/models/retention_filter_update_data.rb +1 -1
  75. data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +1 -1
  76. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb +1 -1
  77. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +1 -1
  78. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +1 -1
  79. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +1 -1
  80. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb +11 -1
  81. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb +13 -14
  82. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb +11 -1
  83. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb +13 -1
  84. data/lib/datadog_api_client/v2/models/slo_report_create_request.rb +98 -0
  85. data/lib/datadog_api_client/v2/models/slo_report_create_request_attributes.rb +160 -0
  86. data/lib/datadog_api_client/{v1/models/usage_attribution_pagination.rb → v2/models/slo_report_create_request_data.rb} +29 -51
  87. data/lib/datadog_api_client/v2/models/slo_report_interval.rb +27 -0
  88. data/lib/datadog_api_client/v2/models/slo_report_post_response.rb +80 -0
  89. data/lib/datadog_api_client/v2/models/slo_report_post_response_data.rb +90 -0
  90. data/lib/datadog_api_client/v2/models/slo_report_status.rb +29 -0
  91. data/lib/datadog_api_client/v2/models/slo_report_status_get_response.rb +80 -0
  92. data/lib/datadog_api_client/v2/models/slo_report_status_get_response_attributes.rb +80 -0
  93. data/lib/datadog_api_client/v2/models/slo_report_status_get_response_data.rb +100 -0
  94. data/lib/datadog_api_client/v2/models/timeseries_response_series.rb +8 -0
  95. data/lib/datadog_api_client/v2/models/user_teams_response.rb +13 -1
  96. data/lib/datadog_api_client/version.rb +1 -1
  97. metadata +51 -33
  98. data/examples/v1/usage-metering/GetUsageAttribution.rb +0 -9
  99. data/lib/datadog_api_client/v1/models/usage_attribution_body.rb +0 -152
  100. data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +0 -63
  101. data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +0 -74
  102. data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +0 -590
@@ -39,6 +39,9 @@ module DatadogAPIClient::V1
39
39
  # to exclude from metrics collection.
40
40
  attr_accessor :excluded_regions
41
41
 
42
+ # Whether Datadog collects additional attributes and configuration information about the resources in your AWS account. Required for `cspm_resource_collection`.
43
+ attr_accessor :extended_resource_collection_enabled
44
+
42
45
  # The array of EC2 tags (in the form `key:value`) defines a filter that Datadog uses when collecting metrics from EC2.
43
46
  # Wildcards, such as `?` (for single characters) and `*` (for multiple characters) can also be used.
44
47
  # Only hosts that match one of the defined tags
@@ -54,7 +57,7 @@ module DatadogAPIClient::V1
54
57
  # Whether Datadog collects metrics for this AWS account.
55
58
  attr_accessor :metrics_collection_enabled
56
59
 
57
- # Whether Datadog collects a standard set of resources from your AWS account.
60
+ # Deprecated in favor of 'extended_resource_collection_enabled'. Whether Datadog collects a standard set of resources from your AWS account.
58
61
  attr_accessor :resource_collection_enabled
59
62
 
60
63
  # Your Datadog role delegation name.
@@ -72,6 +75,7 @@ module DatadogAPIClient::V1
72
75
  :'account_specific_namespace_rules' => :'account_specific_namespace_rules',
73
76
  :'cspm_resource_collection_enabled' => :'cspm_resource_collection_enabled',
74
77
  :'excluded_regions' => :'excluded_regions',
78
+ :'extended_resource_collection_enabled' => :'extended_resource_collection_enabled',
75
79
  :'filter_tags' => :'filter_tags',
76
80
  :'host_tags' => :'host_tags',
77
81
  :'metrics_collection_enabled' => :'metrics_collection_enabled',
@@ -90,6 +94,7 @@ module DatadogAPIClient::V1
90
94
  :'account_specific_namespace_rules' => :'Hash<String, Boolean>',
91
95
  :'cspm_resource_collection_enabled' => :'Boolean',
92
96
  :'excluded_regions' => :'Array<String>',
97
+ :'extended_resource_collection_enabled' => :'Boolean',
93
98
  :'filter_tags' => :'Array<String>',
94
99
  :'host_tags' => :'Array<String>',
95
100
  :'metrics_collection_enabled' => :'Boolean',
@@ -137,6 +142,10 @@ module DatadogAPIClient::V1
137
142
  end
138
143
  end
139
144
 
145
+ if attributes.key?(:'extended_resource_collection_enabled')
146
+ self.extended_resource_collection_enabled = attributes[:'extended_resource_collection_enabled']
147
+ end
148
+
140
149
  if attributes.key?(:'filter_tags')
141
150
  if (value = attributes[:'filter_tags']).is_a?(Array)
142
151
  self.filter_tags = value
@@ -177,6 +186,7 @@ module DatadogAPIClient::V1
177
186
  account_specific_namespace_rules == o.account_specific_namespace_rules &&
178
187
  cspm_resource_collection_enabled == o.cspm_resource_collection_enabled &&
179
188
  excluded_regions == o.excluded_regions &&
189
+ extended_resource_collection_enabled == o.extended_resource_collection_enabled &&
180
190
  filter_tags == o.filter_tags &&
181
191
  host_tags == o.host_tags &&
182
192
  metrics_collection_enabled == o.metrics_collection_enabled &&
@@ -189,7 +199,7 @@ module DatadogAPIClient::V1
189
199
  # @return [Integer] Hash code
190
200
  # @!visibility private
191
201
  def hash
192
- [access_key_id, account_id, account_specific_namespace_rules, cspm_resource_collection_enabled, excluded_regions, filter_tags, host_tags, metrics_collection_enabled, resource_collection_enabled, role_name, secret_access_key].hash
202
+ [access_key_id, account_id, account_specific_namespace_rules, cspm_resource_collection_enabled, excluded_regions, extended_resource_collection_enabled, filter_tags, host_tags, metrics_collection_enabled, resource_collection_enabled, role_name, secret_access_key].hash
193
203
  end
194
204
  end
195
205
  end
@@ -54,6 +54,7 @@ module DatadogAPIClient::V1
54
54
  ESTIMATED_RUM_SESSIONS_USAGE = "estimated_rum_sessions_usage".freeze
55
55
  FARGATE_USAGE = "fargate_usage".freeze
56
56
  FUNCTIONS_USAGE = "functions_usage".freeze
57
+ INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_USAGE = "incident_management_monthly_active_users_usage".freeze
57
58
  INDEXED_SPANS_USAGE = "indexed_spans_usage".freeze
58
59
  INFRA_HOST_USAGE = "infra_host_usage".freeze
59
60
  INGESTED_LOGS_BYTES_USAGE = "ingested_logs_bytes_usage".freeze
@@ -75,6 +76,7 @@ module DatadogAPIClient::V1
75
76
  NPM_HOST_USAGE = "npm_host_usage".freeze
76
77
  OBS_PIPELINE_BYTES_USAGE = "obs_pipeline_bytes_usage".freeze
77
78
  OBS_PIPELINE_VCPU_USAGE = "obs_pipelines_vcpu_usage".freeze
79
+ ONLINE_ARCHIVE_USAGE = "online_archive_usage".freeze
78
80
  PROFILED_CONTAINER_USAGE = "profiled_container_usage".freeze
79
81
  PROFILED_FARGATE_USAGE = "profiled_fargate_usage".freeze
80
82
  PROFILED_HOST_USAGE = "profiled_host_usage".freeze
@@ -122,11 +122,14 @@ module DatadogAPIClient::V1
122
122
  attr_accessor :renotify_occurrences
123
123
 
124
124
  # The types of monitor statuses for which re-notification messages are sent.
125
+ # Default: **null** if `renotify_interval` is **null**.
126
+ # If `renotify_interval` is set, defaults to renotify on `Alert` and `No Data`.
125
127
  attr_accessor :renotify_statuses
126
128
 
127
129
  # A Boolean indicating whether this monitor needs a full window of data before it’s evaluated.
128
130
  # We highly recommend you set this to `false` for sparse metrics,
129
- # otherwise some evaluations are skipped. Default is false.
131
+ # otherwise some evaluations are skipped. Default is false. This setting only applies to
132
+ # metric monitors.
130
133
  attr_accessor :require_full_window
131
134
 
132
135
  # Configuration options for scheduling.
@@ -75,6 +75,8 @@ module DatadogAPIClient::V1
75
75
  FARGATE_PERCENTAGE = "fargate_percentage".freeze
76
76
  FUNCTIONS_USAGE = "functions_usage".freeze
77
77
  FUNCTIONS_PERCENTAGE = "functions_percentage".freeze
78
+ INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_USAGE = "incident_management_monthly_active_users_usage".freeze
79
+ INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_PERCENTAGE = "incident_management_monthly_active_users_percentage".freeze
78
80
  INFRA_HOST_USAGE = "infra_host_usage".freeze
79
81
  INFRA_HOST_PERCENTAGE = "infra_host_percentage".freeze
80
82
  INVOCATIONS_USAGE = "invocations_usage".freeze
@@ -91,6 +93,8 @@ module DatadogAPIClient::V1
91
93
  OBS_PIPELINE_BYTES_PERCENTAGE = "obs_pipeline_bytes_percentage".freeze
92
94
  OBS_PIPELINES_VCPU_USAGE = "obs_pipelines_vcpu_usage".freeze
93
95
  OBS_PIPELINES_VCPU_PERCENTAGE = "obs_pipelines_vcpu_percentage".freeze
96
+ ONLINE_ARCHIVE_USAGE = "online_archive_usage".freeze
97
+ ONLINE_ARCHIVE_PERCENTAGE = "online_archive_percentage".freeze
94
98
  PROFILED_CONTAINER_USAGE = "profiled_container_usage".freeze
95
99
  PROFILED_CONTAINER_PERCENTAGE = "profiled_container_percentage".freeze
96
100
  PROFILED_FARGATE_USAGE = "profiled_fargate_usage".freeze
@@ -207,6 +207,12 @@ module DatadogAPIClient::V1
207
207
  # The Lambda function usage by tag(s).
208
208
  attr_accessor :functions_usage
209
209
 
210
+ # The percentage of Incident Management monthly active users usage by tag(s).
211
+ attr_accessor :incident_management_monthly_active_users_percentage
212
+
213
+ # The Incident Management monthly active users usage by tag(s).
214
+ attr_accessor :incident_management_monthly_active_users_usage
215
+
210
216
  # The percentage of APM Indexed Spans usage by tag(s).
211
217
  attr_accessor :indexed_spans_percentage
212
218
 
@@ -333,6 +339,12 @@ module DatadogAPIClient::V1
333
339
  # The observability pipeline per core usage by tag(s).
334
340
  attr_accessor :obs_pipelines_vcpu_usage
335
341
 
342
+ # The percentage of online archive usage by tag(s).
343
+ attr_accessor :online_archive_percentage
344
+
345
+ # The online archive usage by tag(s).
346
+ attr_accessor :online_archive_usage
347
+
336
348
  # The percentage of profiled container usage by tag(s).
337
349
  attr_accessor :profiled_container_percentage
338
350
 
@@ -471,6 +483,8 @@ module DatadogAPIClient::V1
471
483
  :'fargate_usage' => :'fargate_usage',
472
484
  :'functions_percentage' => :'functions_percentage',
473
485
  :'functions_usage' => :'functions_usage',
486
+ :'incident_management_monthly_active_users_percentage' => :'incident_management_monthly_active_users_percentage',
487
+ :'incident_management_monthly_active_users_usage' => :'incident_management_monthly_active_users_usage',
474
488
  :'indexed_spans_percentage' => :'indexed_spans_percentage',
475
489
  :'indexed_spans_usage' => :'indexed_spans_usage',
476
490
  :'infra_host_percentage' => :'infra_host_percentage',
@@ -513,6 +527,8 @@ module DatadogAPIClient::V1
513
527
  :'obs_pipeline_bytes_usage' => :'obs_pipeline_bytes_usage',
514
528
  :'obs_pipelines_vcpu_percentage' => :'obs_pipelines_vcpu_percentage',
515
529
  :'obs_pipelines_vcpu_usage' => :'obs_pipelines_vcpu_usage',
530
+ :'online_archive_percentage' => :'online_archive_percentage',
531
+ :'online_archive_usage' => :'online_archive_usage',
516
532
  :'profiled_container_percentage' => :'profiled_container_percentage',
517
533
  :'profiled_container_usage' => :'profiled_container_usage',
518
534
  :'profiled_fargate_percentage' => :'profiled_fargate_percentage',
@@ -606,6 +622,8 @@ module DatadogAPIClient::V1
606
622
  :'fargate_usage' => :'Float',
607
623
  :'functions_percentage' => :'Float',
608
624
  :'functions_usage' => :'Float',
625
+ :'incident_management_monthly_active_users_percentage' => :'Float',
626
+ :'incident_management_monthly_active_users_usage' => :'Float',
609
627
  :'indexed_spans_percentage' => :'Float',
610
628
  :'indexed_spans_usage' => :'Float',
611
629
  :'infra_host_percentage' => :'Float',
@@ -648,6 +666,8 @@ module DatadogAPIClient::V1
648
666
  :'obs_pipeline_bytes_usage' => :'Float',
649
667
  :'obs_pipelines_vcpu_percentage' => :'Float',
650
668
  :'obs_pipelines_vcpu_usage' => :'Float',
669
+ :'online_archive_percentage' => :'Float',
670
+ :'online_archive_usage' => :'Float',
651
671
  :'profiled_container_percentage' => :'Float',
652
672
  :'profiled_container_usage' => :'Float',
653
673
  :'profiled_fargate_percentage' => :'Float',
@@ -939,6 +959,14 @@ module DatadogAPIClient::V1
939
959
  self.functions_usage = attributes[:'functions_usage']
940
960
  end
941
961
 
962
+ if attributes.key?(:'incident_management_monthly_active_users_percentage')
963
+ self.incident_management_monthly_active_users_percentage = attributes[:'incident_management_monthly_active_users_percentage']
964
+ end
965
+
966
+ if attributes.key?(:'incident_management_monthly_active_users_usage')
967
+ self.incident_management_monthly_active_users_usage = attributes[:'incident_management_monthly_active_users_usage']
968
+ end
969
+
942
970
  if attributes.key?(:'indexed_spans_percentage')
943
971
  self.indexed_spans_percentage = attributes[:'indexed_spans_percentage']
944
972
  end
@@ -1107,6 +1135,14 @@ module DatadogAPIClient::V1
1107
1135
  self.obs_pipelines_vcpu_usage = attributes[:'obs_pipelines_vcpu_usage']
1108
1136
  end
1109
1137
 
1138
+ if attributes.key?(:'online_archive_percentage')
1139
+ self.online_archive_percentage = attributes[:'online_archive_percentage']
1140
+ end
1141
+
1142
+ if attributes.key?(:'online_archive_usage')
1143
+ self.online_archive_usage = attributes[:'online_archive_usage']
1144
+ end
1145
+
1110
1146
  if attributes.key?(:'profiled_container_percentage')
1111
1147
  self.profiled_container_percentage = attributes[:'profiled_container_percentage']
1112
1148
  end
@@ -1272,6 +1308,8 @@ module DatadogAPIClient::V1
1272
1308
  fargate_usage == o.fargate_usage &&
1273
1309
  functions_percentage == o.functions_percentage &&
1274
1310
  functions_usage == o.functions_usage &&
1311
+ incident_management_monthly_active_users_percentage == o.incident_management_monthly_active_users_percentage &&
1312
+ incident_management_monthly_active_users_usage == o.incident_management_monthly_active_users_usage &&
1275
1313
  indexed_spans_percentage == o.indexed_spans_percentage &&
1276
1314
  indexed_spans_usage == o.indexed_spans_usage &&
1277
1315
  infra_host_percentage == o.infra_host_percentage &&
@@ -1314,6 +1352,8 @@ module DatadogAPIClient::V1
1314
1352
  obs_pipeline_bytes_usage == o.obs_pipeline_bytes_usage &&
1315
1353
  obs_pipelines_vcpu_percentage == o.obs_pipelines_vcpu_percentage &&
1316
1354
  obs_pipelines_vcpu_usage == o.obs_pipelines_vcpu_usage &&
1355
+ online_archive_percentage == o.online_archive_percentage &&
1356
+ online_archive_usage == o.online_archive_usage &&
1317
1357
  profiled_container_percentage == o.profiled_container_percentage &&
1318
1358
  profiled_container_usage == o.profiled_container_usage &&
1319
1359
  profiled_fargate_percentage == o.profiled_fargate_percentage &&
@@ -1344,7 +1384,7 @@ module DatadogAPIClient::V1
1344
1384
  # @return [Integer] Hash code
1345
1385
  # @!visibility private
1346
1386
  def hash
1347
- [api_percentage, api_usage, apm_fargate_percentage, apm_fargate_usage, apm_host_percentage, apm_host_usage, apm_usm_percentage, apm_usm_usage, appsec_fargate_percentage, appsec_fargate_usage, appsec_percentage, appsec_usage, asm_serverless_traced_invocations_percentage, asm_serverless_traced_invocations_usage, browser_percentage, browser_usage, ci_pipeline_indexed_spans_percentage, ci_pipeline_indexed_spans_usage, ci_test_indexed_spans_percentage, ci_test_indexed_spans_usage, ci_visibility_itr_percentage, ci_visibility_itr_usage, cloud_siem_percentage, cloud_siem_usage, container_excl_agent_percentage, container_excl_agent_usage, container_percentage, container_usage, cspm_containers_percentage, cspm_containers_usage, cspm_hosts_percentage, cspm_hosts_usage, custom_event_percentage, custom_event_usage, custom_ingested_timeseries_percentage, custom_ingested_timeseries_usage, custom_timeseries_percentage, custom_timeseries_usage, cws_containers_percentage, cws_containers_usage, cws_hosts_percentage, cws_hosts_usage, dbm_hosts_percentage, dbm_hosts_usage, dbm_queries_percentage, dbm_queries_usage, error_tracking_percentage, error_tracking_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, estimated_rum_sessions_percentage, estimated_rum_sessions_usage, fargate_percentage, fargate_usage, functions_percentage, functions_usage, indexed_spans_percentage, indexed_spans_usage, infra_host_percentage, infra_host_usage, ingested_logs_bytes_percentage, ingested_logs_bytes_usage, ingested_spans_bytes_percentage, ingested_spans_bytes_usage, invocations_percentage, invocations_usage, lambda_traced_invocations_percentage, lambda_traced_invocations_usage, logs_indexed_15day_percentage, logs_indexed_15day_usage, logs_indexed_180day_percentage, logs_indexed_180day_usage, logs_indexed_30day_percentage, logs_indexed_30day_usage, logs_indexed_360day_percentage, logs_indexed_360day_usage, logs_indexed_3day_percentage, logs_indexed_3day_usage, logs_indexed_45day_percentage, logs_indexed_45day_usage, logs_indexed_60day_percentage, logs_indexed_60day_usage, logs_indexed_7day_percentage, logs_indexed_7day_usage, logs_indexed_90day_percentage, logs_indexed_90day_usage, logs_indexed_custom_retention_percentage, logs_indexed_custom_retention_usage, mobile_app_testing_percentage, mobile_app_testing_usage, ndm_netflow_percentage, ndm_netflow_usage, npm_host_percentage, npm_host_usage, obs_pipeline_bytes_percentage, obs_pipeline_bytes_usage, obs_pipelines_vcpu_percentage, obs_pipelines_vcpu_usage, profiled_container_percentage, profiled_container_usage, profiled_fargate_percentage, profiled_fargate_usage, profiled_host_percentage, profiled_host_usage, rum_browser_mobile_sessions_percentage, rum_browser_mobile_sessions_usage, rum_replay_sessions_percentage, rum_replay_sessions_usage, sds_scanned_bytes_percentage, sds_scanned_bytes_usage, serverless_apps_percentage, serverless_apps_usage, siem_ingested_bytes_percentage, siem_ingested_bytes_usage, snmp_percentage, snmp_usage, universal_service_monitoring_percentage, universal_service_monitoring_usage, vuln_management_hosts_percentage, vuln_management_hosts_usage, workflow_executions_percentage, workflow_executions_usage].hash
1387
+ [api_percentage, api_usage, apm_fargate_percentage, apm_fargate_usage, apm_host_percentage, apm_host_usage, apm_usm_percentage, apm_usm_usage, appsec_fargate_percentage, appsec_fargate_usage, appsec_percentage, appsec_usage, asm_serverless_traced_invocations_percentage, asm_serverless_traced_invocations_usage, browser_percentage, browser_usage, ci_pipeline_indexed_spans_percentage, ci_pipeline_indexed_spans_usage, ci_test_indexed_spans_percentage, ci_test_indexed_spans_usage, ci_visibility_itr_percentage, ci_visibility_itr_usage, cloud_siem_percentage, cloud_siem_usage, container_excl_agent_percentage, container_excl_agent_usage, container_percentage, container_usage, cspm_containers_percentage, cspm_containers_usage, cspm_hosts_percentage, cspm_hosts_usage, custom_event_percentage, custom_event_usage, custom_ingested_timeseries_percentage, custom_ingested_timeseries_usage, custom_timeseries_percentage, custom_timeseries_usage, cws_containers_percentage, cws_containers_usage, cws_hosts_percentage, cws_hosts_usage, dbm_hosts_percentage, dbm_hosts_usage, dbm_queries_percentage, dbm_queries_usage, error_tracking_percentage, error_tracking_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, estimated_rum_sessions_percentage, estimated_rum_sessions_usage, fargate_percentage, fargate_usage, functions_percentage, functions_usage, incident_management_monthly_active_users_percentage, incident_management_monthly_active_users_usage, indexed_spans_percentage, indexed_spans_usage, infra_host_percentage, infra_host_usage, ingested_logs_bytes_percentage, ingested_logs_bytes_usage, ingested_spans_bytes_percentage, ingested_spans_bytes_usage, invocations_percentage, invocations_usage, lambda_traced_invocations_percentage, lambda_traced_invocations_usage, logs_indexed_15day_percentage, logs_indexed_15day_usage, logs_indexed_180day_percentage, logs_indexed_180day_usage, logs_indexed_30day_percentage, logs_indexed_30day_usage, logs_indexed_360day_percentage, logs_indexed_360day_usage, logs_indexed_3day_percentage, logs_indexed_3day_usage, logs_indexed_45day_percentage, logs_indexed_45day_usage, logs_indexed_60day_percentage, logs_indexed_60day_usage, logs_indexed_7day_percentage, logs_indexed_7day_usage, logs_indexed_90day_percentage, logs_indexed_90day_usage, logs_indexed_custom_retention_percentage, logs_indexed_custom_retention_usage, mobile_app_testing_percentage, mobile_app_testing_usage, ndm_netflow_percentage, ndm_netflow_usage, npm_host_percentage, npm_host_usage, obs_pipeline_bytes_percentage, obs_pipeline_bytes_usage, obs_pipelines_vcpu_percentage, obs_pipelines_vcpu_usage, online_archive_percentage, online_archive_usage, profiled_container_percentage, profiled_container_usage, profiled_fargate_percentage, profiled_fargate_usage, profiled_host_percentage, profiled_host_usage, rum_browser_mobile_sessions_percentage, rum_browser_mobile_sessions_usage, rum_replay_sessions_percentage, rum_replay_sessions_usage, sds_scanned_bytes_percentage, sds_scanned_bytes_usage, serverless_apps_percentage, serverless_apps_usage, siem_ingested_bytes_percentage, siem_ingested_bytes_usage, snmp_percentage, snmp_usage, universal_service_monitoring_percentage, universal_service_monitoring_usage, vuln_management_hosts_percentage, vuln_management_hosts_usage, workflow_executions_percentage, workflow_executions_usage].hash
1348
1388
  end
1349
1389
  end
1350
1390
  end
@@ -25,7 +25,7 @@ module DatadogAPIClient::V1
25
25
  # The name of the host that produced the metric.
26
26
  attr_accessor :host
27
27
 
28
- # If the type of the metric is rate or count, define the corresponding interval.
28
+ # If the type of the metric is rate or count, define the corresponding interval in seconds.
29
29
  attr_accessor :interval
30
30
 
31
31
  # The name of the timeseries.
@@ -18,7 +18,7 @@ require 'time'
18
18
 
19
19
  module DatadogAPIClient::V1
20
20
  # The time-slice condition, composed of 3 parts: 1. the metric timeseries query, 2. the comparator,
21
- # and 3. the threshold.
21
+ # and 3. the threshold. Optionally, a fourth part, the query interval, can be provided.
22
22
  class SLOTimeSliceCondition
23
23
  include BaseGenericModel
24
24
 
@@ -28,6 +28,11 @@ module DatadogAPIClient::V1
28
28
  # The queries and formula used to calculate the SLI value.
29
29
  attr_reader :query
30
30
 
31
+ # The interval used when querying data, which defines the size of a time slice.
32
+ # Two values are allowed: 60 (1 minute) and 300 (5 minutes).
33
+ # If not provided, the value defaults to 300 (5 minutes).
34
+ attr_accessor :query_interval_seconds
35
+
31
36
  # The threshold value to which each SLI value will be compared.
32
37
  attr_reader :threshold
33
38
 
@@ -37,6 +42,7 @@ module DatadogAPIClient::V1
37
42
  {
38
43
  :'comparator' => :'comparator',
39
44
  :'query' => :'query',
45
+ :'query_interval_seconds' => :'query_interval_seconds',
40
46
  :'threshold' => :'threshold'
41
47
  }
42
48
  end
@@ -47,6 +53,7 @@ module DatadogAPIClient::V1
47
53
  {
48
54
  :'comparator' => :'SLOTimeSliceComparator',
49
55
  :'query' => :'SLOTimeSliceQuery',
56
+ :'query_interval_seconds' => :'SLOTimeSliceInterval',
50
57
  :'threshold' => :'Float'
51
58
  }
52
59
  end
@@ -75,6 +82,10 @@ module DatadogAPIClient::V1
75
82
  self.query = attributes[:'query']
76
83
  end
77
84
 
85
+ if attributes.key?(:'query_interval_seconds')
86
+ self.query_interval_seconds = attributes[:'query_interval_seconds']
87
+ end
88
+
78
89
  if attributes.key?(:'threshold')
79
90
  self.threshold = attributes[:'threshold']
80
91
  end
@@ -128,6 +139,7 @@ module DatadogAPIClient::V1
128
139
  self.class == o.class &&
129
140
  comparator == o.comparator &&
130
141
  query == o.query &&
142
+ query_interval_seconds == o.query_interval_seconds &&
131
143
  threshold == o.threshold
132
144
  end
133
145
 
@@ -135,7 +147,7 @@ module DatadogAPIClient::V1
135
147
  # @return [Integer] Hash code
136
148
  # @!visibility private
137
149
  def hash
138
- [comparator, query, threshold].hash
150
+ [comparator, query, query_interval_seconds, threshold].hash
139
151
  end
140
152
  end
141
153
  end
@@ -0,0 +1,29 @@
1
+ =begin
2
+ #Datadog API V1 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V1
20
+ # The interval used when querying data, which defines the size of a time slice.
21
+ # Two values are allowed: 60 (1 minute) and 300 (5 minutes).
22
+ # If not provided, the value defaults to 300 (5 minutes).
23
+ class SLOTimeSliceInterval
24
+ include BaseEnumModel
25
+
26
+ ONE_MINUTE = 60.freeze
27
+ FIVE_MINUTES = 300.freeze
28
+ end
29
+ end
@@ -22,7 +22,7 @@ module DatadogAPIClient::V1
22
22
  include BaseGenericModel
23
23
 
24
24
  # The time-slice condition, composed of 3 parts: 1. the metric timeseries query, 2. the comparator,
25
- # and 3. the threshold.
25
+ # and 3. the threshold. Optionally, a fourth part, the query interval, can be provided.
26
26
  attr_reader :time_slice
27
27
 
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -54,6 +54,9 @@ module DatadogAPIClient::V1
54
54
  # DNS server port to use for DNS tests.
55
55
  attr_reader :dns_server_port
56
56
 
57
+ # Files to be used as part of the request in the test.
58
+ attr_accessor :files
59
+
57
60
  # Specifies whether or not the request follows redirects.
58
61
  attr_accessor :follow_redirects
59
62
 
@@ -125,6 +128,7 @@ module DatadogAPIClient::V1
125
128
  :'compressed_proto_file' => :'compressedProtoFile',
126
129
  :'dns_server' => :'dnsServer',
127
130
  :'dns_server_port' => :'dnsServerPort',
131
+ :'files' => :'files',
128
132
  :'follow_redirects' => :'follow_redirects',
129
133
  :'headers' => :'headers',
130
134
  :'host' => :'host',
@@ -161,6 +165,7 @@ module DatadogAPIClient::V1
161
165
  :'compressed_proto_file' => :'String',
162
166
  :'dns_server' => :'String',
163
167
  :'dns_server_port' => :'Integer',
168
+ :'files' => :'Array<SyntheticsTestRequestBodyFile>',
164
169
  :'follow_redirects' => :'Boolean',
165
170
  :'headers' => :'Hash<String, String>',
166
171
  :'host' => :'String',
@@ -244,6 +249,12 @@ module DatadogAPIClient::V1
244
249
  self.dns_server_port = attributes[:'dns_server_port']
245
250
  end
246
251
 
252
+ if attributes.key?(:'files')
253
+ if (value = attributes[:'files']).is_a?(Array)
254
+ self.files = value
255
+ end
256
+ end
257
+
247
258
  if attributes.key?(:'follow_redirects')
248
259
  self.follow_redirects = attributes[:'follow_redirects']
249
260
  end
@@ -371,6 +382,7 @@ module DatadogAPIClient::V1
371
382
  compressed_proto_file == o.compressed_proto_file &&
372
383
  dns_server == o.dns_server &&
373
384
  dns_server_port == o.dns_server_port &&
385
+ files == o.files &&
374
386
  follow_redirects == o.follow_redirects &&
375
387
  headers == o.headers &&
376
388
  host == o.host &&
@@ -395,7 +407,7 @@ module DatadogAPIClient::V1
395
407
  # @return [Integer] Hash code
396
408
  # @!visibility private
397
409
  def hash
398
- [allow_insecure, basic_auth, body, body_type, call_type, certificate, certificate_domains, compressed_json_descriptor, compressed_proto_file, dns_server, dns_server_port, follow_redirects, headers, host, http_version, message, metadata, method, no_saving_response_body, number_of_packets, persist_cookies, port, proxy, query, servername, service, should_track_hops, timeout, url].hash
410
+ [allow_insecure, basic_auth, body, body_type, call_type, certificate, certificate_domains, compressed_json_descriptor, compressed_proto_file, dns_server, dns_server_port, files, follow_redirects, headers, host, http_version, message, metadata, method, no_saving_response_body, number_of_packets, persist_cookies, port, proxy, query, servername, service, should_track_hops, timeout, url].hash
399
411
  end
400
412
  end
401
413
  end
@@ -0,0 +1,175 @@
1
+ =begin
2
+ #Datadog API V1 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V1
20
+ # Object describing a file to be used as part of the request in the test.
21
+ class SyntheticsTestRequestBodyFile
22
+ include BaseGenericModel
23
+
24
+ # Bucket key of the file.
25
+ attr_accessor :bucket_key
26
+
27
+ # Content of the file.
28
+ attr_reader :content
29
+
30
+ # Name of the file.
31
+ attr_reader :name
32
+
33
+ # Size of the file.
34
+ attr_reader :size
35
+
36
+ # Type of the file.
37
+ attr_reader :type
38
+
39
+ # Attribute mapping from ruby-style variable name to JSON key.
40
+ # @!visibility private
41
+ def self.attribute_map
42
+ {
43
+ :'bucket_key' => :'bucketKey',
44
+ :'content' => :'content',
45
+ :'name' => :'name',
46
+ :'size' => :'size',
47
+ :'type' => :'type'
48
+ }
49
+ end
50
+
51
+ # Attribute type mapping.
52
+ # @!visibility private
53
+ def self.openapi_types
54
+ {
55
+ :'bucket_key' => :'String',
56
+ :'content' => :'String',
57
+ :'name' => :'String',
58
+ :'size' => :'Integer',
59
+ :'type' => :'String'
60
+ }
61
+ end
62
+
63
+ # Initializes the object
64
+ # @param attributes [Hash] Model attributes in the form of hash
65
+ # @!visibility private
66
+ def initialize(attributes = {})
67
+ if (!attributes.is_a?(Hash))
68
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestRequestBodyFile` initialize method"
69
+ end
70
+
71
+ # check to see if the attribute exists and convert string to symbol for hash key
72
+ attributes = attributes.each_with_object({}) { |(k, v), h|
73
+ if (!self.class.attribute_map.key?(k.to_sym))
74
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsTestRequestBodyFile`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
75
+ end
76
+ h[k.to_sym] = v
77
+ }
78
+
79
+ if attributes.key?(:'bucket_key')
80
+ self.bucket_key = attributes[:'bucket_key']
81
+ end
82
+
83
+ if attributes.key?(:'content')
84
+ self.content = attributes[:'content']
85
+ end
86
+
87
+ if attributes.key?(:'name')
88
+ self.name = attributes[:'name']
89
+ end
90
+
91
+ if attributes.key?(:'size')
92
+ self.size = attributes[:'size']
93
+ end
94
+
95
+ if attributes.key?(:'type')
96
+ self.type = attributes[:'type']
97
+ end
98
+ end
99
+
100
+ # Check to see if the all the properties in the model are valid
101
+ # @return true if the model is valid
102
+ # @!visibility private
103
+ def valid?
104
+ return false if !@content.nil? && @content.to_s.length > 3145728
105
+ return false if !@name.nil? && @name.to_s.length > 1500
106
+ return false if !@size.nil? && @size > 3145728
107
+ return false if !@size.nil? && @size < 1
108
+ return false if !@type.nil? && @type.to_s.length > 1500
109
+ true
110
+ end
111
+
112
+ # Custom attribute writer method with validation
113
+ # @param content [Object] Object to be assigned
114
+ # @!visibility private
115
+ def content=(content)
116
+ if !content.nil? && content.to_s.length > 3145728
117
+ fail ArgumentError, 'invalid value for "content", the character length must be smaller than or equal to 3145728.'
118
+ end
119
+ @content = content
120
+ end
121
+
122
+ # Custom attribute writer method with validation
123
+ # @param name [Object] Object to be assigned
124
+ # @!visibility private
125
+ def name=(name)
126
+ if !name.nil? && name.to_s.length > 1500
127
+ fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 1500.'
128
+ end
129
+ @name = name
130
+ end
131
+
132
+ # Custom attribute writer method with validation
133
+ # @param size [Object] Object to be assigned
134
+ # @!visibility private
135
+ def size=(size)
136
+ if !size.nil? && size > 3145728
137
+ fail ArgumentError, 'invalid value for "size", must be smaller than or equal to 3145728.'
138
+ end
139
+ if !size.nil? && size < 1
140
+ fail ArgumentError, 'invalid value for "size", must be greater than or equal to 1.'
141
+ end
142
+ @size = size
143
+ end
144
+
145
+ # Custom attribute writer method with validation
146
+ # @param type [Object] Object to be assigned
147
+ # @!visibility private
148
+ def type=(type)
149
+ if !type.nil? && type.to_s.length > 1500
150
+ fail ArgumentError, 'invalid value for "type", the character length must be smaller than or equal to 1500.'
151
+ end
152
+ @type = type
153
+ end
154
+
155
+ # Checks equality by comparing each attribute.
156
+ # @param o [Object] Object to be compared
157
+ # @!visibility private
158
+ def ==(o)
159
+ return true if self.equal?(o)
160
+ self.class == o.class &&
161
+ bucket_key == o.bucket_key &&
162
+ content == o.content &&
163
+ name == o.name &&
164
+ size == o.size &&
165
+ type == o.type
166
+ end
167
+
168
+ # Calculates hash code according to all attributes.
169
+ # @return [Integer] Hash code
170
+ # @!visibility private
171
+ def hash
172
+ [bucket_key, content, name, size, type].hash
173
+ end
174
+ end
175
+ end
@@ -27,5 +27,7 @@ module DatadogAPIClient::V1
27
27
  TEXT_HTML = "text/html".freeze
28
28
  APPLICATION_X_WWW_FORM_URLENCODED = "application/x-www-form-urlencoded".freeze
29
29
  GRAPHQL = "graphql".freeze
30
+ APPLICATION_OCTET_STREAM = "application/octet-stream".freeze
31
+ MULTIPART_FORM_DATA = "multipart/form-data".freeze
30
32
  end
31
33
  end
@@ -36,6 +36,8 @@ module DatadogAPIClient::V2
36
36
  # Create a retention filter to index spans in your organization.
37
37
  # Returns the retention filter definition when the request is successful.
38
38
  #
39
+ # Default filters with types spans-errors-sampling-processor and spans-appsec-sampling-processor cannot be created.
40
+ #
39
41
  # @param body [RetentionFilterCreateRequest] The definition of the new retention filter.
40
42
  # @param opts [Hash] the optional parameters
41
43
  # @return [Array<(RetentionFilterResponse, Integer, Hash)>] RetentionFilterResponse data, response status code and response headers
@@ -103,6 +105,8 @@ module DatadogAPIClient::V2
103
105
  #
104
106
  # Delete a specific retention filter from your organization.
105
107
  #
108
+ # Default filters with types spans-errors-sampling-processor and spans-appsec-sampling-processor cannot be deleted.
109
+ #
106
110
  # @param filter_id [String] The ID of the retention filter.
107
111
  # @param opts [Hash] the optional parameters
108
112
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -360,6 +364,8 @@ module DatadogAPIClient::V2
360
364
  #
361
365
  # Update a retention filter from your organization.
362
366
  #
367
+ # Default filters (filters with types spans-errors-sampling-processor and spans-appsec-sampling-processor) cannot be renamed or removed.
368
+ #
363
369
  # @param filter_id [String] The ID of the retention filter.
364
370
  # @param body [RetentionFilterUpdateRequest] The updated definition of the retention filter.
365
371
  # @param opts [Hash] the optional parameters
@@ -405,7 +405,7 @@ module DatadogAPIClient::V2
405
405
 
406
406
  # List active tags and aggregations.
407
407
  #
408
- # List tags and aggregations that are actively queried on dashboards and monitors for a given metric name.
408
+ # List tags and aggregations that are actively queried on dashboards, notebooks, monitors, and the Metrics Explorer for a given metric name.
409
409
  #
410
410
  # @param metric_name [String] The name of the metric.
411
411
  # @param opts [Hash] the optional parameters