datadog_api_client 2.3.0 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/schemas/v1/openapi.yaml +229 -6
  4. data/.generator/schemas/v2/openapi.yaml +1295 -335
  5. data/.github/workflows/docs.yml +2 -0
  6. data/.github/workflows/test.yml +2 -0
  7. data/CHANGELOG.md +19 -0
  8. data/examples/v1/logs-indexes/UpdateLogsIndex.rb +3 -0
  9. data/examples/v1/monitors/CreateMonitor_2012680290.rb +23 -0
  10. data/examples/v1/service-level-objectives/GetSLOHistory.rb +0 -3
  11. data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +9 -0
  12. data/examples/v1/synthetics/UpdateBrowserTest.rb +1 -0
  13. data/examples/v2/ci-visibility-pipelines/AggregateCIAppPipelineEvents.rb +33 -0
  14. data/examples/v2/ci-visibility-pipelines/ListCIAppPipelineEvents.rb +11 -0
  15. data/examples/v2/ci-visibility-pipelines/ListCIAppPipelineEvents_1270618359.rb +10 -0
  16. data/examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb +23 -0
  17. data/examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents_3246135003.rb +22 -0
  18. data/examples/v2/ci-visibility-tests/AggregateCIAppTestEvents.rb +36 -0
  19. data/examples/v2/ci-visibility-tests/ListCIAppTestEvents.rb +11 -0
  20. data/examples/v2/ci-visibility-tests/ListCIAppTestEvents_3852605281.rb +10 -0
  21. data/examples/v2/ci-visibility-tests/SearchCIAppTestEvents.rb +23 -0
  22. data/examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb +20 -0
  23. data/examples/v2/security-monitoring/GetSecurityMonitoringRule.rb +4 -1
  24. data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.rb +23 -33
  25. data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +1 -1
  26. data/examples/v2/service-definition/DeleteServiceDefinition.rb +1 -1
  27. data/examples/v2/service-definition/GetServiceDefinition.rb +1 -1
  28. data/examples/v2/usage-metering/GetEstimatedCostByOrg_3186693804.rb +1 -1
  29. data/lib/datadog_api_client/configuration.rb +0 -1
  30. data/lib/datadog_api_client/inflector.rb +49 -0
  31. data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +0 -6
  32. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +5 -5
  33. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +1 -0
  34. data/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb +4 -0
  35. data/lib/datadog_api_client/v1/models/monitor_options.rb +11 -1
  36. data/lib/datadog_api_client/v1/models/monitor_options_scheduling_options.rb +98 -0
  37. data/lib/datadog_api_client/v1/models/monitor_options_scheduling_options_evaluation_window.rb +148 -0
  38. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +2 -0
  39. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +21 -1
  40. data/lib/datadog_api_client/v1/models/synthetics_assertion.rb +2 -1
  41. data/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_operator.rb +26 -0
  42. data/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target.rb +150 -0
  43. data/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target_target.rb +118 -0
  44. data/lib/datadog_api_client/v1/models/synthetics_step.rb +11 -1
  45. data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +2 -2
  46. data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +11 -1
  47. data/lib/datadog_api_client/v1/models/synthetics_test_request_body_type.rb +31 -0
  48. data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +2 -0
  49. data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +2 -0
  50. data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +21 -1
  51. data/lib/datadog_api_client/v1/models/usage_fargate_hour.rb +11 -1
  52. data/lib/datadog_api_client/v1/models/usage_sds_hour.rb +31 -1
  53. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +41 -1
  54. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +41 -1
  55. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +41 -1
  56. data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +283 -0
  57. data/lib/datadog_api_client/v2/api/ci_visibility_tests_api.rb +283 -0
  58. data/lib/datadog_api_client/v2/api/cloud_workload_security_api.rb +1 -1
  59. data/lib/datadog_api_client/v2/api/logs_api.rb +6 -0
  60. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +3 -2
  61. data/lib/datadog_api_client/v2/models/ci_app_aggregate_bucket_value.rb +64 -0
  62. data/lib/datadog_api_client/v2/models/ci_app_aggregate_bucket_value_timeseries_point.rb +108 -0
  63. data/lib/datadog_api_client/v2/models/ci_app_aggregate_sort.rb +128 -0
  64. data/lib/datadog_api_client/v2/models/ci_app_aggregate_sort_type.rb +27 -0
  65. data/lib/datadog_api_client/v2/models/ci_app_aggregation_function.rb +37 -0
  66. data/lib/datadog_api_client/v2/models/ci_app_compute.rb +140 -0
  67. data/lib/datadog_api_client/v2/models/ci_app_compute_type.rb +27 -0
  68. data/lib/datadog_api_client/v2/models/ci_app_event_attributes.rb +132 -0
  69. data/lib/datadog_api_client/v2/models/ci_app_group_by_histogram.rb +154 -0
  70. data/lib/datadog_api_client/v2/models/ci_app_group_by_missing.rb +63 -0
  71. data/lib/datadog_api_client/v2/models/ci_app_group_by_total.rb +64 -0
  72. data/lib/datadog_api_client/v2/models/ci_app_pipeline_event.rb +118 -0
  73. data/lib/datadog_api_client/v2/models/ci_app_pipeline_event_type_name.rb +26 -0
  74. data/lib/datadog_api_client/v2/models/ci_app_pipeline_events_request.rb +129 -0
  75. data/lib/datadog_api_client/v2/models/ci_app_pipeline_events_response.rb +120 -0
  76. data/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregate_request.rb +143 -0
  77. data/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregation_buckets_response.rb +100 -0
  78. data/lib/datadog_api_client/v2/models/ci_app_pipelines_analytics_aggregate_response.rb +118 -0
  79. data/lib/datadog_api_client/v2/models/ci_app_pipelines_bucket_response.rb +108 -0
  80. data/lib/datadog_api_client/v2/models/ci_app_pipelines_group_by.rb +160 -0
  81. data/lib/datadog_api_client/v2/models/ci_app_pipelines_query_filter.rb +118 -0
  82. data/lib/datadog_api_client/v2/models/ci_app_query_options.rb +109 -0
  83. data/lib/datadog_api_client/v2/models/ci_app_query_page_options.rb +119 -0
  84. data/lib/datadog_api_client/v2/models/ci_app_response_links.rb +99 -0
  85. data/lib/datadog_api_client/v2/models/ci_app_response_metadata.rb +141 -0
  86. data/lib/datadog_api_client/v2/models/ci_app_response_page.rb +98 -0
  87. data/lib/datadog_api_client/v2/models/ci_app_response_status.rb +27 -0
  88. data/lib/datadog_api_client/v2/models/ci_app_sort.rb +27 -0
  89. data/lib/datadog_api_client/v2/models/ci_app_sort_order.rb +27 -0
  90. data/lib/datadog_api_client/v2/models/ci_app_test_event.rb +118 -0
  91. data/lib/datadog_api_client/v2/models/ci_app_test_event_type_name.rb +26 -0
  92. data/lib/datadog_api_client/v2/models/ci_app_test_events_request.rb +129 -0
  93. data/lib/datadog_api_client/v2/models/ci_app_test_events_response.rb +120 -0
  94. data/lib/datadog_api_client/v2/models/ci_app_tests_aggregate_request.rb +143 -0
  95. data/lib/datadog_api_client/v2/models/ci_app_tests_aggregation_buckets_response.rb +100 -0
  96. data/lib/datadog_api_client/v2/models/ci_app_tests_analytics_aggregate_response.rb +118 -0
  97. data/lib/datadog_api_client/v2/models/ci_app_tests_bucket_response.rb +108 -0
  98. data/lib/datadog_api_client/v2/models/ci_app_tests_group_by.rb +160 -0
  99. data/lib/datadog_api_client/v2/models/ci_app_tests_query_filter.rb +118 -0
  100. data/lib/datadog_api_client/v2/models/ci_app_warning.rb +118 -0
  101. data/lib/datadog_api_client/v2/models/logs_query_filter.rb +11 -1
  102. data/lib/datadog_api_client/v2/models/logs_storage_tier.rb +27 -0
  103. data/lib/datadog_api_client/v2/models/rum_query_filter.rb +2 -2
  104. data/lib/datadog_api_client/v2/models/service_definition_v2_opsgenie.rb +14 -14
  105. data/lib/datadog_api_client/version.rb +1 -1
  106. metadata +62 -3
  107. data/examples/v2/usage-metering/GetEstimatedCostByOrg_2734954020.rb +0 -9
