datadog_api_client 2.0.2 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +6 -6
  3. data/.generator/poetry.lock +21 -14
  4. data/.generator/pyproject.toml +1 -1
  5. data/.generator/schemas/v1/openapi.yaml +840 -908
  6. data/.generator/schemas/v2/openapi.yaml +1304 -913
  7. data/.generator/src/generator/formatter.py +1 -1
  8. data/.generator/src/generator/templates/api_client.j2 +5 -1
  9. data/.generator/src/generator/templates/configuration.j2 +17 -0
  10. data/.github/workflows/test.yml +4 -1
  11. data/.github/workflows/test_integration.yml +5 -0
  12. data/.pre-commit-config.yaml +1 -1
  13. data/CHANGELOG.md +49 -0
  14. data/README.md +11 -0
  15. data/examples/v1/dashboards/CreateDashboard_1094917386.rb +37 -0
  16. data/examples/v1/dashboards/CreateDashboard_1307120899.rb +61 -0
  17. data/examples/v1/dashboards/CreateDashboard_1423904722.rb +38 -0
  18. data/examples/v1/dashboards/CreateDashboard_2652180930.rb +43 -0
  19. data/examples/v1/dashboards/CreateDashboard_2850365602.rb +55 -0
  20. data/examples/v1/dashboards/CreateDashboard_3117424216.rb +33 -0
  21. data/examples/v1/dashboards/CreateDashboard_3669695268.rb +50 -0
  22. data/examples/v1/dashboards/CreateDashboard_858397694.rb +41 -0
  23. data/examples/v1/monitors/ValidateExistingMonitor.rb +1 -0
  24. data/examples/v1/monitors/ValidateMonitor.rb +1 -0
  25. data/examples/v1/monitors/ValidateMonitor_4247196452.rb +38 -0
  26. data/examples/v1/synthetics/CreateGlobalVariable.rb +1 -0
  27. data/examples/v1/synthetics/CreateGlobalVariable_1068962881.rb +23 -0
  28. data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +10 -0
  29. data/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +6 -0
  30. data/examples/v1/synthetics/EditGlobalVariable.rb +1 -0
  31. data/examples/v1/synthetics/UpdateBrowserTest.rb +1 -0
  32. data/examples/v1/usage-metering/GetDailyCustomReports.rb +0 -3
  33. data/examples/v1/usage-metering/GetMonthlyCustomReports.rb +0 -3
  34. data/examples/v1/usage-metering/GetSpecifiedDailyCustomReports.rb +0 -3
  35. data/examples/v1/usage-metering/GetSpecifiedMonthlyCustomReports.rb +0 -3
  36. data/examples/v1/usage-metering/GetUsageAttribution.rb +0 -3
  37. data/examples/v2/incidents/ListIncidentAttachments.rb +8 -0
  38. data/examples/v2/incidents/ListIncidentAttachments_2457735435.rb +11 -0
  39. data/examples/v2/incidents/UpdateIncidentAttachments.rb +38 -0
  40. data/examples/v2/incidents/UpdateIncidentAttachments_3881702075.rb +26 -0
  41. data/examples/v2/metrics/ListActiveMetricConfigurations.rb +5 -0
  42. data/examples/v2/metrics/ListTagConfigurations.rb +1 -1
  43. data/examples/v2/metrics/ListTagConfigurations_265033704.rb +8 -0
  44. data/examples/v2/metrics/{ListTagConfigurations_103226315.rb → ListTagConfigurations_2739018321.rb} +1 -1
  45. data/examples/v2/metrics/SubmitMetrics_1762007427.rb +23 -0
  46. data/examples/v2/roles/UpdateRole.rb +13 -0
  47. data/examples/v2/rum/CreateRUMApplication.rb +15 -0
  48. data/examples/v2/rum/DeleteRUMApplication.rb +8 -0
  49. data/examples/v2/rum/GetRUMApplication.rb +8 -0
  50. data/examples/v2/rum/GetRUMApplications.rb +5 -0
  51. data/examples/v2/rum/UpdateRUMApplication.rb +16 -0
  52. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule.rb +3 -2
  53. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_461183901.rb +2 -2
  54. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_498211763.rb +2 -2
  55. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_914562040.rb +50 -0
  56. data/examples/v2/security-monitoring/GetSecurityMonitoringSignal.rb +5 -0
  57. data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.rb +2 -1
  58. data/examples/v2/usage-metering/GetEstimatedCostByOrg.rb +1 -4
  59. data/examples/v2/usage-metering/GetEstimatedCostByOrg_2734954020.rb +2 -4
  60. data/examples/v2/usage-metering/GetEstimatedCostByOrg_3186693804.rb +2 -4
  61. data/examples/v2/usage-metering/GetHistoricalCostByOrg.rb +8 -0
  62. data/examples/v2/usage-metering/GetHourlyUsage.rb +5 -0
  63. data/generate.sh +30 -0
  64. data/lib/datadog_api_client/api_client.rb +5 -1
  65. data/lib/datadog_api_client/configuration.rb +20 -6
  66. data/lib/datadog_api_client/inflector.rb +67 -1
  67. data/lib/datadog_api_client/v1/api/metrics_api.rb +1 -1
  68. data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +3 -1
  69. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +42 -62
  70. data/lib/datadog_api_client/v1/models/dashboard_template_variable.rb +14 -2
  71. data/lib/datadog_api_client/v1/models/dashboard_template_variable_preset_value.rb +28 -5
  72. data/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition.rb +14 -4
  73. data/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb +1 -0
  74. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +2 -0
  75. data/lib/datadog_api_client/v1/models/list_stream_query.rb +14 -4
  76. data/lib/datadog_api_client/v1/models/list_stream_source.rb +1 -0
  77. data/lib/datadog_api_client/v1/models/metric_content_encoding.rb +1 -0
  78. data/lib/datadog_api_client/v1/models/monitor_options.rb +28 -1
  79. data/lib/datadog_api_client/v1/models/monitor_summary_widget_definition.rb +13 -1
  80. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +4 -0
  81. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +41 -1
  82. data/lib/datadog_api_client/v1/models/on_missing_data_option.rb +33 -0
  83. data/lib/datadog_api_client/v1/models/search_service_level_objective.rb +111 -0
  84. data/lib/datadog_api_client/v1/models/search_service_level_objective_attributes.rb +286 -0
  85. data/lib/datadog_api_client/v1/models/search_service_level_objective_data.rb +134 -0
  86. data/lib/datadog_api_client/v1/models/search_slo_query.rb +137 -0
  87. data/lib/datadog_api_client/v1/models/search_slo_response_data_attributes.rb +8 -8
  88. data/lib/datadog_api_client/v1/models/search_slo_response_links.rb +2 -0
  89. data/lib/datadog_api_client/v1/models/search_slo_threshold.rb +184 -0
  90. data/lib/datadog_api_client/v1/models/search_slo_timeframe.rb +28 -0
  91. data/lib/datadog_api_client/v1/models/slo_creator.rb +131 -0
  92. data/lib/datadog_api_client/v1/models/slo_list_widget_definition.rb +185 -0
  93. data/lib/datadog_api_client/v1/models/slo_list_widget_definition_type.rb +26 -0
  94. data/lib/datadog_api_client/v1/models/slo_list_widget_query.rb +149 -0
  95. data/lib/datadog_api_client/v1/models/slo_list_widget_request.rb +143 -0
  96. data/lib/datadog_api_client/v1/models/slo_list_widget_request_type.rb +26 -0
  97. data/lib/datadog_api_client/v1/models/slo_overall_statuses.rb +174 -0
  98. data/lib/datadog_api_client/v1/models/slo_raw_error_budget_remaining.rb +121 -0
  99. data/lib/datadog_api_client/v1/models/synthetics_assertion_operator.rb +1 -0
  100. data/lib/datadog_api_client/v1/models/synthetics_basic_auth.rb +2 -1
  101. data/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest.rb +155 -0
  102. data/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest_type.rb +26 -0
  103. data/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb +11 -12
  104. data/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb +1 -0
  105. data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +31 -1
  106. data/lib/datadog_api_client/v1/models/synthetics_test_process_status.rb +0 -1
  107. data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +15 -1
  108. data/lib/datadog_api_client/v1/models/topology_map_widget_definition.rb +193 -0
  109. data/lib/datadog_api_client/v1/models/topology_map_widget_definition_type.rb +26 -0
  110. data/lib/datadog_api_client/v1/models/topology_query.rb +144 -0
  111. data/lib/datadog_api_client/v1/models/topology_query_data_source.rb +27 -0
  112. data/lib/datadog_api_client/v1/models/topology_request.rb +121 -0
  113. data/lib/datadog_api_client/v1/models/topology_request_type.rb +26 -0
  114. data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +4 -0
  115. data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +4 -0
  116. data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +41 -1
  117. data/lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb +11 -1
  118. data/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb +12 -1
  119. data/lib/datadog_api_client/v1/models/usage_fargate_hour.rb +11 -1
  120. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +21 -1
  121. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +31 -1
  122. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +21 -1
  123. data/lib/datadog_api_client/v1/models/widget_definition.rb +3 -1
  124. data/lib/datadog_api_client/v1/models/widget_monitor_summary_sort.rb +2 -0
  125. data/lib/datadog_api_client/v2/api/events_api.rb +1 -1
  126. data/lib/datadog_api_client/v2/api/incident_services_api.rb +2 -2
  127. data/lib/datadog_api_client/v2/api/incident_teams_api.rb +2 -2
  128. data/lib/datadog_api_client/v2/api/incidents_api.rb +155 -0
  129. data/lib/datadog_api_client/v2/api/logs_api.rb +1 -1
  130. data/lib/datadog_api_client/v2/api/metrics_api.rb +77 -9
  131. data/lib/datadog_api_client/v2/api/rum_api.rb +329 -0
  132. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +68 -3
  133. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +83 -17
  134. data/lib/datadog_api_client/v2/models/content_encoding.rb +1 -0
  135. data/lib/datadog_api_client/v2/models/incident_attachment_attachment_type.rb +27 -0
  136. data/lib/datadog_api_client/v2/models/incident_attachment_attributes.rb +63 -0
  137. data/lib/datadog_api_client/v2/models/incident_attachment_data.rb +187 -0
  138. data/lib/datadog_api_client/v2/models/incident_attachment_link_attachment_type.rb +26 -0
  139. data/lib/datadog_api_client/v2/models/incident_attachment_link_attributes.rb +145 -0
  140. data/lib/datadog_api_client/v2/models/incident_attachment_link_attributes_attachment_object.rb +143 -0
  141. data/lib/datadog_api_client/v2/models/incident_attachment_postmortem_attachment_type.rb +26 -0
  142. data/lib/datadog_api_client/v2/models/incident_attachment_postmortem_attributes.rb +145 -0
  143. data/lib/datadog_api_client/v2/models/incident_attachment_related_object.rb +26 -0
  144. data/lib/datadog_api_client/v2/models/incident_attachment_relationships.rb +111 -0
  145. data/lib/datadog_api_client/v2/models/incident_attachment_type.rb +26 -0
  146. data/lib/datadog_api_client/v2/models/incident_attachment_update_attributes.rb +63 -0
  147. data/lib/datadog_api_client/v2/models/incident_attachment_update_data.rb +144 -0
  148. data/lib/datadog_api_client/v2/models/incident_attachment_update_request.rb +127 -0
  149. data/lib/datadog_api_client/v2/models/incident_attachment_update_response.rb +137 -0
  150. data/lib/datadog_api_client/v2/models/incident_attachments_postmortem_attributes_attachment_object.rb +143 -0
  151. data/lib/datadog_api_client/v2/models/incident_attachments_response.rb +136 -0
  152. data/lib/datadog_api_client/v2/models/incident_attachments_response_included_item.rb +62 -0
  153. data/lib/datadog_api_client/v2/models/incident_related_object.rb +1 -0
  154. data/lib/datadog_api_client/v2/models/incident_response_attributes.rb +1 -11
  155. data/lib/datadog_api_client/v2/models/incident_response_included_item.rb +2 -1
  156. data/lib/datadog_api_client/v2/models/incident_response_relationships.rb +14 -14
  157. data/lib/datadog_api_client/v2/models/metric_active_configuration_type.rb +26 -0
  158. data/lib/datadog_api_client/v2/models/metric_content_encoding.rb +2 -0
  159. data/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations.rb +133 -0
  160. data/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations_response.rb +111 -0
  161. data/lib/datadog_api_client/v2/models/metric_suggested_tags_attributes.rb +125 -0
  162. data/lib/datadog_api_client/v2/models/relationship_to_incident_attachment.rb +124 -0
  163. data/lib/datadog_api_client/v2/models/relationship_to_incident_attachment_data.rb +145 -0
  164. data/lib/datadog_api_client/v2/models/role_update_data.rb +11 -1
  165. data/lib/datadog_api_client/v2/models/rum_application.rb +166 -0
  166. data/lib/datadog_api_client/v2/models/rum_application_attributes.rb +279 -0
  167. data/lib/datadog_api_client/v2/models/rum_application_create.rb +145 -0
  168. data/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb +132 -0
  169. data/lib/datadog_api_client/v2/models/rum_application_create_request.rb +122 -0
  170. data/lib/datadog_api_client/v2/models/rum_application_create_type.rb +26 -0
  171. data/lib/datadog_api_client/v2/models/rum_application_response.rb +111 -0
  172. data/lib/datadog_api_client/v2/models/rum_application_type.rb +26 -0
  173. data/lib/datadog_api_client/v2/models/rum_application_update.rb +155 -0
  174. data/lib/datadog_api_client/v2/models/rum_application_update_attributes.rb +121 -0
  175. data/lib/datadog_api_client/v2/models/rum_application_update_request.rb +122 -0
  176. data/lib/datadog_api_client/v2/models/rum_application_update_type.rb +26 -0
  177. data/lib/datadog_api_client/v2/models/rum_applications_response.rb +113 -0
  178. data/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb +36 -248
  179. data/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb +36 -151
  180. data/lib/datadog_api_client/v2/models/security_monitoring_rule_query_aggregation.rb +1 -0
  181. data/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb +37 -253
  182. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb +275 -0
  183. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_query.rb +187 -0
  184. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +279 -0
  185. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_type.rb +26 -0
  186. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +275 -0
  187. data/lib/datadog_api_client/v2/models/{security_monitoring_rule_query_create.rb → security_monitoring_standard_rule_query.rb} +3 -3
  188. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +279 -0
  189. data/lib/datadog_api_client/version.rb +1 -1
  190. metadata +97 -6
  191. data/Makefile +0 -7
  192. data/examples/v2/metrics/ListTagConfigurations_1799362914.rb +0 -8
