datadog_api_client 2.12.0 → 2.13.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 (165) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +6 -6
  3. data/.generator/conftest.py +7 -0
  4. data/.generator/poetry.lock +45 -75
  5. data/.generator/pyproject.toml +7 -7
  6. data/.generator/schemas/v1/openapi.yaml +76 -3
  7. data/.generator/schemas/v2/openapi.yaml +2328 -459
  8. data/.generator/src/generator/formatter.py +9 -3
  9. data/.generator/src/generator/openapi.py +4 -2
  10. data/.github/workflows/test_integration.yml +7 -1
  11. data/.pre-commit-config.yaml +2 -2
  12. data/CHANGELOG.md +31 -0
  13. data/examples/v1/dashboards/CreateDashboard_1284514532.rb +43 -0
  14. data/examples/v1/dashboards/CreateDashboard_2261785072.rb +47 -0
  15. data/examples/v1/dashboards/CreateDashboard_3513586382.rb +74 -0
  16. data/examples/v1/dashboards/CreateDashboard_3562282606.rb +1 -0
  17. data/examples/v1/organizations/UpdateOrg.rb +1 -1
  18. data/examples/v1/users/CreateUser.rb +1 -1
  19. data/examples/v1/users/CreateUser_266604071.rb +13 -0
  20. data/examples/v1/users/UpdateUser.rb +1 -1
  21. data/examples/v2/confluent-cloud/CreateConfluentAccount.rb +1 -0
  22. data/examples/v2/confluent-cloud/CreateConfluentResource.rb +1 -0
  23. data/examples/v2/confluent-cloud/UpdateConfluentResource.rb +1 -0
  24. data/examples/v2/downtimes/CancelDowntime.rb +11 -0
  25. data/examples/v2/downtimes/CreateDowntime.rb +26 -0
  26. data/examples/v2/downtimes/GetDowntime.rb +11 -0
  27. data/examples/v2/downtimes/ListDowntimes.rb +8 -0
  28. data/examples/v2/downtimes/ListMonitorDowntimes.rb +8 -0
  29. data/examples/v2/downtimes/ListMonitorDowntimes_128979780.rb +8 -0
  30. data/examples/v2/downtimes/UpdateDowntime.rb +21 -0
  31. data/examples/v2/logs/ListLogsGet_2034110533.rb +3 -1
  32. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1092490364.rb +10 -0
  33. data/examples/v2/spans/AggregateSpans.rb +25 -0
  34. data/examples/v2/spans/ListSpans.rb +25 -0
  35. data/examples/v2/spans/ListSpansGet.rb +5 -0
  36. data/examples/v2/spans/ListSpansGet_1130763422.rb +8 -0
  37. data/examples/v2/spans/ListSpans_3495563906.rb +25 -0
  38. data/lib/datadog_api_client/configuration.rb +6 -0
  39. data/lib/datadog_api_client/inflector.rb +87 -0
  40. data/lib/datadog_api_client/v1/models/change_widget_request.rb +1 -1
  41. data/lib/datadog_api_client/v1/models/formula_and_function_cloud_cost_data_source.rb +26 -0
  42. data/lib/datadog_api_client/v1/models/formula_and_function_cloud_cost_query_definition.rb +150 -0
  43. data/lib/datadog_api_client/v1/models/formula_and_function_query_definition.rb +2 -1
  44. data/lib/datadog_api_client/v1/models/formula_and_function_response_format.rb +2 -1
  45. data/lib/datadog_api_client/v1/models/formula_and_function_slo_query_definition.rb +11 -1
  46. data/lib/datadog_api_client/v1/models/geomap_widget_request.rb +24 -2
  47. data/lib/datadog_api_client/v1/models/ip_prefixes_remote_configuration.rb +94 -0
  48. data/lib/datadog_api_client/v1/models/ip_ranges.rb +11 -1
  49. data/lib/datadog_api_client/v1/models/organization_settings.rb +8 -0
  50. data/lib/datadog_api_client/v1/models/query_value_widget_request.rb +1 -1
  51. data/lib/datadog_api_client/v1/models/scatterplot_table_request.rb +1 -1
  52. data/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +1 -1
  53. data/lib/datadog_api_client/v1/models/table_widget_request.rb +1 -1
  54. data/lib/datadog_api_client/v1/models/timeseries_widget_request.rb +1 -1
  55. data/lib/datadog_api_client/v1/models/toplist_widget_request.rb +1 -1
  56. data/lib/datadog_api_client/v1/models/tree_map_widget_request.rb +1 -1
  57. data/lib/datadog_api_client/v1/models/user.rb +8 -0
  58. data/lib/datadog_api_client/v1/models/widget_display_type.rb +1 -0
  59. data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +2 -0
  60. data/lib/datadog_api_client/v2/api/downtimes_api.rb +462 -0
  61. data/lib/datadog_api_client/v2/api/logs_api.rb +2 -2
  62. data/lib/datadog_api_client/v2/api/metrics_api.rb +1 -1
  63. data/lib/datadog_api_client/v2/api/rum_api.rb +2 -2
  64. data/lib/datadog_api_client/v2/api/spans_api.rb +294 -0
  65. data/lib/datadog_api_client/v2/models/ci_app_pipeline_event_pipeline.rb +1 -1
  66. data/lib/datadog_api_client/v2/models/cloud_configuration_rule_create_payload.rb +13 -1
  67. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +41 -1
  68. data/lib/datadog_api_client/v2/models/confluent_account_resource_attributes.rb +11 -1
  69. data/lib/datadog_api_client/v2/models/confluent_resource_request_attributes.rb +11 -1
  70. data/lib/datadog_api_client/v2/models/confluent_resource_response_attributes.rb +21 -1
  71. data/lib/datadog_api_client/v2/models/dashboard_list_item.rb +12 -1
  72. data/lib/datadog_api_client/v2/models/downtime_create_request.rb +98 -0
  73. data/lib/datadog_api_client/v2/models/downtime_create_request_attributes.rb +194 -0
  74. data/lib/datadog_api_client/v2/models/downtime_create_request_data.rb +119 -0
  75. data/lib/datadog_api_client/v2/models/downtime_included_monitor_type.rb +26 -0
  76. data/lib/datadog_api_client/v2/models/downtime_meta.rb +80 -0
  77. data/lib/datadog_api_client/v2/models/downtime_meta_page.rb +80 -0
  78. data/lib/datadog_api_client/v2/models/downtime_monitor_identifier.rb +63 -0
  79. data/lib/datadog_api_client/v2/models/downtime_monitor_identifier_id.rb +98 -0
  80. data/lib/datadog_api_client/v2/models/downtime_monitor_identifier_tags.rb +107 -0
  81. data/lib/datadog_api_client/v2/models/downtime_monitor_included_attributes.rb +80 -0
  82. data/lib/datadog_api_client/v2/models/downtime_monitor_included_item.rb +100 -0
  83. data/lib/datadog_api_client/v2/models/downtime_notify_end_state_actions.rb +27 -0
  84. data/lib/datadog_api_client/v2/models/downtime_notify_end_state_types.rb +28 -0
  85. data/lib/datadog_api_client/v2/models/downtime_relationships.rb +90 -0
  86. data/lib/datadog_api_client/v2/models/downtime_relationships_created_by.rb +88 -0
  87. data/lib/datadog_api_client/v2/models/downtime_relationships_created_by_data.rb +90 -0
  88. data/lib/datadog_api_client/v2/models/downtime_relationships_monitor.rb +88 -0
  89. data/lib/datadog_api_client/v2/models/downtime_relationships_monitor_data.rb +90 -0
  90. data/lib/datadog_api_client/v2/models/downtime_resource_type.rb +26 -0
  91. data/lib/datadog_api_client/v2/models/downtime_response.rb +95 -0
  92. data/lib/datadog_api_client/v2/models/downtime_response_attributes.rb +208 -0
  93. data/lib/datadog_api_client/v2/models/downtime_response_data.rb +110 -0
  94. data/lib/datadog_api_client/v2/models/downtime_response_included_item.rb +63 -0
  95. data/lib/datadog_api_client/v2/models/downtime_schedule_create_request.rb +63 -0
  96. data/lib/datadog_api_client/v2/models/downtime_schedule_current_downtime_response.rb +100 -0
  97. data/lib/datadog_api_client/v2/models/downtime_schedule_one_time_create_update_request.rb +101 -0
  98. data/lib/datadog_api_client/v2/models/downtime_schedule_one_time_response.rb +98 -0
  99. data/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_create_update_request.rb +143 -0
  100. data/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_response.rb +106 -0
  101. data/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_create_request.rb +110 -0
  102. data/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_response.rb +131 -0
  103. data/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_update_request.rb +92 -0
  104. data/lib/datadog_api_client/v2/models/downtime_schedule_response.rb +65 -0
  105. data/lib/datadog_api_client/v2/models/downtime_schedule_update_request.rb +63 -0
  106. data/lib/datadog_api_client/v2/models/downtime_status.rb +29 -0
  107. data/lib/datadog_api_client/v2/models/downtime_update_request.rb +98 -0
  108. data/lib/datadog_api_client/v2/models/downtime_update_request_attributes.rb +165 -0
  109. data/lib/datadog_api_client/v2/models/downtime_update_request_data.rb +140 -0
  110. data/lib/datadog_api_client/v2/models/event_response_attributes.rb +11 -1
  111. data/lib/datadog_api_client/v2/models/events_group_by_sort.rb +1 -1
  112. data/lib/datadog_api_client/v2/models/events_response_metadata.rb +11 -1
  113. data/lib/datadog_api_client/v2/models/list_downtimes_response.rb +104 -0
  114. data/lib/datadog_api_client/v2/models/metrics_aggregator.rb +1 -1
  115. data/lib/datadog_api_client/v2/models/metrics_scalar_query.rb +1 -1
  116. data/lib/datadog_api_client/v2/models/monitor_downtime_match_resource_type.rb +26 -0
  117. data/lib/datadog_api_client/v2/models/monitor_downtime_match_response.rb +92 -0
  118. data/lib/datadog_api_client/v2/models/monitor_downtime_match_response_attributes.rb +120 -0
  119. data/lib/datadog_api_client/v2/models/monitor_downtime_match_response_data.rb +108 -0
  120. data/lib/datadog_api_client/v2/models/restriction_policy_binding.rb +2 -1
  121. data/lib/datadog_api_client/v2/models/rum_application_list.rb +11 -1
  122. data/lib/datadog_api_client/v2/models/service_definition_data.rb +11 -1
  123. data/lib/datadog_api_client/v2/models/service_definition_meta.rb +36 -4
  124. data/lib/datadog_api_client/v2/models/service_definition_meta_warnings.rb +100 -0
  125. data/lib/datadog_api_client/v2/models/span.rb +100 -0
  126. data/lib/datadog_api_client/v2/models/spans_aggregate_bucket.rb +100 -0
  127. data/lib/datadog_api_client/v2/models/spans_aggregate_bucket_attributes.rb +100 -0
  128. data/lib/datadog_api_client/v2/models/spans_aggregate_bucket_type.rb +26 -0
  129. data/lib/datadog_api_client/v2/models/spans_aggregate_bucket_value.rb +64 -0
  130. data/lib/datadog_api_client/v2/models/spans_aggregate_bucket_value_timeseries_point.rb +90 -0
  131. data/lib/datadog_api_client/v2/models/spans_aggregate_data.rb +90 -0
  132. data/lib/datadog_api_client/v2/models/spans_aggregate_request.rb +80 -0
  133. data/lib/datadog_api_client/v2/models/spans_aggregate_request_attributes.rb +115 -0
  134. data/lib/datadog_api_client/v2/models/spans_aggregate_request_type.rb +26 -0
  135. data/lib/datadog_api_client/v2/models/spans_aggregate_response.rb +92 -0
  136. data/lib/datadog_api_client/v2/models/spans_aggregate_response_metadata.rb +113 -0
  137. data/lib/datadog_api_client/v2/models/spans_aggregate_response_status.rb +27 -0
  138. data/lib/datadog_api_client/v2/models/spans_aggregate_sort.rb +110 -0
  139. data/lib/datadog_api_client/v2/models/spans_aggregate_sort_type.rb +27 -0
  140. data/lib/datadog_api_client/v2/models/spans_aggregation_function.rb +37 -0
  141. data/lib/datadog_api_client/v2/models/spans_attributes.rb +244 -0
  142. data/lib/datadog_api_client/v2/models/spans_compute.rb +129 -0
  143. data/lib/datadog_api_client/v2/models/spans_compute_type.rb +27 -0
  144. data/lib/datadog_api_client/v2/models/spans_group_by.rb +149 -0
  145. data/lib/datadog_api_client/v2/models/spans_group_by_histogram.rb +143 -0
  146. data/lib/datadog_api_client/v2/models/spans_group_by_missing.rb +63 -0
  147. data/lib/datadog_api_client/v2/models/spans_group_by_total.rb +64 -0
  148. data/lib/datadog_api_client/v2/models/spans_list_request.rb +80 -0
  149. data/lib/datadog_api_client/v2/models/spans_list_request_attributes.rb +111 -0
  150. data/lib/datadog_api_client/v2/models/spans_list_request_data.rb +90 -0
  151. data/lib/datadog_api_client/v2/models/spans_list_request_page.rb +108 -0
  152. data/lib/datadog_api_client/v2/models/spans_list_request_type.rb +26 -0
  153. data/lib/datadog_api_client/v2/models/spans_list_response.rb +102 -0
  154. data/lib/datadog_api_client/v2/models/spans_list_response_links.rb +81 -0
  155. data/lib/datadog_api_client/v2/models/spans_list_response_metadata.rb +123 -0
  156. data/lib/datadog_api_client/v2/models/spans_query_filter.rb +100 -0
  157. data/lib/datadog_api_client/v2/models/spans_query_options.rb +91 -0
  158. data/lib/datadog_api_client/v2/models/spans_response_metadata_page.rb +81 -0
  159. data/lib/datadog_api_client/v2/models/spans_sort.rb +27 -0
  160. data/lib/datadog_api_client/v2/models/spans_sort_order.rb +27 -0
  161. data/lib/datadog_api_client/v2/models/spans_type.rb +26 -0
  162. data/lib/datadog_api_client/v2/models/spans_warning.rb +100 -0
  163. data/lib/datadog_api_client/v2/models/user_invitation_response_data.rb +11 -1
  164. data/lib/datadog_api_client/version.rb +1 -1
  165. metadata +105 -2
