Skip to content

Commit a9a1a2b

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update api/v2/metrics query param description (DataDog#3112)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent a3bee96 commit a9a1a2b

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91504,8 +91504,8 @@ paths:
9150491504

9150591505
If `filter[queried]` is not provided, sending this parameter returns a 400.
9150691506

91507-
For example: `GET /api/v2/metrics?filter[queried]=true&filter[queried][window][seconds]=7776000`.'
91508-
example: 7776000
91507+
For example: `GET /api/v2/metrics?filter[queried]=true&filter[queried][window][seconds]=15552000`.'
91508+
example: 15552000
9150991509
in: query
9151091510
name: filter[queried][window][seconds]
9151191511
required: false
@@ -91533,7 +91533,7 @@ paths:
9153391533
schema:
9153491534
type: boolean
9153591535
- description: 'The number of seconds of look back (from now) to apply to a
91536-
filter[tag] or filter[queried] query.
91536+
filter[tag] query.
9153791537

9153891538
Default value is 3600 (1 hour), maximum value is 5,184,000 (60 days).'
9153991539
example: 3600

lib/datadog_api_client/v2/api/metrics_api.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,10 +678,10 @@ def list_tag_configurations(opts = {})
678678
# @option opts [MetricTagConfigurationMetricTypeCategory] :filter_metric_type Filter metrics by metric type.
679679
# @option opts [Boolean] :filter_include_percentiles Filter distributions with additional percentile aggregations enabled or disabled.
680680
# @option opts [Boolean] :filter_queried (Preview) Filter custom metrics that have or have not been queried in the specified window[seconds]. If no window is provided or the window is less than 2 hours, a default of 2 hours will be applied.
681-
# @option opts [Integer] :filter_queried_window_seconds The number of seconds of look back (from now) used by the `filter[queried]` filter logic. Must be sent with `filter[queried]` and is only applied when `filter[queried]=true`. If `filter[queried]=false`, this parameter is ignored and default queried-window behavior applies. If `filter[queried]` is not provided, sending this parameter returns a 400. For example: `GET /api/v2/metrics?filter[queried]=true&filter[queried][window][seconds]=7776000`.
681+
# @option opts [Integer] :filter_queried_window_seconds The number of seconds of look back (from now) used by the `filter[queried]` filter logic. Must be sent with `filter[queried]` and is only applied when `filter[queried]=true`. If `filter[queried]=false`, this parameter is ignored and default queried-window behavior applies. If `filter[queried]` is not provided, sending this parameter returns a 400. For example: `GET /api/v2/metrics?filter[queried]=true&filter[queried][window][seconds]=15552000`.
682682
# @option opts [String] :filter_tags Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions. Can only be combined with the filter[queried] filter.
683683
# @option opts [Boolean] :filter_related_assets (Preview) Filter metrics that are used in dashboards, monitors, notebooks, SLOs.
684-
# @option opts [Integer] :window_seconds The number of seconds of look back (from now) to apply to a filter[tag] or filter[queried] query. Default value is 3600 (1 hour), maximum value is 5,184,000 (60 days).
684+
# @option opts [Integer] :window_seconds The number of seconds of look back (from now) to apply to a filter[tag] query. Default value is 3600 (1 hour), maximum value is 5,184,000 (60 days).
685685
# @option opts [Integer] :page_size Maximum number of results returned.
686686
# @option opts [String] :page_cursor String to query the next page of results. This key is provided with each valid response from the API in `meta.pagination.next_cursor`. Once the `meta.pagination.next_cursor` key is null, all pages have been retrieved.
687687
# @return [Array<(MetricsAndMetricTagConfigurationsResponse, Integer, Hash)>] MetricsAndMetricTagConfigurationsResponse data, response status code and response headers

0 commit comments

Comments
 (0)