@@ -22,6 +22,7 @@ module DatadogAPIClient::V1
22
22
  include BaseEnumModel
23
23
 
24
24
  API_USAGE = "api_usage".freeze
25
+ APM_FARGATE_USAGE = "apm_fargate_usage".freeze
25
26
  APM_HOST_USAGE = "apm_host_usage".freeze
26
27
  APPSEC_USAGE = "appsec_usage".freeze
27
28
  BROWSER_USAGE = "browser_usage".freeze
@@ -34,6 +35,7 @@ module DatadogAPIClient::V1
34
35
  DBM_HOSTS_USAGE = "dbm_hosts_usage".freeze
35
36
  DBM_QUERIES_USAGE = "dbm_queries_usage".freeze
36
37
  ESTIMATED_INDEXED_LOGS_USAGE = "estimated_indexed_logs_usage".freeze
38
+ ESTIMATED_INGESTED_LOGS_USAGE = "estimated_ingested_logs_usage".freeze
37
39
  ESTIMATED_INDEXED_SPANS_USAGE = "estimated_indexed_spans_usage".freeze
38
40
  ESTIMATED_INGESTED_SPANS_USAGE = "estimated_ingested_spans_usage".freeze
39
41
  FARGATE_USAGE = "fargate_usage".freeze
@@ -34,13 +34,17 @@ module DatadogAPIClient::V1
34
34
  # Widget query.