@@ -113,6 +113,8 @@ module DatadogAPIClient
113
113
  "v1.formula_and_function_apm_resource_stat_name" => "FormulaAndFunctionApmResourceStatName",
114
114
  "v1.formula_and_function_apm_resource_stats_data_source" => "FormulaAndFunctionApmResourceStatsDataSource",
115
115
  "v1.formula_and_function_apm_resource_stats_query_definition" => "FormulaAndFunctionApmResourceStatsQueryDefinition",
116
+ "v1.formula_and_function_cloud_cost_data_source" => "FormulaAndFunctionCloudCostDataSource",
117
+ "v1.formula_and_function_cloud_cost_query_definition" => "FormulaAndFunctionCloudCostQueryDefinition",
116
118
  "v1.formula_and_function_event_aggregation" => "FormulaAndFunctionEventAggregation",
117
119
  "v1.formula_and_function_event_query_definition" => "FormulaAndFunctionEventQueryDefinition",
118
120
  "v1.formula_and_function_event_query_definition_compute" => "FormulaAndFunctionEventQueryDefinitionCompute",
@@ -187,6 +189,7 @@ module DatadogAPIClient
187
189
  "v1.ip_prefixes_logs" => "IPPrefixesLogs",
188
190
  "v1.ip_prefixes_orchestrator" => "IPPrefixesOrchestrator",