@@ -11,6 +11,8 @@ on:
11
11
  jobs:
12
12
  build:
13
13
  runs-on: ubuntu-latest
14
+ env:
15
+ DD_PROFILING_NO_EXTENSION: true
14
16
 
15
17
  steps:
16
18
  - uses: actions/checkout@v3
@@ -98,6 +98,8 @@ jobs:
98
98
  examples:
99
99
  runs-on: ubuntu-latest
100
100
  if: github.event.pull_request.draft == false && !contains(github.event.pull_request.labels.*.name, 'ci/skip') && !contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/')
101
+ env:
102
+ DD_PROFILING_NO_EXTENSION: true
101
103
  steps:
102
104
  - uses: actions/checkout@v3
103
105
  - name: Set up Ruby
data/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.4.0 / 2022-11-16
4
+
5
+ ### Fixed
6
+ * Fix service catalog schema change by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1130
7
+ ### Added
8
+ * Add support for CI Visibility API by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1109
9
+ * Add support for querying logs in Online Archives by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1100
10
+ * Add new SDS fields to usage API by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1110
11
+ * Remove Beta status for SLO history endpoint by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1113
12
+ * Update formula and function monitor enum datasource by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1118
13
+ * Add scheduling_options to monitor definition by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1119
14
+ * Appsec Fargate Public Documentation by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1121
15
+ * Adds noScreenshot to SyntheticsStep by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1123
16
+ * Add support for xpath assertions in synthetics tests by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1104
17
+ * Add bodyType to Synthetics request by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1127
18
+
19
+
20
+ **Full Changelog**: https://github.com/DataDog/datadog-api-client-ruby/compare/v2.3.0...v2.4.0
21
+
3
22
  ## 2.3.0 / 2022-10-24
4
23
 
5
24
  ### Fixed
@@ -4,6 +4,8 @@ require "datadog_api_client"
4
4
  api_instance = DatadogAPIClient::V1::LogsIndexesAPI.new
5
5
 