35
35
  attr_accessor :query_string
36
36
 
37
+ # Option for storage location. Feature in Private Beta.
38
+ attr_accessor :storage
39
+
37
40
  # Attribute mapping from ruby-style variable name to JSON key.
38
41
  # @!visibility private
39
42
  def self.attribute_map
40
43
  {
41
44
  :'data_source' => :'data_source',
42
45
  :'indexes' => :'indexes',
43
- :'query_string' => :'query_string'
46
+ :'query_string' => :'query_string',
47
+ :'storage' => :'storage'
44
48
  }
45
49
  end
46
50
 
@@ -56,7 +60,8 @@ module DatadogAPIClient::V1
56
60
  {
57
61
  :'data_source' => :'ListStreamSource',
58
62
  :'indexes' => :'Array<String>',
59
- :'query_string' => :'String'
63
+ :'query_string' => :'String',
64
+ :'storage' => :'String'
60
65
  }
61
66
  end
62
67
 
@@ -98,6 +103,10 @@ module DatadogAPIClient::V1
98
103
  if attributes.key?(:'query_string')
99
104
  self.query_string = attributes[:'query_string']
100
105
  end
106
+
107
+ if attributes.key?(:'storage')
108
+ self.storage = attributes[:'storage']
109
+ end
101
110
  end