189
191
  "v1.ip_prefixes_process" => "IPPrefixesProcess",
192
+ "v1.ip_prefixes_remote_configuration" => "IPPrefixesRemoteConfiguration",
190
193
  "v1.ip_prefixes_synthetics" => "IPPrefixesSynthetics",
191
194
  "v1.ip_prefixes_synthetics_private_locations" => "IPPrefixesSyntheticsPrivateLocations",
192
195
  "v1.ip_prefixes_webhooks" => "IPPrefixesWebhooks",
@@ -993,6 +996,44 @@ module DatadogAPIClient
993
996
  "v2.detailed_finding" => "DetailedFinding",
994
997
  "v2.detailed_finding_attributes" => "DetailedFindingAttributes",
995
998
  "v2.detailed_finding_type" => "DetailedFindingType",
999
+ "v2.downtime_create_request" => "DowntimeCreateRequest",
1000
+ "v2.downtime_create_request_attributes" => "DowntimeCreateRequestAttributes",
1001
+ "v2.downtime_create_request_data" => "DowntimeCreateRequestData",
1002
+ "v2.downtime_included_monitor_type" => "DowntimeIncludedMonitorType",
1003
+ "v2.downtime_meta" => "DowntimeMeta",
1004
+ "v2.downtime_meta_page" => "DowntimeMetaPage",
1005
+ "v2.downtime_monitor_identifier" => "DowntimeMonitorIdentifier",
1006
+ "v2.downtime_monitor_identifier_id" => "DowntimeMonitorIdentifierId",
1007
+ "v2.downtime_monitor_identifier_tags" => "DowntimeMonitorIdentifierTags",
1008
+ "v2.downtime_monitor_included_attributes" => "DowntimeMonitorIncludedAttributes",
1009
+ "v2.downtime_monitor_included_item" => "DowntimeMonitorIncludedItem",
1010
+ "v2.downtime_notify_end_state_actions" => "DowntimeNotifyEndStateActions",
1011
+ "v2.downtime_notify_end_state_types" => "DowntimeNotifyEndStateTypes",
1012
+ "v2.downtime_relationships" => "DowntimeRelationships",
1013
+ "v2.downtime_relationships_created_by" => "DowntimeRelationshipsCreatedBy",
1014
+ "v2.downtime_relationships_created_by_data" => "DowntimeRelationshipsCreatedByData",
1015
+ "v2.downtime_relationships_monitor" => "DowntimeRelationshipsMonitor",
1016
+ "v2.downtime_relationships_monitor_data" => "DowntimeRelationshipsMonitorData",
1017
+ "v2.downtime_resource_type" => "DowntimeResourceType",
1018
+ "v2.downtime_response" => "DowntimeResponse",
1019
+ "v2.downtime_response_attributes" => "DowntimeResponseAttributes",
1020
+ "v2.downtime_response_data" => "DowntimeResponseData",
1021
+ "v2.downtime_response_included_item" => "DowntimeResponseIncludedItem",
1022
+ "v2.downtime_schedule_create_request" => "DowntimeScheduleCreateRequest",
1023
+ "v2.downtime_schedule_current_downtime_response" => "DowntimeScheduleCurrentDowntimeResponse",
1024
+ "v2.downtime_schedule_one_time_create_update_request" => "DowntimeScheduleOneTimeCreateUpdateRequest",
1025
+ "v2.downtime_schedule_one_time_response" => "DowntimeScheduleOneTimeResponse",
1026
+ "v2.downtime_schedule_recurrence_create_update_request" => "DowntimeScheduleRecurrenceCreateUpdateRequest",
1027
+ "v2.downtime_schedule_recurrence_response" => "DowntimeScheduleRecurrenceResponse",
1028
+ "v2.downtime_schedule_recurrences_create_request" => "DowntimeScheduleRecurrencesCreateRequest",
1029
+ "v2.downtime_schedule_recurrences_response" => "DowntimeScheduleRecurrencesResponse",
1030
+ "v2.downtime_schedule_recurrences_update_request" => "DowntimeScheduleRecurrencesUpdateRequest",
1031
+ "v2.downtime_schedule_response" => "DowntimeScheduleResponse",
1032
+ "v2.downtime_schedule_update_request" => "DowntimeScheduleUpdateRequest",
1033
+ "v2.downtime_status" => "DowntimeStatus",
1034
+ "v2.downtime_update_request" => "DowntimeUpdateRequest",
1035
+ "v2.downtime_update_request_attributes" => "DowntimeUpdateRequestAttributes",
1036
+ "v2.downtime_update_request_data" => "DowntimeUpdateRequestData",
996
1037
  "v2.event" => "Event",