6
6
  body = DatadogAPIClient::V1::LogsIndexUpdateRequest.new({
7
+ daily_limit: 300000000,
8
+ disable_daily_limit: false,
7
9
  exclusion_filters: [
8
10
  DatadogAPIClient::V1::LogsExclusion.new({
9
11
  filter: DatadogAPIClient::V1::LogsExclusionFilter.new({
@@ -16,5 +18,6 @@ body = DatadogAPIClient::V1::LogsIndexUpdateRequest.new({
16
18
  filter: DatadogAPIClient::V1::LogsFilter.new({
17
19
  query: "source:python",
18
20
  }),
21
+ num_retention_days: 15,
19
22
  })
20
23
  p api_instance.update_logs_index("name", body)
@@ -0,0 +1,23 @@
1
+ # Create a metric monitor returns "OK" response
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V1::MonitorsAPI.new
5
+
6
+ body = DatadogAPIClient::V1::Monitor.new({
7
+ name: "Example-Create_a_metric_monitor_returns_OK_response",
8
+ type: DatadogAPIClient::V1::MonitorType::METRIC_ALERT,
9
+ query: "avg(current_1d):avg:system.load.5{*} > 0.5",
10
+ message: "some message Notify: @hipchat-channel",
11
+ options: DatadogAPIClient::V1::MonitorOptions.new({
12
+ thresholds: DatadogAPIClient::V1::MonitorThresholds.new({
13
+ critical: 0.5,
14
+ }),
15
+ scheduling_options: DatadogAPIClient::V1::MonitorOptionsSchedulingOptions.new({
16
+ evaluation_window: DatadogAPIClient::V1::MonitorOptionsSchedulingOptionsEvaluationWindow.new({
17
+ day_starts: "04:00",
18
+ month_starts: 1,
19
+ }),
20
+ }),
21
+ }),
22
+ })
23
+ p api_instance.create_monitor(body)
@@ -1,9 +1,6 @@
1
1
  # Get an SLO's history returns "OK" response
2
2
 
3
3
  require "datadog_api_client"
4
- DatadogAPIClient::V2.configure do |config|
5
- config.unstable_operations["v1.get_slo_history".to_sym] = true
6
- end
7
4
  api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new
8
5
 
9
6
  # there is a valid "slo" in the system
@@ -26,6 +26,15 @@ body = DatadogAPIClient::V1::SyntheticsAPITest.new({
26
26
  }),
27
27
  type: DatadogAPIClient::V1::SyntheticsAssertionType::BODY,
28
28
  }),
29
+ DatadogAPIClient::V1::SyntheticsAssertionXPathTarget.new({
30
+ operator: DatadogAPIClient::V1::SyntheticsAssertionXPathOperator::VALIDATES_X_PATH,
31
+ target: DatadogAPIClient::V1::SyntheticsAssertionXPathTargetTarget.new({
32
+ x_path: "target-xpath",
33
+ target_value: "0",
34
+ operator: "contains",
35
+ }),
36
+ type: DatadogAPIClient::V1::SyntheticsAssertionType::BODY,
37
+ }),
29
38
  ],
30
39
  config_variables: [
31
40
  DatadogAPIClient::V1::SyntheticsConfigVariable.new({
@@ -18,6 +18,7 @@ body = DatadogAPIClient::V1::SyntheticsBrowserTest.new({
18
18
  type: DatadogAPIClient::V1::SyntheticsBasicAuthWebType::WEB,
19
19
  username: "my_username",
20
20
  }),
21
+ body_type: DatadogAPIClient::V1::SyntheticsTestRequestBodyType::TEXT_PLAIN,
21
22
  certificate: DatadogAPIClient::V1::SyntheticsTestRequestCertificate.new({
22
23
  cert: DatadogAPIClient::V1::SyntheticsTestRequestCertificateItem.new({}),
23
24
  key: DatadogAPIClient::V1::SyntheticsTestRequestCertificateItem.new({}),
@@ -0,0 +1,33 @@
1
+ # Aggregate pipelines events returns "OK" response
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V2::CIVisibilityPipelinesAPI.new
5
+
6
+ body = DatadogAPIClient::V2::CIAppPipelinesAggregateRequest.new({
7
+ compute: [
8
+ DatadogAPIClient::V2::CIAppCompute.new({
9
+ aggregation: DatadogAPIClient::V2::CIAppAggregationFunction::PERCENTILE_90,
10
+ metric: "@duration",
11
+ type: DatadogAPIClient::V2::CIAppComputeType::TOTAL,
12
+ }),
13
+ ],
14
+ filter: DatadogAPIClient::V2::CIAppPipelinesQueryFilter.new({
15
+ from: "now-15m",
16
+ query: "@ci.provider.name:github AND @ci.provider.instance:github-actions",
17
+ to: "now",
18
+ }),
19
+ group_by: [
20
+ DatadogAPIClient::V2::CIAppPipelinesGroupBy.new({
21
+ facet: "@ci.status",
22
+ limit: 10,
23
+ total: false,
24
+ }),
25
+ ],
26
+ options: DatadogAPIClient::V2::CIAppQueryOptions.new({
27
+ timezone: "GMT",
28
+ }),
29
+ page: DatadogAPIClient::V2::CIAppQueryPageOptions.new({
30
+ limit: 25,
31
+ }),
32
+ })
33
+ p api_instance.aggregate_ci_app_pipeline_events(body)
@@ -0,0 +1,11 @@
1
+ # Get a list of pipelines events returns "OK" response
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V2::CIVisibilityPipelinesAPI.new
5
+ opts = {
6
+ filter_query: "@ci.provider.instance:circleci",
7
+ filter_from: (Time.now + -30 * 60),
8
+ filter_to: Time.now,
9
+ page_limit: 5,
10
+ }
11
+ p api_instance.list_ci_app_pipeline_events(opts)
@@ -0,0 +1,10 @@
1
+ # Get a list of pipelines events returns "OK" response with pagination
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V2::CIVisibilityPipelinesAPI.new
5
+ opts = {
6
+ filter_from: (Time.now + -30),
7
+ filter_to: Time.now,
8
+ page_limit: 2,
9
+ }
10
+ api_instance.list_ci_app_pipeline_events_with_pagination(opts) { |item| puts item }
@@ -0,0 +1,23 @@
1
+ # Search pipelines events returns "OK" response
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V2::CIVisibilityPipelinesAPI.new
5
+
6
+ body = DatadogAPIClient::V2::CIAppPipelineEventsRequest.new({
7
+ filter: DatadogAPIClient::V2::CIAppPipelinesQueryFilter.new({
8
+ from: "now-15m",
9
+ query: "@ci.provider.name:github AND @ci.status:error",
10
+ to: "now",
11
+ }),
12
+ options: DatadogAPIClient::V2::CIAppQueryOptions.new({
13
+ timezone: "GMT",
14
+ }),
15
+ page: DatadogAPIClient::V2::CIAppQueryPageOptions.new({
16
+ limit: 5,
17
+ }),
18
+ sort: DatadogAPIClient::V2::CIAppSort::TIMESTAMP_ASCENDING,
19
+ })
20
+ opts = {
21
+ body: body,
22
+ }
23
+ p api_instance.search_ci_app_pipeline_events(opts)
@@ -0,0 +1,22 @@
1
+ # Search pipelines events returns "OK" response with pagination
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V2::CIVisibilityPipelinesAPI.new
5
+
6
+ body = DatadogAPIClient::V2::CIAppPipelineEventsRequest.new({
7
+ filter: DatadogAPIClient::V2::CIAppPipelinesQueryFilter.new({
8
+ from: "now-30s",
9
+ to: "now",
10
+ }),
11
+ options: DatadogAPIClient::V2::CIAppQueryOptions.new({
12
+ timezone: "GMT",
13
+ }),
14
+ page: DatadogAPIClient::V2::CIAppQueryPageOptions.new({
15
+ limit: 2,
16
+ }),
17
+ sort: DatadogAPIClient::V2::CIAppSort::TIMESTAMP_ASCENDING,
18
+ })
19
+ opts = {
20
+ body: body,
21
+ }
22
+ api_instance.search_ci_app_pipeline_events_with_pagination(opts) { |item| puts item }
@@ -0,0 +1,36 @@
1
+ # Aggregate tests events returns "OK" response
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V2::CIVisibilityTestsAPI.new
5
+
6
+ body = DatadogAPIClient::V2::CIAppTestsAggregateRequest.new({
7
+ compute: [
8
+ DatadogAPIClient::V2::CIAppCompute.new({
9
+ aggregation: DatadogAPIClient::V2::CIAppAggregationFunction::COUNT,
10
+ metric: "@test.is_flaky",
11
+ type: DatadogAPIClient::V2::CIAppComputeType::TOTAL,
12
+ }),
13
+ ],
14
+ filter: DatadogAPIClient::V2::CIAppTestsQueryFilter.new({
15
+ from: "now-15m",
16
+ query: "@language:(python OR go)",
17
+ to: "now",
18
+ }),
19
+ group_by: [
20
+ DatadogAPIClient::V2::CIAppTestsGroupBy.new({
21
+ facet: "@git.branch",
22
+ limit: 10,
23
+ sort: DatadogAPIClient::V2::CIAppAggregateSort.new({
24
+ order: DatadogAPIClient::V2::CIAppSortOrder::ASCENDING,
25
+ }),
26
+ total: false,
27
+ }),
28
+ ],
29
+ options: DatadogAPIClient::V2::CIAppQueryOptions.new({
30
+ timezone: "GMT",
31
+ }),
32
+ page: DatadogAPIClient::V2::CIAppQueryPageOptions.new({
33
+ limit: 25,
34
+ }),
35
+ })
36
+ p api_instance.aggregate_ci_app_test_events(body)
@@ -0,0 +1,11 @@
1
+ # Get a list of tests events returns "OK" response
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V2::CIVisibilityTestsAPI.new
5
+ opts = {
6
+ filter_query: "@test.service:web-ui-tests",
7
+ filter_from: (Time.now + -30),
8
+ filter_to: Time.now,
9
+ page_limit: 5,
10
+ }
11
+ p api_instance.list_ci_app_test_events(opts)
@@ -0,0 +1,10 @@
1
+ # Get a list of tests events returns "OK" response with pagination
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V2::CIVisibilityTestsAPI.new
5
+ opts = {
6
+ filter_from: (Time.now + -30),
7
+ filter_to: Time.now,
8
+ page_limit: 2,
9
+ }
10
+ api_instance.list_ci_app_test_events_with_pagination(opts) { |item| puts item }
@@ -0,0 +1,23 @@
1
+ # Search tests events returns "OK" response
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V2::CIVisibilityTestsAPI.new
5
+
6
+ body = DatadogAPIClient::V2::CIAppTestEventsRequest.new({
7
+ filter: DatadogAPIClient::V2::CIAppTestsQueryFilter.new({
8
+ from: "now-15m",
9
+ query: "@test.service:web-ui-tests AND @test.status:skip",
10
+ to: "now",
11
+ }),
12
+ options: DatadogAPIClient::V2::CIAppQueryOptions.new({
13
+ timezone: "GMT",
14
+ }),
15
+ page: DatadogAPIClient::V2::CIAppQueryPageOptions.new({
16
+ limit: 25,
17
+ }),
18
+ sort: DatadogAPIClient::V2::CIAppSort::TIMESTAMP_ASCENDING,
19
+ })
20
+ opts = {
21
+ body: body,
22
+ }
23
+ p api_instance.search_ci_app_test_events(opts)
@@ -0,0 +1,20 @@
1
+ # Search tests events returns "OK" response with pagination
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V2::CIVisibilityTestsAPI.new
5
+
6
+ body = DatadogAPIClient::V2::CIAppTestEventsRequest.new({
7
+ filter: DatadogAPIClient::V2::CIAppTestsQueryFilter.new({
8
+ from: "now-15m",
9
+ query: "@test.status:pass AND -@language:python",
10
+ to: "now",
11
+ }),
12
+ page: DatadogAPIClient::V2::CIAppQueryPageOptions.new({
13
+ limit: 2,
14
+ }),
15
+ sort: DatadogAPIClient::V2::CIAppSort::TIMESTAMP_ASCENDING,
16
+ })
17
+ opts = {
18
+ body: body,
19
+ }
20
+ api_instance.search_ci_app_test_events_with_pagination(opts) { |item| puts item }
@@ -2,4 +2,7 @@
2
2
 
3
3
  require "datadog_api_client"
4
4
  api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
5
- p api_instance.get_security_monitoring_rule("rule_id")
5
+
6
+ # there is a valid "security_rule" in the system
7
+ SECURITY_RULE_ID = ENV["SECURITY_RULE_ID"]
8
+ p api_instance.get_security_monitoring_rule(SECURITY_RULE_ID)
@@ -3,46 +3,36 @@
3
3
  require "datadog_api_client"
4
4
  api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
5
5
 
6
+ # there is a valid "security_rule" in the system
7
+ SECURITY_RULE_ID = ENV["SECURITY_RULE_ID"]
8
+
6
9
  body = DatadogAPIClient::V2::SecurityMonitoringRuleUpdatePayload.new({
7
- cases: [
8
- DatadogAPIClient::V2::SecurityMonitoringRuleCase.new({
9
- notifications: [],
10
- status: DatadogAPIClient::V2::SecurityMonitoringRuleSeverity::CRITICAL,
11
- }),
12
- ],
13
- filters: [
14
- DatadogAPIClient::V2::SecurityMonitoringFilter.new({
15
- action: DatadogAPIClient::V2::SecurityMonitoringFilterAction::REQUIRE,
16
- }),
17
- ],
18
- has_extended_title: true,
19
- options: DatadogAPIClient::V2::SecurityMonitoringRuleOptions.new({
20
- decrease_criticality_based_on_env: false,
21
- detection_method: DatadogAPIClient::V2::SecurityMonitoringRuleDetectionMethod::THRESHOLD,
22
- evaluation_window: DatadogAPIClient::V2::SecurityMonitoringRuleEvaluationWindow::ZERO_MINUTES,
23
- hardcoded_evaluator_type: DatadogAPIClient::V2::SecurityMonitoringRuleHardcodedEvaluatorType::LOG4SHELL,
24
- impossible_travel_options: DatadogAPIClient::V2::SecurityMonitoringRuleImpossibleTravelOptions.new({
25
- baseline_user_locations: true,
26
- }),
27
- keep_alive: DatadogAPIClient::V2::SecurityMonitoringRuleKeepAlive::ZERO_MINUTES,
28
- max_signal_duration: DatadogAPIClient::V2::SecurityMonitoringRuleMaxSignalDuration::ZERO_MINUTES,
29
- new_value_options: DatadogAPIClient::V2::SecurityMonitoringRuleNewValueOptions.new({
30
- forget_after: DatadogAPIClient::V2::SecurityMonitoringRuleNewValueOptionsForgetAfter::ONE_DAY,
31
- learning_duration: DatadogAPIClient::V2::SecurityMonitoringRuleNewValueOptionsLearningDuration::ZERO_DAYS,
32
- learning_method: DatadogAPIClient::V2::SecurityMonitoringRuleNewValueOptionsLearningMethod::DURATION,
33
- learning_threshold: DatadogAPIClient::V2::SecurityMonitoringRuleNewValueOptionsLearningThreshold::ZERO_OCCURRENCES,
34
- }),
35
- }),
10
+ name: "Example-Update_an_existing_rule_returns_OK_response-Updated",
36
11
  queries: [
37
12
  DatadogAPIClient::V2::SecurityMonitoringStandardRuleQuery.new({
13
+ query: "@test:true",
38
14
  aggregation: DatadogAPIClient::V2::SecurityMonitoringRuleQueryAggregation::COUNT,
39
- distinct_fields: [],
40
15
  group_by_fields: [],
16
+ distinct_fields: [],
41
17
  metrics: [],
42
- query: "a > 3",
43
18
  }),
44
19
  ],
20
+ filters: [],
21
+ cases: [
22
+ DatadogAPIClient::V2::SecurityMonitoringRuleCase.new({
23
+ name: "",
24
+ status: DatadogAPIClient::V2::SecurityMonitoringRuleSeverity::INFO,
25
+ condition: "a > 0",
26
+ notifications: [],
27
+ }),
28
+ ],
29
+ options: DatadogAPIClient::V2::SecurityMonitoringRuleOptions.new({
30
+ evaluation_window: DatadogAPIClient::V2::SecurityMonitoringRuleEvaluationWindow::FIFTEEN_MINUTES,
31
+ keep_alive: DatadogAPIClient::V2::SecurityMonitoringRuleKeepAlive::ONE_HOUR,
32
+ max_signal_duration: DatadogAPIClient::V2::SecurityMonitoringRuleMaxSignalDuration::ONE_DAY,
33
+ }),
34
+ message: "Test rule",
45
35
  tags: [],
46
- version: 1,
36
+ is_enabled: true,
47
37
  })
48
- p api_instance.update_security_monitoring_rule("rule_id", body)
38
+ p api_instance.update_security_monitoring_rule(SECURITY_RULE_ID, body)
@@ -26,7 +26,7 @@ body = DatadogAPIClient::V2::ServiceDefinitionV2.new({
26
26
  integrations: DatadogAPIClient::V2::ServiceDefinitionV2Integrations.new({
27
27
  opsgenie: DatadogAPIClient::V2::ServiceDefinitionV2Opsgenie.new({
28
28
  region: DatadogAPIClient::V2::ServiceDefinitionV2OpsgenieRegion::US,
29
- service_id: "123e4567-e89b-12d3-a456-426614174000",
29
+ service_url: "https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000",
30
30
  }),
31
31
  pagerduty: "https://my-org.pagerduty.com/service-directory/PMyService",
32
32
  }),
@@ -2,4 +2,4 @@
2
2
 
3
3
  require "datadog_api_client"
4
4
  api_instance = DatadogAPIClient::V2::ServiceDefinitionAPI.new
5
- api_instance.delete_service_definition("service-Example-Delete_a_single_service_definition_returns_OK_response")
5
+ api_instance.delete_service_definition("service-definition-test")
@@ -2,4 +2,4 @@
2
2
 
3
3
  require "datadog_api_client"
4
4
  api_instance = DatadogAPIClient::V2::ServiceDefinitionAPI.new
5
- p api_instance.get_service_definition("service-Example-Get_a_single_service_definition_returns_OK_response")
5
+ p api_instance.get_service_definition("service-definition-test")
@@ -4,6 +4,6 @@ require "datadog_api_client"
4
4
  api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new
5
5
  opts = {
6
6
  view: "sub-org",
7
- start_month: (Time.now + -5 * 86400),
7
+ start_month: Time.now,
8
8
  }
9
9
  p api_instance.get_estimated_cost_by_org(opts)
@@ -175,7 +175,6 @@ module DatadogAPIClient
175
175
  @http_proxypass = nil
176
176
  @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
177
177
  @unstable_operations = {
178
- "v1.get_slo_history": false,
179
178
  "v1.search_slo": false,
180
179
  "v2.list_events": false,
181
180
  "v2.search_events": false,
@@ -275,6 +275,8 @@ module DatadogAPIClient
275
275
  "v1.monitor_group_search_result" => "MonitorGroupSearchResult",
276
276
  "v1.monitor_options" => "MonitorOptions",
277
277
  "v1.monitor_options_aggregation" => "MonitorOptionsAggregation",
278
+ "v1.monitor_options_scheduling_options" => "MonitorOptionsSchedulingOptions",
279
+ "v1.monitor_options_scheduling_options_evaluation_window" => "MonitorOptionsSchedulingOptionsEvaluationWindow",
278
280
  "v1.monitor_overall_states" => "MonitorOverallStates",
279
281
  "v1.monitor_renotify_status_type" => "MonitorRenotifyStatusType",
280
282
  "v1.monitor_search_count_item" => "MonitorSearchCountItem",
@@ -478,6 +480,9 @@ module DatadogAPIClient
478
480
  "v1.synthetics_assertion_operator" => "SyntheticsAssertionOperator",
479
481
  "v1.synthetics_assertion_target" => "SyntheticsAssertionTarget",
480
482
  "v1.synthetics_assertion_type" => "SyntheticsAssertionType",
483
+ "v1.synthetics_assertion_x_path_operator" => "SyntheticsAssertionXPathOperator",
484
+ "v1.synthetics_assertion_x_path_target" => "SyntheticsAssertionXPathTarget",
485
+ "v1.synthetics_assertion_x_path_target_target" => "SyntheticsAssertionXPathTargetTarget",
481
486
  "v1.synthetics_basic_auth" => "SyntheticsBasicAuth",
482
487
  "v1.synthetics_basic_auth_digest" => "SyntheticsBasicAuthDigest",
483
488
  "v1.synthetics_basic_auth_digest_type" => "SyntheticsBasicAuthDigestType",
@@ -563,6 +568,7 @@ module DatadogAPIClient
563
568
  "v1.synthetics_test_pause_status" => "SyntheticsTestPauseStatus",
564
569
  "v1.synthetics_test_process_status" => "SyntheticsTestProcessStatus",
565
570
  "v1.synthetics_test_request" => "SyntheticsTestRequest",
571
+ "v1.synthetics_test_request_body_type" => "SyntheticsTestRequestBodyType",
566
572
  "v1.synthetics_test_request_certificate" => "SyntheticsTestRequestCertificate",
567
573
  "v1.synthetics_test_request_certificate_item" => "SyntheticsTestRequestCertificateItem",
568
574
  "v1.synthetics_test_request_proxy" => "SyntheticsTestRequestProxy",
@@ -804,6 +810,46 @@ module DatadogAPIClient
804
810
  "v2.authn_mapping_update_relationships" => "AuthNMappingUpdateRelationships",
805
811
  "v2.authn_mapping_update_request" => "AuthNMappingUpdateRequest",
806
812
  "v2.chargeback_breakdown" => "ChargebackBreakdown",
813
+ "v2.ci_app_aggregate_bucket_value" => "CIAppAggregateBucketValue",
814
+ "v2.ci_app_aggregate_bucket_value_timeseries_point" => "CIAppAggregateBucketValueTimeseriesPoint",
815
+ "v2.ci_app_aggregate_sort" => "CIAppAggregateSort",
816
+ "v2.ci_app_aggregate_sort_type" => "CIAppAggregateSortType",
817
+ "v2.ci_app_aggregation_function" => "CIAppAggregationFunction",
818
+ "v2.ci_app_compute" => "CIAppCompute",
819
+ "v2.ci_app_compute_type" => "CIAppComputeType",
820
+ "v2.ci_app_event_attributes" => "CIAppEventAttributes",
821
+ "v2.ci_app_group_by_histogram" => "CIAppGroupByHistogram",
822
+ "v2.ci_app_group_by_missing" => "CIAppGroupByMissing",
823
+ "v2.ci_app_group_by_total" => "CIAppGroupByTotal",
824
+ "v2.ci_app_pipeline_event" => "CIAppPipelineEvent",
825
+ "v2.ci_app_pipeline_events_request" => "CIAppPipelineEventsRequest",
826
+ "v2.ci_app_pipeline_events_response" => "CIAppPipelineEventsResponse",
827
+ "v2.ci_app_pipeline_event_type_name" => "CIAppPipelineEventTypeName",
828
+ "v2.ci_app_pipelines_aggregate_request" => "CIAppPipelinesAggregateRequest",
829
+ "v2.ci_app_pipelines_aggregation_buckets_response" => "CIAppPipelinesAggregationBucketsResponse",
830
+ "v2.ci_app_pipelines_analytics_aggregate_response" => "CIAppPipelinesAnalyticsAggregateResponse",
831
+ "v2.ci_app_pipelines_bucket_response" => "CIAppPipelinesBucketResponse",
832
+ "v2.ci_app_pipelines_group_by" => "CIAppPipelinesGroupBy",
833
+ "v2.ci_app_pipelines_query_filter" => "CIAppPipelinesQueryFilter",
834
+ "v2.ci_app_query_options" => "CIAppQueryOptions",
835
+ "v2.ci_app_query_page_options" => "CIAppQueryPageOptions",
836
+ "v2.ci_app_response_links" => "CIAppResponseLinks",
837
+ "v2.ci_app_response_metadata" => "CIAppResponseMetadata",
838
+ "v2.ci_app_response_page" => "CIAppResponsePage",
839
+ "v2.ci_app_response_status" => "CIAppResponseStatus",
840
+ "v2.ci_app_sort" => "CIAppSort",
841
+ "v2.ci_app_sort_order" => "CIAppSortOrder",
842
+ "v2.ci_app_test_event" => "CIAppTestEvent",
843
+ "v2.ci_app_test_events_request" => "CIAppTestEventsRequest",
844
+ "v2.ci_app_test_events_response" => "CIAppTestEventsResponse",
845
+ "v2.ci_app_test_event_type_name" => "CIAppTestEventTypeName",
846
+ "v2.ci_app_tests_aggregate_request" => "CIAppTestsAggregateRequest",
847
+ "v2.ci_app_tests_aggregation_buckets_response" => "CIAppTestsAggregationBucketsResponse",
848
+ "v2.ci_app_tests_analytics_aggregate_response" => "CIAppTestsAnalyticsAggregateResponse",
849
+ "v2.ci_app_tests_bucket_response" => "CIAppTestsBucketResponse",
850
+ "v2.ci_app_tests_group_by" => "CIAppTestsGroupBy",
851
+ "v2.ci_app_tests_query_filter" => "CIAppTestsQueryFilter",
852
+ "v2.ci_app_warning" => "CIAppWarning",
807
853
  "v2.cloud_workload_security_agent_rule_attributes" => "CloudWorkloadSecurityAgentRuleAttributes",
808
854
  "v2.cloud_workload_security_agent_rule_create_attributes" => "CloudWorkloadSecurityAgentRuleCreateAttributes",
809
855
  "v2.cloud_workload_security_agent_rule_create_data" => "CloudWorkloadSecurityAgentRuleCreateData",
@@ -1033,6 +1079,7 @@ module DatadogAPIClient
1033
1079
  "v2.logs_response_metadata_page" => "LogsResponseMetadataPage",
1034
1080
  "v2.logs_sort" => "LogsSort",
1035
1081
  "v2.logs_sort_order" => "LogsSortOrder",
1082
+ "v2.logs_storage_tier" => "LogsStorageTier",
1036
1083
  "v2.logs_warning" => "LogsWarning",
1037
1084
  "v2.log_type" => "LogType",
1038
1085
  "v2.metric" => "Metric",
@@ -1384,6 +1431,8 @@ module DatadogAPIClient
1384
1431
  "v1.webhooks_integration_api" => "WebhooksIntegrationAPI",
1385
1432
  "v2.audit_api" => "AuditAPI",
1386
1433
  "v2.authn_mappings_api" => "AuthNMappingsAPI",
1434
+ "v2.ci_visibility_pipelines_api" => "CIVisibilityPipelinesAPI",
1435
+ "v2.ci_visibility_tests_api" => "CIVisibilityTestsAPI",
1387
1436
  "v2.cloud_workload_security_api" => "CloudWorkloadSecurityAPI",
1388
1437
  "v2.confluent_cloud_api" => "ConfluentCloudAPI",
1389
1438
  "v2.dashboard_lists_api" => "DashboardListsAPI",
@@ -457,12 +457,6 @@ module DatadogAPIClient::V1
457
457
  # @option opts [Boolean] :apply_correction Defaults to `true`. If any SLO corrections are applied and this parameter is set to `false`, then the corrections will not be applied and the SLI values will not be affected.
458
458
  # @return [Array<(SLOHistoryResponse, Integer, Hash)>] SLOHistoryResponse data, response status code and response headers
459
459
  def get_slo_history_with_http_info(slo_id, from_ts, to_ts, opts = {})
460
- unstable_enabled = @api_client.config.unstable_operations["v1.get_slo_history".to_sym]
461
- if unstable_enabled
462
- @api_client.config.logger.warn format("Using unstable operation '%s'", "v1.get_slo_history")
463
- else
464
- raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v1.get_slo_history"))
465
- end
466
460
 
467
461
  if @api_client.config.debugging
468
462
  @api_client.config.logger.debug 'Calling API: ServiceLevelObjectivesAPI.get_slo_history ...'
@@ -152,7 +152,7 @@ module DatadogAPIClient::V1
152
152
  fail ArgumentError, "Missing the required parameter 'usage_type' when calling UsageMeteringAPI.get_hourly_usage_attribution"
153
153
  end
154
154
  # verify enum value
155
- allowable_values = ['api_usage', 'apm_fargate_usage', 'apm_host_usage', 'appsec_usage', 'browser_usage', 'container_usage', 'cspm_containers_usage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'cws_containers_usage', 'cws_hosts_usage', 'dbm_hosts_usage', 'dbm_queries_usage', 'estimated_indexed_logs_usage', 'estimated_ingested_logs_usage', 'estimated_indexed_spans_usage', 'estimated_ingested_spans_usage', 'fargate_usage', 'functions_usage', 'indexed_logs_usage', 'infra_host_usage', 'invocations_usage', 'npm_host_usage', 'profiled_container_usage', 'profiled_host_usage', 'snmp_usage']
155
+ allowable_values = ['api_usage', 'apm_fargate_usage', 'apm_host_usage', 'appsec_fargate_usage', 'appsec_usage', 'browser_usage', 'container_usage', 'cspm_containers_usage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'cws_containers_usage', 'cws_hosts_usage', 'dbm_hosts_usage', 'dbm_queries_usage', 'estimated_indexed_logs_usage', 'estimated_ingested_logs_usage', 'estimated_indexed_spans_usage', 'estimated_ingested_spans_usage', 'fargate_usage', 'functions_usage', 'indexed_logs_usage', 'infra_host_usage', 'invocations_usage', 'npm_host_usage', 'profiled_container_usage', 'profiled_host_usage', 'snmp_usage']
156
156
  if @api_client.config.client_side_validation && !allowable_values.include?(usage_type)
157
157
  fail ArgumentError, "invalid value for \"usage_type\", must be one of #{allowable_values}"
158
158
  end
@@ -472,7 +472,7 @@ module DatadogAPIClient::V1
472
472
  fail ArgumentError, "Missing the required parameter 'fields' when calling UsageMeteringAPI.get_monthly_usage_attribution"
473
473
  end
474
474
  # verify enum value
475
- allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'appsec_usage', 'appsec_percentage', 'browser_usage', 'browser_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'indexed_logs_usage', 'indexed_logs_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'npm_host_usage', 'npm_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'snmp_usage', 'snmp_percentage', '*']
475
+ allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'appsec_usage', 'appsec_percentage', 'browser_usage', 'browser_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'indexed_logs_usage', 'indexed_logs_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'npm_host_usage', 'npm_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'snmp_usage', 'snmp_percentage', '*']
476
476
  if @api_client.config.client_side_validation && !allowable_values.include?(fields)
477
477
  fail ArgumentError, "invalid value for \"fields\", must be one of #{allowable_values}"
478
478
  end
@@ -480,7 +480,7 @@ module DatadogAPIClient::V1
480
480
  if @api_client.config.client_side_validation && opts[:'sort_direction'] && !allowable_values.include?(opts[:'sort_direction'])
481
481
  fail ArgumentError, "invalid value for \"sort_direction\", must be one of #{allowable_values}"
482
482
  end
483
- allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'appsec_usage', 'appsec_percentage', 'browser_usage', 'browser_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'indexed_logs_usage', 'indexed_logs_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'npm_host_usage', 'npm_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'snmp_usage', 'snmp_percentage', '*']
483
+ allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'appsec_usage', 'appsec_percentage', 'browser_usage', 'browser_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'indexed_logs_usage', 'indexed_logs_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'npm_host_usage', 'npm_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'snmp_usage', 'snmp_percentage', '*']
484
484
  if @api_client.config.client_side_validation && opts[:'sort_name'] && !allowable_values.include?(opts[:'sort_name'])
485
485
  fail ArgumentError, "invalid value for \"sort_name\", must be one of #{allowable_values}"
486
486
  end
@@ -783,7 +783,7 @@ module DatadogAPIClient::V1
783
783
  fail ArgumentError, "Missing the required parameter 'fields' when calling UsageMeteringAPI.get_usage_attribution"
784
784
  end
785
785
  # verify enum value
786
- allowable_values = ['custom_timeseries_usage', 'container_usage', 'snmp_percentage', 'apm_host_usage', 'browser_usage', 'npm_host_percentage', 'infra_host_usage', 'custom_timeseries_percentage', 'container_percentage', 'api_usage', 'apm_host_percentage', 'infra_host_percentage', 'snmp_usage', 'browser_percentage', 'api_percentage', 'npm_host_usage', 'lambda_functions_usage', 'lambda_functions_percentage', 'lambda_invocations_usage', 'lambda_invocations_percentage', 'fargate_usage', 'fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'dbm_hosts_usage', 'dbm_hosts_percentage', 'dbm_queries_usage', 'dbm_queries_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'appsec_usage', 'appsec_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', '*']
786
+ allowable_values = ['custom_timeseries_usage', 'container_usage', 'snmp_percentage', 'apm_host_usage', 'browser_usage', 'npm_host_percentage', 'infra_host_usage', 'custom_timeseries_percentage', 'container_percentage', 'api_usage', 'apm_host_percentage', 'infra_host_percentage', 'snmp_usage', 'browser_percentage', 'api_percentage', 'npm_host_usage', 'lambda_functions_usage', 'lambda_functions_percentage', 'lambda_invocations_usage', 'lambda_invocations_percentage', 'fargate_usage', 'fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'dbm_hosts_usage', 'dbm_hosts_percentage', 'dbm_queries_usage', 'dbm_queries_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'appsec_usage', 'appsec_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', '*']
787
787
  if @api_client.config.client_side_validation && !allowable_values.include?(fields)
788
788
  fail ArgumentError, "invalid value for \"fields\", must be one of #{allowable_values}"
789
789
  end
@@ -791,7 +791,7 @@ module DatadogAPIClient::V1
791
791
  if @api_client.config.client_side_validation && opts[:'sort_direction'] && !allowable_values.include?(opts[:'sort_direction'])
792
792
  fail ArgumentError, "invalid value for \"sort_direction\", must be one of #{allowable_values}"
793
793
  end
794
- allowable_values = ['api_percentage', 'snmp_usage', 'apm_host_usage', 'api_usage', 'appsec_usage', 'appsec_percentage', 'container_usage', 'custom_timeseries_percentage', 'container_percentage', 'apm_host_percentage', 'npm_host_percentage', 'browser_percentage', 'browser_usage', 'infra_host_percentage', 'snmp_percentage', 'npm_host_usage', 'infra_host_usage', 'custom_timeseries_usage', 'lambda_functions_usage', 'lambda_functions_percentage', 'lambda_invocations_usage', 'lambda_invocations_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'apm_fargate_usage', 'apm_fargate_percentage']
794
+ allowable_values = ['api_percentage', 'snmp_usage', 'apm_host_usage', 'api_usage', 'appsec_usage', 'appsec_percentage', 'container_usage', 'custom_timeseries_percentage', 'container_percentage', 'apm_host_percentage', 'npm_host_percentage', 'browser_percentage', 'browser_usage', 'infra_host_percentage', 'snmp_percentage', 'npm_host_usage', 'infra_host_usage', 'custom_timeseries_usage', 'lambda_functions_usage', 'lambda_functions_percentage', 'lambda_invocations_usage', 'lambda_invocations_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage']
795
795
  if @api_client.config.client_side_validation && opts[:'sort_name'] && !allowable_values.include?(opts[:'sort_name'])
796
796
  fail ArgumentError, "invalid value for \"sort_name\", must be one of #{allowable_values}"
797
797
  end