102
111
 
103
112
  # Check to see if the all the properties in the model are valid
@@ -137,7 +146,8 @@ module DatadogAPIClient::V1
137
146
  self.class == o.class &&
138
147
  data_source == o.data_source &&
139
148
  indexes == o.indexes &&
140
- query_string == o.query_string
149
+ query_string == o.query_string &&
150
+ storage == o.storage
141
151
  end
142
152
 
143
153
  # @see the `==` method
@@ -151,7 +161,7 @@ module DatadogAPIClient::V1
151
161
  # @return [Integer] Hash code
152
162
  # @!visibility private
153
163
  def hash
154
- [data_source, indexes, query_string].hash
164
+ [data_source, indexes, query_string, storage].hash
155
165
  end
156
166
  end
157
167
  end
@@ -25,5 +25,6 @@ module DatadogAPIClient::V1
25
25
  AUDIT_STREAM = "audit_stream".freeze
26
26
  RUM_ISSUE_STREAM = "rum_issue_stream".freeze
27
27
  APM_ISSUE_STREAM = "apm_issue_stream".freeze
28
+ LOGS_PATTERN_STREAM = "logs_pattern_stream".freeze
28
29
  end
29
30
  end
@@ -22,5 +22,6 @@ module DatadogAPIClient::V1
22
22
  include BaseEnumModel
23
23
 
24
24
  DEFLATE = "deflate".freeze
25
+ GZIP = "gzip".freeze
25
26
  end
26
27
  end
@@ -45,6 +45,12 @@ module DatadogAPIClient::V1
45
45
  # This is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation.
46
46
  attr_accessor :evaluation_delay
47
47
 
48
+ # The time span after which groups with missing data are dropped from the monitor state.
49
+ # The minimum value is one hour, and the maximum value is 72 hours.
50
+ # Example values are: "60m", "1h", and "2d".
51
+ # This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
52
+ attr_accessor :group_retention_duration
53
+
48
54
  # Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold.
49
55
  attr_accessor :groupby_simple_monitor
50
56
 
@@ -91,6 +97,13 @@ module DatadogAPIClient::V1
91
97
  # A Boolean indicating whether this monitor notifies when data stops reporting.
92
98
  attr_accessor :notify_no_data
93
99
 
100
+ # Controls how groups or monitors are treated if an evaluation does not return any data points.
101
+ # The default option results in different behavior depending on the monitor query type.
102
+ # For monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.
103
+ # For monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.
104
+ # This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
105
+ attr_accessor :on_missing_data
106
+
94
107
  # The number of minutes after the last notification before a monitor re-notifies on the current status.
95
108
  # It only re-notifies if it’s not resolved.
96
109
  attr_accessor :renotify_interval
