datadog_api_client 2.21.0 → 2.23.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.
Files changed (155) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/schemas/v1/openapi.yaml +308 -695
  4. data/.generator/schemas/v2/openapi.yaml +664 -185
  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 +41 -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/CreateSyntheticsAPITest_1487281163.rb +9 -0
  16. data/examples/v1/synthetics/CreateSyntheticsAPITest_960766374.rb +8 -0
  17. data/examples/v1/synthetics/UpdateAPITest.rb +8 -0
  18. data/examples/v1/synthetics/UpdateBrowserTest.rb +3 -0
  19. data/examples/v2/apm-retention-filters/UpdateApmRetentionFilter.rb +2 -2
  20. data/examples/v2/authn-mappings/CreateAuthNMapping.rb +1 -1
  21. data/examples/v2/authn-mappings/UpdateAuthNMapping.rb +1 -1
  22. data/examples/v2/{cloud-workload-security → csm-threats}/CreateCSMThreatsAgentRule.rb +2 -2
  23. data/examples/v2/{cloud-workload-security → csm-threats}/CreateCloudWorkloadSecurityAgentRule.rb +2 -2
  24. data/examples/v2/{cloud-workload-security → csm-threats}/DeleteCSMThreatsAgentRule.rb +1 -1
  25. data/examples/v2/{cloud-workload-security → csm-threats}/DeleteCloudWorkloadSecurityAgentRule.rb +1 -1
  26. data/examples/v2/{cloud-workload-security → csm-threats}/DownloadCSMThreatsPolicy.rb +1 -1
  27. data/examples/v2/{cloud-workload-security → csm-threats}/DownloadCloudWorkloadPolicyFile.rb +1 -1
  28. data/examples/v2/{cloud-workload-security → csm-threats}/GetCSMThreatsAgentRule.rb +1 -1
  29. data/examples/v2/{cloud-workload-security → csm-threats}/GetCloudWorkloadSecurityAgentRule.rb +1 -1
  30. data/examples/v2/{cloud-workload-security → csm-threats}/ListCSMThreatsAgentRules.rb +1 -1
  31. data/examples/v2/{cloud-workload-security → csm-threats}/ListCloudWorkloadSecurityAgentRules.rb +1 -1
  32. data/examples/v2/{cloud-workload-security → csm-threats}/UpdateCSMThreatsAgentRule.rb +1 -1
  33. data/examples/v2/{cloud-workload-security → csm-threats}/UpdateCloudWorkloadSecurityAgentRule.rb +1 -1
  34. data/examples/v2/gcp-integration/CreateGCPSTSAccount.rb +1 -1
  35. data/examples/v2/gcp-integration/CreateGCPSTSAccount_109518525.rb +1 -1
  36. data/examples/v2/gcp-integration/CreateGCPSTSAccount_130557025.rb +1 -1
  37. data/examples/v2/gcp-integration/CreateGCPSTSAccount_194782945.rb +1 -1
  38. data/examples/v2/gcp-integration/CreateGCPSTSAccount_2597004741.rb +1 -1
  39. data/examples/v2/gcp-integration/CreateGCPSTSAccount_4235664992.rb +1 -1
  40. data/examples/v2/gcp-integration/UpdateGCPSTSAccount.rb +1 -1
  41. data/examples/v2/gcp-integration/UpdateGCPSTSAccount_2241994060.rb +1 -1
  42. data/examples/v2/gcp-integration/UpdateGCPSTSAccount_3205636354.rb +1 -1
  43. data/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination.rb +4 -0
  44. data/examples/v2/metrics/QueryScalarData_3112571352.rb +2 -2
  45. data/examples/v2/metrics/QueryTimeseriesData_301142940.rb +3 -3
  46. data/examples/v2/roles/CreateRole.rb +14 -2
  47. data/examples/v2/roles/CreateRole_3862893229.rb +27 -0
  48. data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.rb +1 -1
  49. data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression_3192265332.rb +19 -0
  50. data/examples/v2/security-monitoring/ValidateSecurityMonitoringRule.rb +42 -0
  51. data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +4 -0
  52. data/examples/v2/service-level-objectives/CreateSLOReportJob.rb +20 -0
  53. data/examples/v2/service-level-objectives/GetSLOReport.rb +8 -0
  54. data/examples/v2/service-level-objectives/GetSLOReportJobStatus.rb +11 -0
  55. data/lib/datadog_api_client/configuration.rb +3 -0
  56. data/lib/datadog_api_client/inflector.rb +26 -8
  57. data/lib/datadog_api_client/v1/api/authentication_api.rb +1 -1
  58. data/lib/datadog_api_client/v1/api/aws_integration_api.rb +1 -1
  59. data/lib/datadog_api_client/v1/api/logs_indexes_api.rb +1 -1
  60. data/lib/datadog_api_client/v1/api/logs_pipelines_api.rb +3 -3
  61. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +112 -135
  62. data/lib/datadog_api_client/v1/api/users_api.rb +1 -1
  63. data/lib/datadog_api_client/v1/models/aws_account.rb +12 -2
  64. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +3 -0
  65. data/lib/datadog_api_client/v1/models/monitor_options.rb +4 -1
  66. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +6 -0
  67. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +61 -1
  68. data/lib/datadog_api_client/v1/models/series.rb +1 -1
  69. data/lib/datadog_api_client/v1/models/service_level_objective.rb +2 -1
  70. data/lib/datadog_api_client/v1/models/service_level_objective_request.rb +2 -1
  71. data/lib/datadog_api_client/v1/models/slo_history_monitor.rb +7 -1
  72. data/lib/datadog_api_client/v1/models/slo_history_sli_data.rb +8 -1
  73. data/lib/datadog_api_client/v1/models/slo_overall_statuses.rb +2 -1
  74. data/lib/datadog_api_client/v1/models/slo_response_data.rb +2 -1
  75. data/lib/datadog_api_client/v1/models/slo_threshold.rb +2 -1
  76. data/lib/datadog_api_client/v1/models/slo_time_slice_condition.rb +14 -2
  77. data/lib/datadog_api_client/v1/models/slo_time_slice_interval.rb +29 -0
  78. data/lib/datadog_api_client/v1/models/slo_time_slice_spec.rb +1 -1
  79. data/lib/datadog_api_client/v1/models/slo_timeframe.rb +2 -1
  80. data/lib/datadog_api_client/v1/models/synthetics_api_test_config.rb +14 -4
  81. data/lib/datadog_api_client/v1/models/synthetics_assertion.rb +1 -0
  82. data/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_meta_schema.rb +27 -0
  83. data/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_operator.rb +26 -0
  84. data/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target.rb +129 -0
  85. data/lib/datadog_api_client/v1/models/{usage_attribution_metadata.rb → synthetics_assertion_json_schema_target_target.rb} +19 -21
  86. data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +13 -1
  87. data/lib/datadog_api_client/v1/models/synthetics_test_request_body_file.rb +175 -0
  88. data/lib/datadog_api_client/v1/models/synthetics_test_request_body_type.rb +2 -0
  89. data/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb +11 -1
  90. data/lib/datadog_api_client/v2/api/apm_retention_filters_api.rb +8 -2
  91. data/lib/datadog_api_client/v2/api/authn_mappings_api.rb +2 -2
  92. data/lib/datadog_api_client/v2/api/case_management_api.rb +17 -16
  93. data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +10 -10
  94. data/lib/datadog_api_client/v2/api/{cloud_workload_security_api.rb → csm_threats_api.rb} +35 -35
  95. data/lib/datadog_api_client/v2/api/events_api.rb +1 -1
  96. data/lib/datadog_api_client/v2/api/ip_allowlist_api.rb +2 -2
  97. data/lib/datadog_api_client/v2/api/logs_api.rb +1 -1
  98. data/lib/datadog_api_client/v2/api/logs_archives_api.rb +4 -4
  99. data/lib/datadog_api_client/v2/api/logs_metrics_api.rb +2 -2
  100. data/lib/datadog_api_client/v2/api/metrics_api.rb +4 -4
  101. data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +2 -2
  102. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +69 -1
  103. data/lib/datadog_api_client/v2/api/service_level_objectives_api.rb +245 -0
  104. data/lib/datadog_api_client/v2/api/spans_api.rb +3 -3
  105. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +22 -4
  106. data/lib/datadog_api_client/v2/models/authn_mapping_create_data.rb +1 -1
  107. data/lib/datadog_api_client/v2/models/authn_mapping_create_relationships.rb +37 -54
  108. data/lib/datadog_api_client/v2/models/authn_mapping_included.rb +2 -1
  109. data/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_role.rb +98 -0
  110. data/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_team.rb +98 -0
  111. data/lib/datadog_api_client/v2/models/authn_mapping_relationships.rb +14 -4
  112. data/lib/datadog_api_client/v2/models/authn_mapping_team.rb +100 -0
  113. data/lib/datadog_api_client/v2/models/authn_mapping_team_attributes.rb +212 -0
  114. data/lib/datadog_api_client/v2/models/authn_mapping_update_data.rb +1 -1
  115. data/lib/datadog_api_client/v2/models/authn_mapping_update_relationships.rb +37 -54
  116. data/lib/datadog_api_client/v2/models/custom_destination_type.rb +1 -1
  117. data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +1 -1
  118. data/lib/datadog_api_client/v2/models/logs_query_filter.rb +1 -1
  119. data/lib/datadog_api_client/v2/models/logs_storage_tier.rb +2 -1
  120. data/lib/datadog_api_client/v2/models/metric_series.rb +1 -1
  121. data/lib/datadog_api_client/v2/models/relationship_to_team.rb +80 -0
  122. data/lib/datadog_api_client/{v1/models/usage_attribution_response.rb → v2/models/relationship_to_team_data.rb} +21 -23
  123. data/lib/datadog_api_client/v2/models/retention_filter_create_response.rb +80 -0
  124. data/lib/datadog_api_client/v2/models/retention_filter_response.rb +1 -1
  125. data/lib/datadog_api_client/v2/models/retention_filter_update_attributes.rb +183 -0
  126. data/lib/datadog_api_client/v2/models/retention_filter_update_data.rb +1 -1
  127. data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +1 -1
  128. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb +1 -1
  129. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +1 -1
  130. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +1 -1
  131. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +14 -2
  132. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb +11 -1
  133. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb +13 -14
  134. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb +11 -1
  135. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb +13 -1
  136. data/lib/datadog_api_client/v2/models/slo_report_create_request.rb +98 -0
  137. data/lib/datadog_api_client/v2/models/slo_report_create_request_attributes.rb +160 -0
  138. data/lib/datadog_api_client/{v1/models/usage_attribution_pagination.rb → v2/models/slo_report_create_request_data.rb} +29 -51
  139. data/lib/datadog_api_client/v2/models/slo_report_interval.rb +27 -0
  140. data/lib/datadog_api_client/v2/models/slo_report_post_response.rb +80 -0
  141. data/lib/datadog_api_client/v2/models/slo_report_post_response_data.rb +90 -0
  142. data/lib/datadog_api_client/v2/models/slo_report_status.rb +29 -0
  143. data/lib/datadog_api_client/v2/models/slo_report_status_get_response.rb +80 -0
  144. data/lib/datadog_api_client/v2/models/slo_report_status_get_response_attributes.rb +80 -0
  145. data/lib/datadog_api_client/v2/models/slo_report_status_get_response_data.rb +100 -0
  146. data/lib/datadog_api_client/v2/models/timeseries_response_series.rb +8 -0
  147. data/lib/datadog_api_client/v2/models/user_team_included.rb +2 -1
  148. data/lib/datadog_api_client/v2/models/user_teams_response.rb +13 -1
  149. data/lib/datadog_api_client/version.rb +1 -1
  150. metadata +70 -46
  151. data/examples/v1/usage-metering/GetUsageAttribution.rb +0 -9
  152. data/lib/datadog_api_client/v1/models/usage_attribution_body.rb +0 -152
  153. data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +0 -63
  154. data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +0 -74
  155. data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +0 -590