997
1038
  "v2.event_attributes" => "EventAttributes",
998
1039
  "v2.event_priority" => "EventPriority",
@@ -1205,6 +1246,7 @@ module DatadogAPIClient
1205
1246
  "v2.jsonapi_error_item" => "JSONAPIErrorItem",
1206
1247
  "v2.jsonapi_error_response" => "JSONAPIErrorResponse",
1207
1248
  "v2.list_application_keys_response" => "ListApplicationKeysResponse",
1249
+ "v2.list_downtimes_response" => "ListDowntimesResponse",
1208
1250
  "v2.list_findings_meta" => "ListFindingsMeta",
1209
1251
  "v2.list_findings_page" => "ListFindingsPage",
1210
1252
  "v2.list_findings_response" => "ListFindingsResponse",
@@ -1361,6 +1403,10 @@ module DatadogAPIClient
1361
1403
  "v2.monitor_config_policy_tag_policy" => "MonitorConfigPolicyTagPolicy",
1362
1404
  "v2.monitor_config_policy_tag_policy_create_request" => "MonitorConfigPolicyTagPolicyCreateRequest",
1363
1405
  "v2.monitor_config_policy_type" => "MonitorConfigPolicyType",
1406
+ "v2.monitor_downtime_match_resource_type" => "MonitorDowntimeMatchResourceType",
1407
+ "v2.monitor_downtime_match_response" => "MonitorDowntimeMatchResponse",
1408
+ "v2.monitor_downtime_match_response_attributes" => "MonitorDowntimeMatchResponseAttributes",
1409
+ "v2.monitor_downtime_match_response_data" => "MonitorDowntimeMatchResponseData",
1364
1410
  "v2.monitor_type" => "MonitorType",
1365
1411
  "v2.mute_finding_request" => "MuteFindingRequest",
1366
1412
  "v2.mute_finding_request_attributes" => "MuteFindingRequestAttributes",
@@ -1658,6 +1704,7 @@ module DatadogAPIClient
1658
1704
  "v2.service_definition_data_attributes" => "ServiceDefinitionDataAttributes",
1659
1705
  "v2.service_definition_get_response" => "ServiceDefinitionGetResponse",
1660
1706
  "v2.service_definition_meta" => "ServiceDefinitionMeta",
1707
+ "v2.service_definition_meta_warnings" => "ServiceDefinitionMetaWarnings",
1661
1708
  "v2.service_definition_schema" => "ServiceDefinitionSchema",
1662
1709
  "v2.service_definition_schema_versions" => "ServiceDefinitionSchemaVersions",