@@ -133,6 +146,7 @@ module DatadogAPIClient::V1
133
146
  :'enable_logs_sample' => :'enable_logs_sample',
134
147
  :'escalation_message' => :'escalation_message',
135
148
  :'evaluation_delay' => :'evaluation_delay',
149
+ :'group_retention_duration' => :'group_retention_duration',
136
150
  :'groupby_simple_monitor' => :'groupby_simple_monitor',
137
151
  :'include_tags' => :'include_tags',
138
152
  :'locked' => :'locked',
@@ -143,6 +157,7 @@ module DatadogAPIClient::V1
143
157
  :'no_data_timeframe' => :'no_data_timeframe',
144
158
  :'notify_audit' => :'notify_audit',
145
159
  :'notify_no_data' => :'notify_no_data',
160
+ :'on_missing_data' => :'on_missing_data',
146
161
  :'renotify_interval' => :'renotify_interval',
147
162
  :'renotify_occurrences' => :'renotify_occurrences',
148
163
  :'renotify_statuses' => :'renotify_statuses',
@@ -171,6 +186,7 @@ module DatadogAPIClient::V1
171
186
  :'enable_logs_sample' => :'Boolean',
172
187
  :'escalation_message' => :'String',
173
188
  :'evaluation_delay' => :'Integer',
189
+ :'group_retention_duration' => :'String',
174
190
  :'groupby_simple_monitor' => :'Boolean',
175
191
  :'include_tags' => :'Boolean',
176
192
  :'locked' => :'Boolean',
@@ -181,6 +197,7 @@ module DatadogAPIClient::V1
181
197
  :'no_data_timeframe' => :'Integer',
182
198
  :'notify_audit' => :'Boolean',
183
199
  :'notify_no_data' => :'Boolean',
200
+ :'on_missing_data' => :'OnMissingDataOption',
184
201
  :'renotify_interval' => :'Integer',
185
202
  :'renotify_occurrences' => :'Integer',
186
203
  :'renotify_statuses' => :'Array<MonitorRenotifyStatusType>',
@@ -252,6 +269,10 @@ module DatadogAPIClient::V1
252
269
  self.evaluation_delay = attributes[:'evaluation_delay']
253
270
  end
254
271
 
272
+ if attributes.key?(:'group_retention_duration')
273
+ self.group_retention_duration = attributes[:'group_retention_duration']
274
+ end
275
+
255
276
  if attributes.key?(:'groupby_simple_monitor')
256
277
  self.groupby_simple_monitor = attributes[:'groupby_simple_monitor']
257
278
  end
@@ -304,6 +325,10 @@ module DatadogAPIClient::V1
304
325
  self.notify_no_data = false
305
326
  end
306
327
 
328
+ if attributes.key?(:'on_missing_data')
329
+ self.on_missing_data = attributes[:'on_missing_data']
330
+ end
331
+
307
332
  if attributes.key?(:'renotify_interval')
308
333
  self.renotify_interval = attributes[:'renotify_interval']
309
334
  end
@@ -382,6 +407,7 @@ module DatadogAPIClient::V1
382
407
  enable_logs_sample == o.enable_logs_sample &&
383
408
  escalation_message == o.escalation_message &&
384
409
  evaluation_delay == o.evaluation_delay &&
410
+ group_retention_duration == o.group_retention_duration &&
385
411
  groupby_simple_monitor == o.groupby_simple_monitor &&
386
412
  include_tags == o.include_tags &&
387
413
  locked == o.locked &&
@@ -392,6 +418,7 @@ module DatadogAPIClient::V1
392
418
  no_data_timeframe == o.no_data_timeframe &&
393
419
  notify_audit == o.notify_audit &&
394
420
  notify_no_data == o.notify_no_data &&
421
+ on_missing_data == o.on_missing_data &&
395
422
  renotify_interval == o.renotify_interval &&
396
423
  renotify_occurrences == o.renotify_occurrences &&
397
424
  renotify_statuses == o.renotify_statuses &&
@@ -415,7 +442,7 @@ module DatadogAPIClient::V1
415
442
  # @return [Integer] Hash code
416
443
  # @!visibility private
417
444
  def hash
418
- [aggregation, device_ids, enable_logs_sample, escalation_message, evaluation_delay, groupby_simple_monitor, include_tags, locked, min_failure_duration, min_location_failed, new_group_delay, new_host_delay, no_data_timeframe, notify_audit, notify_no_data, renotify_interval, renotify_occurrences, renotify_statuses, require_full_window, silenced, synthetics_check_id, threshold_windows, thresholds, timeout_h, variables].hash
445
+ [aggregation, device_ids, enable_logs_sample, escalation_message, evaluation_delay, group_retention_duration, groupby_simple_monitor, include_tags, locked, min_failure_duration, min_location_failed, new_group_delay, new_host_delay, no_data_timeframe, notify_audit, notify_no_data, on_missing_data, renotify_interval, renotify_occurrences, renotify_statuses, require_full_window, silenced, synthetics_check_id, threshold_windows, thresholds, timeout_h, variables].hash
419
446
  end
