Skip to content

Commit 243ca14

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 8c9b068 of spec repo (DataDog#3327)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 571a174 commit 243ca14

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116514,12 +116514,22 @@ paths:
116514116514
/api/v2/metrics/{metric_name}/volumes:
116515116515
get:
116516116516
description: |-
116517-
View distinct metrics volumes for the given metric name.
116517+
View hourly average metric volumes for the given metric name over the look back period.
116518116518

116519116519
Custom metrics generated in-app from other products will return `null` for ingested volumes.
116520116520
operationId: ListVolumesByMetricName
116521116521
parameters:
116522116522
- $ref: "#/components/parameters/MetricName"
116523+
- description: |-
116524+
The number of seconds of look back (from now).
116525+
Default value is 3,600 (1 hour), maximum value is 2,592,000 (1 month).
116526+
example: 7200
116527+
in: query
116528+
name: window[seconds]
116529+
required: false
116530+
schema:
116531+
format: int64
116532+
type: integer
116523116533
responses:
116524116534
"200":
116525116535
content:

features/scenarios_model_mapping.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3247,6 +3247,7 @@
32473247
},
32483248
"v2.ListVolumesByMetricName" => {
32493249
"metric_name" => "String",
3250+
"window_seconds" => "Integer",
32503251
},
32513252
"v2.QueryScalarData" => {
32523253
"body" => "ScalarFormulaQueryRequest",

lib/datadog_api_client/v2/api/metrics_api.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,12 +879,13 @@ def list_volumes_by_metric_name(metric_name, opts = {})
879879

880880
# List distinct metric volumes by metric name.
881881
#
882-
# View distinct metrics volumes for the given metric name.
882+
# View hourly average metric volumes for the given metric name over the look back period.
883883
#
884884
# Custom metrics generated in-app from other products will return `null` for ingested volumes.
885885
#
886886
# @param metric_name [String] The name of the metric.
887887
# @param opts [Hash] the optional parameters
888+
# @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).
888889
# @return [Array<(MetricVolumesResponse, Integer, Hash)>] MetricVolumesResponse data, response status code and response headers
889890
def list_volumes_by_metric_name_with_http_info(metric_name, opts = {})
890891

@@ -900,6 +901,7 @@ def list_volumes_by_metric_name_with_http_info(metric_name, opts = {})
900901

901902
# query parameters
902903
query_params = opts[:query_params] || {}
904+
query_params[:'window[seconds]'] = opts[:'window_seconds'] if !opts[:'window_seconds'].nil?
903905

904906
# header parameters
905907
header_params = opts[:header_params] || {}

0 commit comments

Comments
 (0)