1663
1710
  "v2.service_definitions_create_request" => "ServiceDefinitionsCreateRequest",
@@ -1703,6 +1750,37 @@ module DatadogAPIClient
1703
1750
  "v2.service_definition_v2_version" => "ServiceDefinitionV2Version",
1704
1751
  "v2.slack_integration_metadata" => "SlackIntegrationMetadata",
1705
1752
  "v2.slack_integration_metadata_channel_item" => "SlackIntegrationMetadataChannelItem",
1753
+ "v2.span" => "Span",
1754
+ "v2.spans_aggregate_bucket" => "SpansAggregateBucket",
1755
+ "v2.spans_aggregate_bucket_attributes" => "SpansAggregateBucketAttributes",
1756
+ "v2.spans_aggregate_bucket_type" => "SpansAggregateBucketType",
1757
+ "v2.spans_aggregate_bucket_value" => "SpansAggregateBucketValue",
1758
+ "v2.spans_aggregate_bucket_value_timeseries_point" => "SpansAggregateBucketValueTimeseriesPoint",
1759
+ "v2.spans_aggregate_data" => "SpansAggregateData",
1760
+ "v2.spans_aggregate_request" => "SpansAggregateRequest",
1761
+ "v2.spans_aggregate_request_attributes" => "SpansAggregateRequestAttributes",
1762
+ "v2.spans_aggregate_request_type" => "SpansAggregateRequestType",
1763
+ "v2.spans_aggregate_response" => "SpansAggregateResponse",
1764
+ "v2.spans_aggregate_response_metadata" => "SpansAggregateResponseMetadata",
1765
+ "v2.spans_aggregate_response_status" => "SpansAggregateResponseStatus",
1766
+ "v2.spans_aggregate_sort" => "SpansAggregateSort",
1767
+ "v2.spans_aggregate_sort_type" => "SpansAggregateSortType",
1768
+ "v2.spans_aggregation_function" => "SpansAggregationFunction",
1769
+ "v2.spans_attributes" => "SpansAttributes",
1770
+ "v2.spans_compute" => "SpansCompute",
1771
+ "v2.spans_compute_type" => "SpansComputeType",
1772
+ "v2.spans_group_by" => "SpansGroupBy",
1773
+ "v2.spans_group_by_histogram" => "SpansGroupByHistogram",
1774
+ "v2.spans_group_by_missing" => "SpansGroupByMissing",
1775
+ "v2.spans_group_by_total" => "SpansGroupByTotal",
1776
+ "v2.spans_list_request" => "SpansListRequest",
1777
+ "v2.spans_list_request_attributes" => "SpansListRequestAttributes",
1778
+ "v2.spans_list_request_data" => "SpansListRequestData",
1779
+ "v2.spans_list_request_page" => "SpansListRequestPage",
1780
+ "v2.spans_list_request_type" => "SpansListRequestType",
1781
+ "v2.spans_list_response" => "SpansListResponse",
1782
+ "v2.spans_list_response_links" => "SpansListResponseLinks",
1783
+ "v2.spans_list_response_metadata" => "SpansListResponseMetadata",
1706
1784
  "v2.spans_metric_compute" => "SpansMetricCompute",
1707
1785
  "v2.spans_metric_compute_aggregation_type" => "SpansMetricComputeAggregationType",
1708
1786
  "v2.spans_metric_create_attributes" => "SpansMetricCreateAttributes",
@@ -1722,6 +1800,13 @@ module DatadogAPIClient
1722
1800
  "v2.spans_metric_update_compute" => "SpansMetricUpdateCompute",
1723
1801
  "v2.spans_metric_update_data" => "SpansMetricUpdateData",
1724
1802
  "v2.spans_metric_update_request" => "SpansMetricUpdateRequest",
1803
+ "v2.spans_query_filter" => "SpansQueryFilter",
1804
+ "v2.spans_query_options" => "SpansQueryOptions",
1805
+ "v2.spans_response_metadata_page" => "SpansResponseMetadataPage",
1806
+ "v2.spans_sort" => "SpansSort",
1807
+ "v2.spans_sort_order" => "SpansSortOrder",
1808
+ "v2.spans_type" => "SpansType",
1809
+ "v2.spans_warning" => "SpansWarning",
1725
1810
  "v2.team" => "Team",
1726
1811
  "v2.team_attributes" => "TeamAttributes",
1727
1812
  "v2.team_create" => "TeamCreate",
@@ -1850,6 +1935,7 @@ module DatadogAPIClient
1850
1935
  "v2.cloudflare_integration_api" => "CloudflareIntegrationAPI",
1851
1936
  "v2.confluent_cloud_api" => "ConfluentCloudAPI",
1852
1937
  "v2.dashboard_lists_api" => "DashboardListsAPI",
1938
+ "v2.downtimes_api" => "DowntimesAPI",
1853
1939
  "v2.events_api" => "EventsAPI",
1854
1940
  "v2.fastly_integration_api" => "FastlyIntegrationAPI",
1855
1941
  "v2.gcp_integration_api" => "GCPIntegrationAPI",
@@ -1873,6 +1959,7 @@ module DatadogAPIClient
1873
1959
  "v2.sensitive_data_scanner_api" => "SensitiveDataScannerAPI",
1874
1960
  "v2.service_accounts_api" => "ServiceAccountsAPI",
1875
1961
  "v2.service_definition_api" => "ServiceDefinitionAPI",
1962
+ "v2.spans_api" => "SpansAPI",
1876
1963
  "v2.spans_metrics_api" => "SpansMetricsAPI",
1877
1964
  "v2.synthetics_api" => "SyntheticsAPI",
1878
1965
  "v2.teams_api" => "TeamsAPI",
@@ -63,7 +63,7 @@ module DatadogAPIClient::V1
63
63
  # List of queries that can be returned directly or used in formulas.
64
64
  attr_accessor :queries
65
65
 