420
447
  end
421
448
  end
@@ -43,6 +43,9 @@ module DatadogAPIClient::V1
43
43
  # Whether to show the time that has elapsed since the monitor/group triggered.
44
44
  attr_accessor :show_last_triggered
45
45
 
46
+ # Whether to show the priorities column.
47
+ attr_accessor :show_priority
48
+
46
49
  # Widget sorting methods.
47
50
  attr_accessor :sort
48
51
 
@@ -74,6 +77,7 @@ module DatadogAPIClient::V1
74
77
  :'hide_zero_counts' => :'hide_zero_counts',
75
78
  :'query' => :'query',
76
79
  :'show_last_triggered' => :'show_last_triggered',
80
+ :'show_priority' => :'show_priority',
77
81
  :'sort' => :'sort',
78
82
  :'start' => :'start',
79
83
  :'summary_type' => :'summary_type',
@@ -100,6 +104,7 @@ module DatadogAPIClient::V1
100
104
  :'hide_zero_counts' => :'Boolean',
101
105
  :'query' => :'String',
102
106
  :'show_last_triggered' => :'Boolean',
107
+ :'show_priority' => :'Boolean',
103
108
  :'sort' => :'WidgetMonitorSummarySort',
104
109
  :'start' => :'Integer',
105
110
  :'summary_type' => :'WidgetSummaryType',
@@ -157,6 +162,12 @@ module DatadogAPIClient::V1
157
162
  self.show_last_triggered = attributes[:'show_last_triggered']
158
163
  end
159
164
 
165
+ if attributes.key?(:'show_priority')
166
+ self.show_priority = attributes[:'show_priority']
167
+ else
168
+ self.show_priority = false
169
+ end
170
+
160
171
  if attributes.key?(:'sort')
161
172
  self.sort = attributes[:'sort']
162
173
  end
@@ -229,6 +240,7 @@ module DatadogAPIClient::V1
229
240
  hide_zero_counts == o.hide_zero_counts &&
230
241
  query == o.query &&
231
242
  show_last_triggered == o.show_last_triggered &&
243
+ show_priority == o.show_priority &&
232
244
  sort == o.sort &&
233
245
  start == o.start &&
234
246
  summary_type == o.summary_type &&
@@ -249,7 +261,7 @@ module DatadogAPIClient::V1
249
261
  # @return [Integer] Hash code
250
262
  # @!visibility private
251
263
  def hash
252
- [color_preference, count, display_format, hide_zero_counts, query, show_last_triggered, sort, start, summary_type, title, title_align, title_size, type].hash
264
+ [color_preference, count, display_format, hide_zero_counts, query, show_last_triggered, show_priority, sort, start, summary_type, title, title_align, title_size, type].hash
253
265
  end
254
266
  end
255
267
  end
@@ -23,6 +23,8 @@ module DatadogAPIClient::V1
23
23
 
24
24
  API_USAGE = "api_usage".freeze
25
25
  API_PERCENTAGE = "api_percentage".freeze
26
+ APM_FARGATE_USAGE = "apm_fargate_usage".freeze
27
+ APM_FARGATE_PERCENTAGE = "apm_fargate_percentage".freeze
26
28
  APM_HOST_USAGE = "apm_host_usage".freeze
27
29
  APM_HOST_PERCENTAGE = "apm_host_percentage".freeze
28
30
  APPSEC_USAGE = "appsec_usage".freeze
@@ -47,6 +49,8 @@ module DatadogAPIClient::V1
47
49
  DBM_QUERIES_USAGE = "dbm_queries_usage".freeze
48
50
  ESTIMATED_INDEXED_LOGS_USAGE = "estimated_indexed_logs_usage".freeze
49
51
  ESTIMATED_INDEXED_LOGS_PERCENTAGE = "estimated_indexed_logs_percentage".freeze
52
+ ESTIMATED_INGESTED_LOGS_USAGE = "estimated_ingested_logs_usage".freeze
53
+ ESTIMATED_INGESTED_LOGS_PERCENTAGE = "estimated_ingested_logs_percentage".freeze
50
54
  ESTIMATED_INDEXED_SPANS_USAGE = "estimated_indexed_spans_usage".freeze
51
55
  ESTIMATED_INDEXED_SPANS_PERCENTAGE = "estimated_indexed_spans_percentage".freeze
52
56
  ESTIMATED_INGESTED_SPANS_USAGE = "estimated_ingested_spans_usage".freeze
@@ -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
 
@@ -73,6 +79,12 @@ module DatadogAPIClient::V1
73
79
  # The estimated indexed spans usage by tag(s). This field is in private beta.
74
80
  attr_accessor :estimated_indexed_spans_usage
75
81
 
82
+ # The percentage of estimated live ingested logs usage by tag(s). This field is in private beta.
83
+ attr_accessor :estimated_ingested_logs_percentage
84
+
85
+ # The estimated live ingested logs usage by tag(s). This field is in private beta.
86
+ attr_accessor :estimated_ingested_logs_usage
87
+
76
88
  # The percentage of estimated ingested spans usage by tag(s). This field is in private beta.