@@ -73,7 +73,7 @@ module DatadogAPIClient::V1
73
73
  return_type = opts[:debug_return_type] || 'UserResponse'
74
74
 
75
75
  # auth_names
76
- auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
76
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
77
77
 
78
78
  new_options = opts.merge(
79
79
  :operation => :create_user,
@@ -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
@@ -62,6 +63,7 @@ module DatadogAPIClient::V1
62
63
  LAMBDA_TRACED_INVOCATIONS_USAGE = "lambda_traced_invocations_usage".freeze
63
64
  LOGS_INDEXED_15DAY_USAGE = "logs_indexed_15day_usage".freeze
64
65
  LOGS_INDEXED_180DAY_USAGE = "logs_indexed_180day_usage".freeze
66
+ LOGS_INDEXED_1DAY_USAGE = "logs_indexed_1day_usage".freeze
65
67
  LOGS_INDEXED_30DAY_USAGE = "logs_indexed_30day_usage".freeze
66
68
  LOGS_INDEXED_360DAY_USAGE = "logs_indexed_360day_usage".freeze
67
69
  LOGS_INDEXED_3DAY_USAGE = "logs_indexed_3day_usage".freeze
@@ -75,6 +77,7 @@ module DatadogAPIClient::V1
75
77
  NPM_HOST_USAGE = "npm_host_usage".freeze
76
78
  OBS_PIPELINE_BYTES_USAGE = "obs_pipeline_bytes_usage".freeze
77
79
  OBS_PIPELINE_VCPU_USAGE = "obs_pipelines_vcpu_usage".freeze
80
+ ONLINE_ARCHIVE_USAGE = "online_archive_usage".freeze
78
81
  PROFILED_CONTAINER_USAGE = "profiled_container_usage".freeze
79
82
  PROFILED_FARGATE_USAGE = "profiled_fargate_usage".freeze
80
83
  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
@@ -139,6 +143,8 @@ module DatadogAPIClient::V1
139
143
  LOGS_INDEXED_7DAY_PERCENTAGE = "logs_indexed_7day_percentage".freeze
140
144
  LOGS_INDEXED_3DAY_USAGE = "logs_indexed_3day_usage".freeze
141
145
  LOGS_INDEXED_3DAY_PERCENTAGE = "logs_indexed_3day_percentage".freeze
146
+ LOGS_INDEXED_1DAY_USAGE = "logs_indexed_1day_usage".freeze
147
+ LOGS_INDEXED_1DAY_PERCENTAGE = "logs_indexed_1day_percentage".freeze
142
148
  RUM_REPLAY_SESSIONS_USAGE = "rum_replay_sessions_usage".freeze
143
149
  RUM_REPLAY_SESSIONS_PERCENTAGE = "rum_replay_sessions_percentage".freeze
144
150
  RUM_BROWSER_MOBILE_SESSIONS_USAGE = "rum_browser_mobile_sessions_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
 
@@ -255,6 +261,12 @@ module DatadogAPIClient::V1
255
261
  # The total Indexed Logs (180-day Retention) usage by tag(s).
256
262
  attr_accessor :logs_indexed_180day_usage
257
263
 
264
+ # The percentage of Indexed Logs (1-day Retention) usage by tag(s).
265
+ attr_accessor :logs_indexed_1day_percentage
266
+
267
+ # The total Indexed Logs (1-day Retention) usage by tag(s).
268
+ attr_accessor :logs_indexed_1day_usage
269
+
258
270
  # The percentage of Indexed Logs (30-day Retention) usage by tag(s).
259
271
  attr_accessor :logs_indexed_30day_percentage
260
272
 
@@ -333,6 +345,12 @@ module DatadogAPIClient::V1
333
345
  # The observability pipeline per core usage by tag(s).
334
346
  attr_accessor :obs_pipelines_vcpu_usage
335
347
 
348
+ # The percentage of online archive usage by tag(s).
349
+ attr_accessor :online_archive_percentage
350
+
351
+ # The online archive usage by tag(s).
352
+ attr_accessor :online_archive_usage
353
+
336
354
  # The percentage of profiled container usage by tag(s).
337
355
  attr_accessor :profiled_container_percentage
338
356
 
@@ -471,6 +489,8 @@ module DatadogAPIClient::V1
471
489
  :'fargate_usage' => :'fargate_usage',
472
490
  :'functions_percentage' => :'functions_percentage',
473
491
  :'functions_usage' => :'functions_usage',
492
+ :'incident_management_monthly_active_users_percentage' => :'incident_management_monthly_active_users_percentage',
493
+ :'incident_management_monthly_active_users_usage' => :'incident_management_monthly_active_users_usage',
474
494
  :'indexed_spans_percentage' => :'indexed_spans_percentage',
475
495
  :'indexed_spans_usage' => :'indexed_spans_usage',
476
496
  :'infra_host_percentage' => :'infra_host_percentage',
@@ -487,6 +507,8 @@ module DatadogAPIClient::V1
487
507
  :'logs_indexed_15day_usage' => :'logs_indexed_15day_usage',
488
508
  :'logs_indexed_180day_percentage' => :'logs_indexed_180day_percentage',
489
509
  :'logs_indexed_180day_usage' => :'logs_indexed_180day_usage',
510
+ :'logs_indexed_1day_percentage' => :'logs_indexed_1day_percentage',
511
+ :'logs_indexed_1day_usage' => :'logs_indexed_1day_usage',
490
512
  :'logs_indexed_30day_percentage' => :'logs_indexed_30day_percentage',
491
513
  :'logs_indexed_30day_usage' => :'logs_indexed_30day_usage',
492
514
  :'logs_indexed_360day_percentage' => :'logs_indexed_360day_percentage',
@@ -513,6 +535,8 @@ module DatadogAPIClient::V1
513
535
  :'obs_pipeline_bytes_usage' => :'obs_pipeline_bytes_usage',
514
536
  :'obs_pipelines_vcpu_percentage' => :'obs_pipelines_vcpu_percentage',
515
537
  :'obs_pipelines_vcpu_usage' => :'obs_pipelines_vcpu_usage',
538
+ :'online_archive_percentage' => :'online_archive_percentage',
539
+ :'online_archive_usage' => :'online_archive_usage',
516
540
  :'profiled_container_percentage' => :'profiled_container_percentage',
517
541
  :'profiled_container_usage' => :'profiled_container_usage',
518
542
  :'profiled_fargate_percentage' => :'profiled_fargate_percentage',
@@ -606,6 +630,8 @@ module DatadogAPIClient::V1
606
630
  :'fargate_usage' => :'Float',
607
631
  :'functions_percentage' => :'Float',
608
632
  :'functions_usage' => :'Float',
633
+ :'incident_management_monthly_active_users_percentage' => :'Float',
634
+ :'incident_management_monthly_active_users_usage' => :'Float',
609
635
  :'indexed_spans_percentage' => :'Float',
610
636
  :'indexed_spans_usage' => :'Float',
611
637
  :'infra_host_percentage' => :'Float',
@@ -622,6 +648,8 @@ module DatadogAPIClient::V1
622
648
  :'logs_indexed_15day_usage' => :'Float',
623
649
  :'logs_indexed_180day_percentage' => :'Float',
624
650
  :'logs_indexed_180day_usage' => :'Float',
651
+ :'logs_indexed_1day_percentage' => :'Float',
652
+ :'logs_indexed_1day_usage' => :'Float',
625
653
  :'logs_indexed_30day_percentage' => :'Float',
626
654
  :'logs_indexed_30day_usage' => :'Float',
627
655
  :'logs_indexed_360day_percentage' => :'Float',
@@ -648,6 +676,8 @@ module DatadogAPIClient::V1
648
676
  :'obs_pipeline_bytes_usage' => :'Float',
649
677
  :'obs_pipelines_vcpu_percentage' => :'Float',
650
678
  :'obs_pipelines_vcpu_usage' => :'Float',
679
+ :'online_archive_percentage' => :'Float',
680
+ :'online_archive_usage' => :'Float',
651
681
  :'profiled_container_percentage' => :'Float',
652
682
  :'profiled_container_usage' => :'Float',
653
683
  :'profiled_fargate_percentage' => :'Float',
@@ -939,6 +969,14 @@ module DatadogAPIClient::V1
939
969
  self.functions_usage = attributes[:'functions_usage']
940
970
  end
941
971
 
972
+ if attributes.key?(:'incident_management_monthly_active_users_percentage')
973
+ self.incident_management_monthly_active_users_percentage = attributes[:'incident_management_monthly_active_users_percentage']
974
+ end
975
+
976
+ if attributes.key?(:'incident_management_monthly_active_users_usage')
977
+ self.incident_management_monthly_active_users_usage = attributes[:'incident_management_monthly_active_users_usage']
978
+ end
979
+
942
980
  if attributes.key?(:'indexed_spans_percentage')
943
981
  self.indexed_spans_percentage = attributes[:'indexed_spans_percentage']
944
982
  end
@@ -1003,6 +1041,14 @@ module DatadogAPIClient::V1
1003
1041
  self.logs_indexed_180day_usage = attributes[:'logs_indexed_180day_usage']
1004
1042
  end
1005
1043
 
1044
+ if attributes.key?(:'logs_indexed_1day_percentage')
1045
+ self.logs_indexed_1day_percentage = attributes[:'logs_indexed_1day_percentage']
1046
+ end
1047
+
1048
+ if attributes.key?(:'logs_indexed_1day_usage')
1049
+ self.logs_indexed_1day_usage = attributes[:'logs_indexed_1day_usage']
1050
+ end
1051
+
1006
1052
  if attributes.key?(:'logs_indexed_30day_percentage')
1007
1053
  self.logs_indexed_30day_percentage = attributes[:'logs_indexed_30day_percentage']
1008
1054
  end
@@ -1107,6 +1153,14 @@ module DatadogAPIClient::V1
1107
1153
  self.obs_pipelines_vcpu_usage = attributes[:'obs_pipelines_vcpu_usage']
1108
1154
  end
1109
1155
 
1156
+ if attributes.key?(:'online_archive_percentage')
1157
+ self.online_archive_percentage = attributes[:'online_archive_percentage']
1158
+ end
1159
+
1160
+ if attributes.key?(:'online_archive_usage')
1161
+ self.online_archive_usage = attributes[:'online_archive_usage']
1162
+ end
1163
+
1110
1164
  if attributes.key?(:'profiled_container_percentage')
1111
1165
  self.profiled_container_percentage = attributes[:'profiled_container_percentage']
1112
1166
  end
@@ -1272,6 +1326,8 @@ module DatadogAPIClient::V1
1272
1326
  fargate_usage == o.fargate_usage &&
1273
1327
  functions_percentage == o.functions_percentage &&
1274
1328
  functions_usage == o.functions_usage &&
1329
+ incident_management_monthly_active_users_percentage == o.incident_management_monthly_active_users_percentage &&
1330
+ incident_management_monthly_active_users_usage == o.incident_management_monthly_active_users_usage &&
1275
1331
  indexed_spans_percentage == o.indexed_spans_percentage &&
1276
1332
  indexed_spans_usage == o.indexed_spans_usage &&
1277
1333
  infra_host_percentage == o.infra_host_percentage &&
@@ -1288,6 +1344,8 @@ module DatadogAPIClient::V1
1288
1344
  logs_indexed_15day_usage == o.logs_indexed_15day_usage &&
1289
1345
  logs_indexed_180day_percentage == o.logs_indexed_180day_percentage &&
1290
1346
  logs_indexed_180day_usage == o.logs_indexed_180day_usage &&
1347
+ logs_indexed_1day_percentage == o.logs_indexed_1day_percentage &&
1348
+ logs_indexed_1day_usage == o.logs_indexed_1day_usage &&
1291
1349
  logs_indexed_30day_percentage == o.logs_indexed_30day_percentage &&
1292
1350
  logs_indexed_30day_usage == o.logs_indexed_30day_usage &&
1293
1351
  logs_indexed_360day_percentage == o.logs_indexed_360day_percentage &&
@@ -1314,6 +1372,8 @@ module DatadogAPIClient::V1
1314
1372
  obs_pipeline_bytes_usage == o.obs_pipeline_bytes_usage &&
1315
1373
  obs_pipelines_vcpu_percentage == o.obs_pipelines_vcpu_percentage &&
1316
1374
  obs_pipelines_vcpu_usage == o.obs_pipelines_vcpu_usage &&
1375
+ online_archive_percentage == o.online_archive_percentage &&
1376
+ online_archive_usage == o.online_archive_usage &&
1317
1377
  profiled_container_percentage == o.profiled_container_percentage &&
1318
1378
  profiled_container_usage == o.profiled_container_usage &&
1319
1379
  profiled_fargate_percentage == o.profiled_fargate_percentage &&
@@ -1344,7 +1404,7 @@ module DatadogAPIClient::V1
1344
1404
  # @return [Integer] Hash code
1345
1405
  # @!visibility private
1346
1406
  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
1407
+ [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_1day_percentage, logs_indexed_1day_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
1408
  end
1349
1409
  end
1350
1410
  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.
@@ -89,7 +89,8 @@ module DatadogAPIClient::V1
89
89
  # objective object.
90
90
  attr_reader :thresholds
91
91
 
92
- # The SLO time window options.
92
+ # The SLO time window options. Note that "custom" is not a valid option for creating
93
+ # or updating SLOs. It is only used when querying SLO history over custom timeframes.
93
94
  attr_accessor :timeframe
94
95
 
95
96
  # The type of the service level objective.
@@ -63,7 +63,8 @@ module DatadogAPIClient::V1
63
63
  # objective object.
64
64
  attr_reader :thresholds
65
65
 
66
- # The SLO time window options.
66
+ # The SLO time window options. Note that "custom" is not a valid option for creating
67
+ # or updating SLOs. It is only used when querying SLO history over custom timeframes.
67
68
  attr_accessor :timeframe
68
69
 
69
70
  # The type of the service level objective.
@@ -31,7 +31,13 @@ module DatadogAPIClient::V1
31
31
  # For groups in a grouped SLO, this is the group name.
32
32
  attr_accessor :group
33
33
 
34
- # For `monitor` based SLOs, this includes the aggregated history as arrays that include timeseries and uptime data where `0=monitor` is in `OK` state and `1=monitor` is in `alert` state.
34
+ # The state transition history for the monitor. It is represented as
35
+ # an array of pairs. Each pair is an array containing the timestamp of the transition
36
+ # as an integer in Unix epoch format in the first element, and the state as an integer in the
37
+ # second element. An integer value of `0` for state means uptime, `1` means downtime, and `2` means no data.
38
+ # Periods of no data are counted either as uptime or downtime depending on monitor settings.
39
+ # See [SLO documentatio](https://docs.datadoghq.com/service_management/service_level_objectives/monitor/#missing-data)
40
+ # for detailed information.
35
41
  attr_accessor :history
36
42
 
37
43
  # For `monitor` based SLOs, this is the last modified timestamp in epoch seconds of the monitor.
@@ -31,7 +31,14 @@ module DatadogAPIClient::V1
31
31
  # For groups in a grouped SLO, this is the group name.
32
32
  attr_accessor :group
33
33
 
34
- # For `monitor` based SLOs, this includes the aggregated history as arrays that include timeseries and uptime data where `0=monitor` is in `OK` state and `1=monitor` is in `alert` state.
34
+ # The state transition history for `monitor` or `time-slice` SLOs. It is represented as
35
+ # an array of pairs. Each pair is an array containing the timestamp of the transition
36
+ # as an integer in Unix epoch format in the first element, and the state as an integer in the
37
+ # second element. An integer value of `0` for state means uptime, `1` means downtime, and `2` means no data.
38
+ # Periods of no data count as uptime in time-slice SLOs, while for monitor SLOs, no data is counted
39
+ # either as uptime or downtime depending on monitor settings. See
40
+ # [SLO documentation](https://docs.datadoghq.com/service_management/service_level_objectives/monitor/#missing-data)
41
+ # for detailed information.
35
42
  attr_accessor :history
36
43
 
37
44
  # For `monitor` based SLOs, this is the last modified timestamp in epoch seconds of the monitor.
@@ -46,7 +46,8 @@ module DatadogAPIClient::V1
46
46
  # The target of the SLO.
47
47
  attr_accessor :target
48
48
 
49
- # The SLO time window options.
49
+ # The SLO time window options. Note that "custom" is not a valid option for creating
50
+ # or updating SLOs. It is only used when querying SLO history over custom timeframes.
50
51
  attr_accessor :timeframe
51
52
 
52
53
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -92,7 +92,8 @@ module DatadogAPIClient::V1
92
92
  # objective object.
93
93
  attr_accessor :thresholds
94
94
 
95
- # The SLO time window options.
95
+ # The SLO time window options. Note that "custom" is not a valid option for creating
96
+ # or updating SLOs. It is only used when querying SLO history over custom timeframes.
96
97
  attr_accessor :timeframe
97
98
 
98
99
  # The type of the service level objective.
@@ -32,7 +32,8 @@ module DatadogAPIClient::V1
32
32
  # create/update requests.
33
33
  attr_accessor :target_display
34
34
 
35
- # The SLO time window options.
35
+ # The SLO time window options. Note that "custom" is not a valid option for creating
36
+ # or updating SLOs. It is only used when querying SLO history over custom timeframes.
36
37
  attr_reader :timeframe
37
38
 
38
39
  # The warning value for the service level objective.
@@ -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.
@@ -17,7 +17,8 @@ require 'date'
17
17
  require 'time'
18
18
 
19
19
  module DatadogAPIClient::V1
20
- # The SLO time window options.
20
+ # The SLO time window options. Note that "custom" is not a valid option for creating
21
+ # or updating SLOs. It is only used when querying SLO history over custom timeframes.
21
22
  class SLOTimeframe
22
23
  include BaseEnumModel
23
24
 
@@ -33,6 +33,9 @@ module DatadogAPIClient::V1
33
33
  # When the test subtype is `multi`, the steps of the test.
34
34
  attr_accessor :steps
35
35
 
36
+ # Variables defined from JavaScript code.
37
+ attr_accessor :variables_from_script
38
+
36
39
  # Attribute mapping from ruby-style variable name to JSON key.
37
40
  # @!visibility private
38
41
  def self.attribute_map
@@ -40,7 +43,8 @@ module DatadogAPIClient::V1
40
43
  :'assertions' => :'assertions',
41
44
  :'config_variables' => :'configVariables',
42
45
  :'request' => :'request',
43
- :'steps' => :'steps'
46
+ :'steps' => :'steps',
47
+ :'variables_from_script' => :'variablesFromScript'
44
48
  }
45
49
  end
46
50
 
@@ -51,7 +55,8 @@ module DatadogAPIClient::V1
51
55
  :'assertions' => :'Array<SyntheticsAssertion>',
52
56
  :'config_variables' => :'Array<SyntheticsConfigVariable>',
53
57
  :'request' => :'SyntheticsTestRequest',
54
- :'steps' => :'Array<SyntheticsAPIStep>'
58
+ :'steps' => :'Array<SyntheticsAPIStep>',
59
+ :'variables_from_script' => :'String'
55
60
  }
