From 84cad80b0dcae2bfeb3c67bc02f9fd231b3d0bd2 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 13 May 2026 20:23:12 +0000 Subject: [PATCH] Regenerate client from commit 8c9b068 of spec repo --- .generator/schemas/v2/openapi.yaml | 12 +++++++++++- features/scenarios_model_mapping.rb | 1 + lib/datadog_api_client/v2/api/metrics_api.rb | 4 +++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index db3332717dac..1eb8e5c4b48d 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -116096,12 +116096,22 @@ paths: /api/v2/metrics/{metric_name}/volumes: get: description: |- - View distinct metrics volumes for the given metric name. + View hourly average metric volumes for the given metric name over the look back period. Custom metrics generated in-app from other products will return `null` for ingested volumes. operationId: ListVolumesByMetricName parameters: - $ref: "#/components/parameters/MetricName" + - description: |- + The number of seconds of look back (from now). + Default value is 3,600 (1 hour), maximum value is 2,592,000 (1 month). + example: 7200 + in: query + name: window[seconds] + required: false + schema: + format: int64 + type: integer responses: "200": content: diff --git a/features/scenarios_model_mapping.rb b/features/scenarios_model_mapping.rb index 4f6619e89ece..ff166323dabf 100644 --- a/features/scenarios_model_mapping.rb +++ b/features/scenarios_model_mapping.rb @@ -3231,6 +3231,7 @@ }, "v2.ListVolumesByMetricName" => { "metric_name" => "String", + "window_seconds" => "Integer", }, "v2.QueryScalarData" => { "body" => "ScalarFormulaQueryRequest", diff --git a/lib/datadog_api_client/v2/api/metrics_api.rb b/lib/datadog_api_client/v2/api/metrics_api.rb index f77368485a7d..d9cda9def75a 100644 --- a/lib/datadog_api_client/v2/api/metrics_api.rb +++ b/lib/datadog_api_client/v2/api/metrics_api.rb @@ -879,12 +879,13 @@ def list_volumes_by_metric_name(metric_name, opts = {}) # List distinct metric volumes by metric name. # - # View distinct metrics volumes for the given metric name. + # View hourly average metric volumes for the given metric name over the look back period. # # Custom metrics generated in-app from other products will return `null` for ingested volumes. # # @param metric_name [String] The name of the metric. # @param opts [Hash] the optional parameters + # @option opts [Integer] :window_seconds The number of seconds of look back (from now). Default value is 3,600 (1 hour), maximum value is 2,592,000 (1 month). # @return [Array<(MetricVolumesResponse, Integer, Hash)>] MetricVolumesResponse data, response status code and response headers def list_volumes_by_metric_name_with_http_info(metric_name, opts = {}) @@ -900,6 +901,7 @@ def list_volumes_by_metric_name_with_http_info(metric_name, opts = {}) # query parameters query_params = opts[:query_params] || {} + query_params[:'window[seconds]'] = opts[:'window_seconds'] if !opts[:'window_seconds'].nil? # header parameters header_params = opts[:header_params] || {}