77
89
  attr_accessor :estimated_ingested_spans_percentage
78
90
 
@@ -139,6 +151,8 @@ module DatadogAPIClient::V1
139
151
  {
140
152
  :'api_percentage' => :'api_percentage',
141
153
  :'api_usage' => :'api_usage',
154
+ :'apm_fargate_percentage' => :'apm_fargate_percentage',
155
+ :'apm_fargate_usage' => :'apm_fargate_usage',
142
156
  :'apm_host_percentage' => :'apm_host_percentage',
143
157
  :'apm_host_usage' => :'apm_host_usage',
144
158
  :'appsec_percentage' => :'appsec_percentage',
@@ -153,6 +167,8 @@ module DatadogAPIClient::V1
153
167
  :'estimated_indexed_logs_usage' => :'estimated_indexed_logs_usage',
154
168
  :'estimated_indexed_spans_percentage' => :'estimated_indexed_spans_percentage',
155
169
  :'estimated_indexed_spans_usage' => :'estimated_indexed_spans_usage',
170
+ :'estimated_ingested_logs_percentage' => :'estimated_ingested_logs_percentage',
171
+ :'estimated_ingested_logs_usage' => :'estimated_ingested_logs_usage',
156
172
  :'estimated_ingested_spans_percentage' => :'estimated_ingested_spans_percentage',
157
173
  :'estimated_ingested_spans_usage' => :'estimated_ingested_spans_usage',
158
174
  :'fargate_percentage' => :'fargate_percentage',
@@ -188,6 +204,8 @@ module DatadogAPIClient::V1
188
204
  {
189
205
  :'api_percentage' => :'Float',
190
206
  :'api_usage' => :'Float',
207
+ :'apm_fargate_percentage' => :'Float',
208
+ :'apm_fargate_usage' => :'Float',
191
209
  :'apm_host_percentage' => :'Float',
192
210
  :'apm_host_usage' => :'Float',
193
211
  :'appsec_percentage' => :'Float',
@@ -202,6 +220,8 @@ module DatadogAPIClient::V1
202
220
  :'estimated_indexed_logs_usage' => :'Float',
203
221
  :'estimated_indexed_spans_percentage' => :'Float',
204
222
  :'estimated_indexed_spans_usage' => :'Float',
223
+ :'estimated_ingested_logs_percentage' => :'Float',
224
+ :'estimated_ingested_logs_usage' => :'Float',
205
225
  :'estimated_ingested_spans_percentage' => :'Float',
206
226
  :'estimated_ingested_spans_usage' => :'Float',
207
227
  :'fargate_percentage' => :'Float',
@@ -256,6 +276,14 @@ module DatadogAPIClient::V1
256
276
  self.api_usage = attributes[:'api_usage']
257
277
  end
258
278
 
279
+ if attributes.key?(:'apm_fargate_percentage')
280
+ self.apm_fargate_percentage = attributes[:'apm_fargate_percentage']
281
+ end
282
+
283
+ if attributes.key?(:'apm_fargate_usage')
284
+ self.apm_fargate_usage = attributes[:'apm_fargate_usage']
285
+ end
286
+
259
287
  if attributes.key?(:'apm_host_percentage')
260
288
  self.apm_host_percentage = attributes[:'apm_host_percentage']
261
289
  end
@@ -312,6 +340,14 @@ module DatadogAPIClient::V1
312
340
  self.estimated_indexed_spans_usage = attributes[:'estimated_indexed_spans_usage']
313
341
  end
314
342
 
343
+ if attributes.key?(:'estimated_ingested_logs_percentage')
344
+ self.estimated_ingested_logs_percentage = attributes[:'estimated_ingested_logs_percentage']
345
+ end
346
+
347
+ if attributes.key?(:'estimated_ingested_logs_usage')
348
+ self.estimated_ingested_logs_usage = attributes[:'estimated_ingested_logs_usage']
349
+ end
350
+
315
351
  if attributes.key?(:'estimated_ingested_spans_percentage')
316
352
  self.estimated_ingested_spans_percentage = attributes[:'estimated_ingested_spans_percentage']
317
353
  end
@@ -408,6 +444,8 @@ module DatadogAPIClient::V1
408
444
  self.class == o.class &&
409
445
  api_percentage == o.api_percentage &&
410
446
  api_usage == o.api_usage &&
447
+ apm_fargate_percentage == o.apm_fargate_percentage &&
448
+ apm_fargate_usage == o.apm_fargate_usage &&
411
449
  apm_host_percentage == o.apm_host_percentage &&
412
450
  apm_host_usage == o.apm_host_usage &&
413
451
  appsec_percentage == o.appsec_percentage &&
@@ -422,6 +460,8 @@ module DatadogAPIClient::V1
422
460
  estimated_indexed_logs_usage == o.estimated_indexed_logs_usage &&
423
461
  estimated_indexed_spans_percentage == o.estimated_indexed_spans_percentage &&
424
462
  estimated_indexed_spans_usage == o.estimated_indexed_spans_usage &&
463
+ estimated_ingested_logs_percentage == o.estimated_ingested_logs_percentage &&
464
+ estimated_ingested_logs_usage == o.estimated_ingested_logs_usage &&
425
465
  estimated_ingested_spans_percentage == o.estimated_ingested_spans_percentage &&
426
466
  estimated_ingested_spans_usage == o.estimated_ingested_spans_usage &&
427
467
  fargate_percentage == o.fargate_percentage &&
@@ -455,7 +495,7 @@ module DatadogAPIClient::V1
455
495
  # @return [Integer] Hash code
456
496
  # @!visibility private
457
497
  def hash
458
- [api_percentage, api_usage, apm_host_percentage, apm_host_usage, appsec_percentage, appsec_usage, browser_percentage, browser_usage, container_percentage, container_usage, custom_timeseries_percentage, custom_timeseries_usage, estimated_indexed_logs_percentage, estimated_indexed_logs_usage, estimated_indexed_spans_percentage, estimated_indexed_spans_usage, estimated_ingested_spans_percentage, estimated_ingested_spans_usage, fargate_percentage, fargate_usage, functions_percentage, functions_usage, indexed_logs_percentage, indexed_logs_usage, infra_host_percentage, infra_host_usage, invocations_percentage, invocations_usage, npm_host_percentage, npm_host_usage, profiled_container_percentage, profiled_container_usage, profiled_host_percentage, profiled_host_usage, snmp_percentage, snmp_usage].hash
498
+ [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, custom_timeseries_percentage, custom_timeseries_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, fargate_percentage, fargate_usage, functions_percentage, functions_usage, indexed_logs_percentage, indexed_logs_usage, infra_host_percentage, infra_host_usage, invocations_percentage, invocations_usage, npm_host_percentage, npm_host_usage, profiled_container_percentage, profiled_container_usage, profiled_host_percentage, profiled_host_usage, snmp_percentage, snmp_usage].hash
459
499
  end
460
500
  end
461
501
  end
@@ -0,0 +1,33 @@
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
+ # Controls how groups or monitors are treated if an evaluation does not return any data points.
21
+ # The default option results in different behavior depending on the monitor query type.
22
+ # For monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.
23
+ # For monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.
24
+ # This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
25
+ class OnMissingDataOption
26
+ include BaseEnumModel
27
+
28
+ DEFAULT = "default".freeze
29
+ SHOW_NO_DATA = "show_no_data".freeze
30
+ SHOW_AND_NOTIFY_NO_DATA = "show_and_notify_no_data".freeze
31
+ RESOLVE = "resolve".freeze
32
+ end
33
+ end
@@ -0,0 +1,111 @@
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
+ # A service level objective data container.
21
+ class SearchServiceLevelObjective
22
+ include BaseGenericModel
23
+
24
+ # Whether the object has unparsed attributes
25
+ # @!visibility private
26
+ attr_accessor :_unparsed
27
+
28
+ # A service level objective ID and attributes.
29
+ attr_accessor :data
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ # @!visibility private
33
+ def self.attribute_map
34
+ {
35
+ :'data' => :'data'
36
+ }
37
+ end
38
+
39
+ # Returns all the JSON keys this model knows about
40
+ # @!visibility private
41
+ def self.acceptable_attributes
42
+ attribute_map.values
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ # @!visibility private
47
+ def self.openapi_types
48
+ {
49
+ :'data' => :'SearchServiceLevelObjectiveData'
50
+ }
51
+ end
52
+
53
+ # List of attributes with nullable: true
54
+ # @!visibility private
55
+ def self.openapi_nullable
56
+ Set.new([
57
+ ])
58
+ end
59
+
60
+ # Initializes the object
61
+ # @param attributes [Hash] Model attributes in the form of hash
62
+ # @!visibility private
63
+ def initialize(attributes = {})
64
+ if (!attributes.is_a?(Hash))
65
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SearchServiceLevelObjective` initialize method"
66
+ end
67
+
68
+ # check to see if the attribute exists and convert string to symbol for hash key
69
+ attributes = attributes.each_with_object({}) { |(k, v), h|
70
+ if (!self.class.attribute_map.key?(k.to_sym))
71
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SearchServiceLevelObjective`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
72
+ end
73
+ h[k.to_sym] = v
74
+ }
75
+
76
+ if attributes.key?(:'data')
77
+ self.data = attributes[:'data']
78
+ end
79
+ end
80
+
81
+ # Check to see if the all the properties in the model are valid
82
+ # @return true if the model is valid
83
+ # @!visibility private
84
+ def valid?
85
+ true
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param o [Object] Object to be compared
90
+ # @!visibility private
91
+ def ==(o)
92
+ return true if self.equal?(o)
93
+ self.class == o.class &&
94
+ data == o.data
95
+ end
96
+
97
+ # @see the `==` method
98
+ # @param o [Object] Object to be compared
99
+ # @!visibility private
100
+ def eql?(o)
101
+ self == o
102
+ end
103
+
104
+ # Calculates hash code according to all attributes.
105
+ # @return [Integer] Hash code
106
+ # @!visibility private
107
+ def hash
108
+ [data].hash
109
+ end
110
+ end
111
+ end