56
61
  end
57
62
 
@@ -92,6 +97,10 @@ module DatadogAPIClient::V1
92
97
  self.steps = value
93
98
  end
94
99
  end
100
+
101
+ if attributes.key?(:'variables_from_script')
102
+ self.variables_from_script = attributes[:'variables_from_script']
103
+ end
95
104
  end
96
105
 
97
106
  # Checks equality by comparing each attribute.
@@ -103,14 +112,15 @@ module DatadogAPIClient::V1
103
112
  assertions == o.assertions &&
104
113
  config_variables == o.config_variables &&
105
114
  request == o.request &&
106
- steps == o.steps
115
+ steps == o.steps &&
116
+ variables_from_script == o.variables_from_script
107
117
  end
108
118
 
109
119
  # Calculates hash code according to all attributes.
110
120
  # @return [Integer] Hash code
111
121
  # @!visibility private
112
122
  def hash
113
- [assertions, config_variables, request, steps].hash
123
+ [assertions, config_variables, request, steps, variables_from_script].hash
114
124
  end
115
125
  end
116
126
  end
@@ -29,6 +29,7 @@ module DatadogAPIClient::V1
29
29
  [
30
30
  :'SyntheticsAssertionTarget',
31
31
  :'SyntheticsAssertionJSONPathTarget',
32
+ :'SyntheticsAssertionJSONSchemaTarget',
32
33
  :'SyntheticsAssertionXPathTarget'
33
34
  ]
34
35
  end
@@ -0,0 +1,27 @@
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 JSON Schema meta-schema version used in the assertion.
21
+ class SyntheticsAssertionJSONSchemaMetaSchema
22
+ include BaseEnumModel
23
+
24
+ DRAFT_07 = "draft-07".freeze
25
+ DRAFT_06 = "draft-06".freeze
26
+ end
27
+ end