66
- # Timeseries or Scalar response.
66
+ # Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets.
67
67
  attr_accessor :response_format
68
68
 
69
69
  # The log query.
@@ -0,0 +1,26 @@
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
+ # Data source for Cloud Cost queries.
21
+ class FormulaAndFunctionCloudCostDataSource
22
+ include BaseEnumModel
23
+
24
+ CLOUD_COST = "cloud_cost".freeze
25
+ end
26
+ end
@@ -0,0 +1,150 @@
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 formula and functions Cloud Cost query.
21
+ class FormulaAndFunctionCloudCostQueryDefinition
22
+ include BaseGenericModel
23
+
24
+ # Aggregator used for the request.
25
+ attr_accessor :aggregator
26
+
27
+ # Data source for Cloud Cost queries.
28
+ attr_reader :data_source
29
+
30
+ # Name of the query for use in formulas.
31
+ attr_reader :name
32
+
33
+ # Query for Cloud Cost data.
34
+ attr_reader :query
35
+
36
+ # Attribute mapping from ruby-style variable name to JSON key.
37
+ # @!visibility private
38
+ def self.attribute_map
39
+ {
40
+ :'aggregator' => :'aggregator',
41
+ :'data_source' => :'data_source',
42
+ :'name' => :'name',
43
+ :'query' => :'query'
44
+ }
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ # @!visibility private
49
+ def self.openapi_types
50
+ {
51
+ :'aggregator' => :'WidgetAggregator',
52
+ :'data_source' => :'FormulaAndFunctionCloudCostDataSource',
53
+ :'name' => :'String',
54
+ :'query' => :'String'
55
+ }
56
+ end
57
+
58
+ # Initializes the object
59
+ # @param attributes [Hash] Model attributes in the form of hash
60
+ # @!visibility private
61
+ def initialize(attributes = {})
62
+ if (!attributes.is_a?(Hash))
63
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionCloudCostQueryDefinition` initialize method"
64
+ end
65
+
66
+ # check to see if the attribute exists and convert string to symbol for hash key
67
+ attributes = attributes.each_with_object({}) { |(k, v), h|
68
+ if (!self.class.attribute_map.key?(k.to_sym))
69
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::FormulaAndFunctionCloudCostQueryDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
70
+ end
71
+ h[k.to_sym] = v
72
+ }
73
+
74
+ if attributes.key?(:'aggregator')
75
+ self.aggregator = attributes[:'aggregator']
76
+ end
77
+
78
+ if attributes.key?(:'data_source')
79
+ self.data_source = attributes[:'data_source']
80
+ end
81
+
82
+ if attributes.key?(:'name')
83
+ self.name = attributes[:'name']
84
+ end
85
+
86
+ if attributes.key?(:'query')
87
+ self.query = attributes[:'query']
88
+ end
89
+ end
90
+
91
+ # Check to see if the all the properties in the model are valid
92
+ # @return true if the model is valid
93
+ # @!visibility private
94
+ def valid?
95
+ return false if @data_source.nil?
96
+ return false if @name.nil?
97
+ return false if @query.nil?
98
+ true
99
+ end
100
+
101
+ # Custom attribute writer method with validation
102
+ # @param data_source [Object] Object to be assigned
103
+ # @!visibility private
104
+ def data_source=(data_source)
105
+ if data_source.nil?
106
+ fail ArgumentError, 'invalid value for "data_source", data_source cannot be nil.'
107
+ end
108
+ @data_source = data_source
109
+ end
110
+
111
+ # Custom attribute writer method with validation
112
+ # @param name [Object] Object to be assigned
113
+ # @!visibility private
114
+ def name=(name)
115
+ if name.nil?
116
+ fail ArgumentError, 'invalid value for "name", name cannot be nil.'
117
+ end
118
+ @name = name
119
+ end
120
+
121
+ # Custom attribute writer method with validation
122
+ # @param query [Object] Object to be assigned
123
+ # @!visibility private
124
+ def query=(query)
125
+ if query.nil?
126
+ fail ArgumentError, 'invalid value for "query", query cannot be nil.'
127
+ end
128
+ @query = query
129
+ end
130
+
131
+ # Checks equality by comparing each attribute.
132
+ # @param o [Object] Object to be compared
133
+ # @!visibility private
134
+ def ==(o)
135
+ return true if self.equal?(o)
136
+ self.class == o.class &&
137
+ aggregator == o.aggregator &&
138
+ data_source == o.data_source &&
139
+ name == o.name &&
140
+ query == o.query
141
+ end
142
+
143
+ # Calculates hash code according to all attributes.
144
+ # @return [Integer] Hash code
145
+ # @!visibility private
146
+ def hash
147
+ [aggregator, data_source, name, query].hash
148
+ end
149
+ end
150
+ end
@@ -31,7 +31,8 @@ module DatadogAPIClient::V1
31
31
  :'FormulaAndFunctionProcessQueryDefinition',
32
32
  :'FormulaAndFunctionApmDependencyStatsQueryDefinition',
33
33
  :'FormulaAndFunctionApmResourceStatsQueryDefinition',
34
- :'FormulaAndFunctionSLOQueryDefinition'
34
+ :'FormulaAndFunctionSLOQueryDefinition',
35
+ :'FormulaAndFunctionCloudCostQueryDefinition'
35
36
  ]
36
37
  end
37
38
  # Builds the object
@@ -17,11 +17,12 @@ require 'date'
17
17
  require 'time'
18
18
 
19
19
  module DatadogAPIClient::V1
20
- # Timeseries or Scalar response.
20
+ # Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets.
21
21
  class FormulaAndFunctionResponseFormat
22
22
  include BaseEnumModel
23
23
 
24
24
  TIMESERIES = "timeseries".freeze
25
25
  SCALAR = "scalar".freeze
26
+ EVENT_LIST = "event_list".freeze
26
27
  end
27
28
  end
@@ -21,6 +21,9 @@ module DatadogAPIClient::V1
21
21
  class FormulaAndFunctionSLOQueryDefinition
22
22
  include BaseGenericModel
23
23
 
24
+ # Additional filters applied to the SLO query.
25
+ attr_accessor :additional_query_filters
26
+
24
27
  # Data source for SLO measures queries.
25
28
  attr_reader :data_source
26
29
 
@@ -43,6 +46,7 @@ module DatadogAPIClient::V1
43
46
  # @!visibility private
44
47
  def self.attribute_map
45
48
  {
49
+ :'additional_query_filters' => :'additional_query_filters',
46
50
  :'data_source' => :'data_source',
47
51
  :'group_mode' => :'group_mode',
48
52
  :'measure' => :'measure',
@@ -56,6 +60,7 @@ module DatadogAPIClient::V1
56
60
  # @!visibility private
57
61
  def self.openapi_types
58
62
  {
63
+ :'additional_query_filters' => :'String',
59
64
  :'data_source' => :'FormulaAndFunctionSLODataSource',
60
65
  :'group_mode' => :'FormulaAndFunctionSLOGroupMode',
61
66
  :'measure' => :'FormulaAndFunctionSLOMeasure',
@@ -81,6 +86,10 @@ module DatadogAPIClient::V1
81
86
  h[k.to_sym] = v
82
87
  }
83
88
 
89
+ if attributes.key?(:'additional_query_filters')
90
+ self.additional_query_filters = attributes[:'additional_query_filters']
91
+ end
92
+
84
93
  if attributes.key?(:'data_source')
85
94
  self.data_source = attributes[:'data_source']
86
95
  end
@@ -152,6 +161,7 @@ module DatadogAPIClient::V1
152
161
  def ==(o)
153
162
  return true if self.equal?(o)
154
163
  self.class == o.class &&
164
+ additional_query_filters == o.additional_query_filters &&
155
165
  data_source == o.data_source &&
156
166
  group_mode == o.group_mode &&
157
167
  measure == o.measure &&
@@ -164,7 +174,7 @@ module DatadogAPIClient::V1
164
174
  # @return [Integer] Hash code
165
175
  # @!visibility private
166
176
  def hash
167
- [data_source, group_mode, measure, name, slo_id, slo_query_type].hash
177
+ [additional_query_filters, data_source, group_mode, measure, name, slo_id, slo_query_type].hash
168
178
  end
169
179
  end
170
180
  end
@@ -21,6 +21,9 @@ module DatadogAPIClient::V1
21
21
  class GeomapWidgetRequest
22
22
  include BaseGenericModel
23
23
 
24
+ # Widget columns.
25
+ attr_accessor :columns
26
+
24
27
  # List of formulas that operate on queries.
25
28
  attr_accessor :formulas
26
29
 
@@ -33,7 +36,10 @@ module DatadogAPIClient::V1
33
36
  # List of queries that can be returned directly or used in formulas.
34
37
  attr_accessor :queries
35
38
 
36
- # Timeseries or Scalar response.
39
+ # Updated list stream widget.
40
+ attr_accessor :query
41
+
42
+ # Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets.
37
43
  attr_accessor :response_format
38
44
 
39
45
  # The log query.
@@ -46,10 +52,12 @@ module DatadogAPIClient::V1
46
52
  # @!visibility private
47
53
  def self.attribute_map
48
54
  {
55
+ :'columns' => :'columns',
49
56
  :'formulas' => :'formulas',
50
57
  :'log_query' => :'log_query',
51
58
  :'q' => :'q',
52
59
  :'queries' => :'queries',
60
+ :'query' => :'query',
53
61
  :'response_format' => :'response_format',
54
62
  :'rum_query' => :'rum_query',
55
63
  :'security_query' => :'security_query'
@@ -60,10 +68,12 @@ module DatadogAPIClient::V1
60
68
  # @!visibility private
61
69
  def self.openapi_types
62
70
  {
71
+ :'columns' => :'Array<ListStreamColumn>',
63
72
  :'formulas' => :'Array<WidgetFormula>',
64
73
  :'log_query' => :'LogQueryDefinition',
65
74
  :'q' => :'String',
66
75
  :'queries' => :'Array<FormulaAndFunctionQueryDefinition>',
76
+ :'query' => :'ListStreamQuery',
67
77
  :'response_format' => :'FormulaAndFunctionResponseFormat',
68
78
  :'rum_query' => :'LogQueryDefinition',
69
79
  :'security_query' => :'LogQueryDefinition'
@@ -86,6 +96,12 @@ module DatadogAPIClient::V1
86
96
  h[k.to_sym] = v
87
97
  }
88
98
 
99
+ if attributes.key?(:'columns')
100
+ if (value = attributes[:'columns']).is_a?(Array)
101
+ self.columns = value
102
+ end
103
+ end
104
+
89
105
  if attributes.key?(:'formulas')
90
106
  if (value = attributes[:'formulas']).is_a?(Array)
91
107
  self.formulas = value
@@ -106,6 +122,10 @@ module DatadogAPIClient::V1
106
122
  end
107
123
  end
108
124
 
125
+ if attributes.key?(:'query')
126
+ self.query = attributes[:'query']
127
+ end
128
+
109
129
  if attributes.key?(:'response_format')
110
130
  self.response_format = attributes[:'response_format']
111
131
  end
@@ -125,10 +145,12 @@ module DatadogAPIClient::V1
125
145
  def ==(o)
126
146
  return true if self.equal?(o)
127
147
  self.class == o.class &&
148
+ columns == o.columns &&
128
149
  formulas == o.formulas &&
129
150
  log_query == o.log_query &&
130
151
  q == o.q &&
131
152
  queries == o.queries &&
153
+ query == o.query &&
132
154
  response_format == o.response_format &&
133
155
  rum_query == o.rum_query &&
134
156
  security_query == o.security_query
@@ -138,7 +160,7 @@ module DatadogAPIClient::V1
138
160
  # @return [Integer] Hash code
139
161
  # @!visibility private
140
162
  def hash
141
- [formulas, log_query, q, queries, response_format, rum_query, security_query].hash
163
+ [columns, formulas, log_query, q, queries, query, response_format, rum_query, security_query].hash
142
164
  end
143
165
  end
144
166
  end
@@ -0,0 +1,94 @@
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
+ # Available prefix information for the Remote Configuration endpoints.
21
+ class IPPrefixesRemoteConfiguration
22
+ include BaseGenericModel
23
+
24
+ # List of IPv4 prefixes.
25
+ attr_accessor :prefixes_ipv4
26
+
27
+ # List of IPv6 prefixes.
28
+ attr_accessor :prefixes_ipv6
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ # @!visibility private
32
+ def self.attribute_map
33
+ {
34
+ :'prefixes_ipv4' => :'prefixes_ipv4',
35
+ :'prefixes_ipv6' => :'prefixes_ipv6'
36
+ }
37
+ end
38
+
39
+ # Attribute type mapping.
40
+ # @!visibility private
41
+ def self.openapi_types
42
+ {
43
+ :'prefixes_ipv4' => :'Array<String>',
44
+ :'prefixes_ipv6' => :'Array<String>'
45
+ }
46
+ end
47
+
48
+ # Initializes the object
49
+ # @param attributes [Hash] Model attributes in the form of hash
50
+ # @!visibility private
51
+ def initialize(attributes = {})
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesRemoteConfiguration` initialize method"
54
+ end
55
+
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h|
58
+ if (!self.class.attribute_map.key?(k.to_sym))
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::IPPrefixesRemoteConfiguration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ end
61
+ h[k.to_sym] = v
62
+ }
63
+
64
+ if attributes.key?(:'prefixes_ipv4')
65
+ if (value = attributes[:'prefixes_ipv4']).is_a?(Array)
66
+ self.prefixes_ipv4 = value
67
+ end
68
+ end
69
+
70
+ if attributes.key?(:'prefixes_ipv6')
71
+ if (value = attributes[:'prefixes_ipv6']).is_a?(Array)
72
+ self.prefixes_ipv6 = value
73
+ end
74
+ end
75
+ end
76
+
77
+ # Checks equality by comparing each attribute.
78
+ # @param o [Object] Object to be compared
79
+ # @!visibility private
80
+ def ==(o)
81
+ return true if self.equal?(o)
82
+ self.class == o.class &&
83
+ prefixes_ipv4 == o.prefixes_ipv4 &&
84
+ prefixes_ipv6 == o.prefixes_ipv6
85
+ end
86
+
87
+ # Calculates hash code according to all attributes.
88
+ # @return [Integer] Hash code
89
+ # @!visibility private
90
+ def hash
91
+ [prefixes_ipv4, prefixes_ipv6].hash
92
+ end
93
+ end
94
+ end
@@ -42,6 +42,9 @@ module DatadogAPIClient::V1
42
42
  # Available prefix information for the Process endpoints.
