Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions features/scenarios_model_mapping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3231,6 +3231,7 @@
},
"v2.ListVolumesByMetricName" => {
"metric_name" => "String",
"window_seconds" => "Integer",
},
"v2.QueryScalarData" => {
"body" => "ScalarFormulaQueryRequest",
Expand Down
4 changes: 3 additions & 1 deletion lib/datadog_api_client/v2/api/metrics_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {})

Expand All @@ -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] || {}
Expand Down
Loading