43
43
  attr_accessor :process
44
44
 
45
+ # Available prefix information for the Remote Configuration endpoints.
46
+ attr_accessor :remote_configuration
47
+
45
48
  # Available prefix information for the Synthetics endpoints.
46
49
  attr_accessor :synthetics
47
50
 
@@ -65,6 +68,7 @@ module DatadogAPIClient::V1
65
68
  :'modified' => :'modified',
66
69
  :'orchestrator' => :'orchestrator',
67
70
  :'process' => :'process',
71
+ :'remote_configuration' => :'remote-configuration',
68
72
  :'synthetics' => :'synthetics',
69
73
  :'synthetics_private_locations' => :'synthetics-private-locations',
70
74
  :'version' => :'version',
@@ -83,6 +87,7 @@ module DatadogAPIClient::V1
83
87
  :'modified' => :'String',
84
88
  :'orchestrator' => :'IPPrefixesOrchestrator',
85
89
  :'process' => :'IPPrefixesProcess',
90
+ :'remote_configuration' => :'IPPrefixesRemoteConfiguration',
86
91
  :'synthetics' => :'IPPrefixesSynthetics',
87
92
  :'synthetics_private_locations' => :'IPPrefixesSyntheticsPrivateLocations',
88
93
  :'version' => :'Integer',
@@ -134,6 +139,10 @@ module DatadogAPIClient::V1
134
139
  self.process = attributes[:'process']
135
140
  end
136
141
 
142
+ if attributes.key?(:'remote_configuration')
143
+ self.remote_configuration = attributes[:'remote_configuration']
144
+ end
145
+
137
146
  if attributes.key?(:'synthetics')
138
147
  self.synthetics = attributes[:'synthetics']
139
148
  end
@@ -164,6 +173,7 @@ module DatadogAPIClient::V1
164
173
  modified == o.modified &&
165
174
  orchestrator == o.orchestrator &&
166
175
  process == o.process &&
176
+ remote_configuration == o.remote_configuration &&
167
177
  synthetics == o.synthetics &&
168
178
  synthetics_private_locations == o.synthetics_private_locations &&
169
179
  version == o.version &&
@@ -174,7 +184,7 @@ module DatadogAPIClient::V1
174
184
  # @return [Integer] Hash code
175
185
  # @!visibility private
176
186
  def hash
177
- [agents, api, apm, logs, modified, orchestrator, process, synthetics, synthetics_private_locations, version, webhooks].hash
187
+ [agents, api, apm, logs, modified, orchestrator, process, remote_configuration, synthetics, synthetics_private_locations, version, webhooks].hash
178
188
  end
179
189
  end
180
190
  end