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
14 changes: 9 additions & 5 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79277,11 +79277,15 @@ components:
enum:
- non_distribution
- distribution
- exponential_histogram
- explicit_histogram
example: distribution
type: string
x-enum-varnames:
- NON_DISTRIBUTION
- DISTRIBUTION
- EXPONENTIAL_HISTOGRAM
- EXPLICIT_HISTOGRAM
MetricTagConfigurationMetricTypes:
default: gauge
description: The metric's type.
Expand Down Expand Up @@ -199125,7 +199129,7 @@ paths:
schema:
type: boolean
- description: |-
This parameter has no effect unless `filter[queried]` is also set. Only return metrics that have been queried or not queried in the specified window. The default value is 2,592,000 seconds (30 days), the maximum value is 15,552,000 seconds (180 days), and the minimum value is 1 second. For example: `filter[queried]=true&filter[queried][window][seconds]=604800`.
The look-back window for `filter[queried]`, in seconds. You must also set `filter[queried]`, or the request returns a 400 error. The default value is 2,592,000 seconds (30 days), the maximum value is 15,552,000 seconds (180 days), and the minimum value is 0. With `0`, the window ends now, so `filter[queried]=true` returns almost no metrics and `filter[queried]=false` returns all metrics. For example: `filter[queried]=true&filter[queried][window][seconds]=604800`.
example: 15552000
in: query
name: filter[queried][window][seconds]
Expand All @@ -199134,7 +199138,7 @@ paths:
default: 2592000
format: int64
maximum: 15552000
minimum: 1
minimum: 0
type: integer
- description: |-
Only return metrics that were submitted with tags matching this expression. You can use AND, OR, IN, and wildcards. For example: `filter[tags]=env IN (staging,test) AND service:web*`.
Expand Down Expand Up @@ -199167,16 +199171,16 @@ paths:
schema:
type: string
- description: |-
Only return metrics that have been actively reporting in the specified window. The default value is 3600 seconds (1 hour), the maximum value is 2,592,000 seconds (30 days), and the minimum value is 1 second.
Only return metrics that have been actively reporting in this window. The default value is 3,600 seconds (1 hour), the maximum value is 5,184,000 seconds (60 days), and the minimum value is 0. With `0`, the API returns only metrics that reported in the last few minutes.
example: 3600
in: query
name: window[seconds]
required: false
schema:
default: 3600
format: int64
maximum: 2592000
minimum: 1
maximum: 5184000
minimum: 0
type: integer
- description: |-
Maximum number of results per page. Send `page[size]` on the first request to opt in to pagination. On each subsequent request, send `page[cursor]` set to the value of `meta.pagination.next_cursor` from the previous response. The default value is 10000, the maximum value is 10000, and the minimum value is 1.
Expand Down
4 changes: 2 additions & 2 deletions services/metrics/src/v2/MetricsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4479,7 +4479,7 @@ export interface MetricsApiListTagConfigurationsRequest {
*/
filterQueried?: boolean;
/**
* This parameter has no effect unless `filter[queried]` is also set. Only return metrics that have been queried or not queried in the specified window. The default value is 2,592,000 seconds (30 days), the maximum value is 15,552,000 seconds (180 days), and the minimum value is 1 second. For example: `filter[queried]=true&filter[queried][window][seconds]=604800`.
* The look-back window for `filter[queried]`, in seconds. You must also set `filter[queried]`, or the request returns a 400 error. The default value is 2,592,000 seconds (30 days), the maximum value is 15,552,000 seconds (180 days), and the minimum value is 0. With `0`, the window ends now, so `filter[queried]=true` returns almost no metrics and `filter[queried]=false` returns all metrics. For example: `filter[queried]=true&filter[queried][window][seconds]=604800`.
* @type number
*/
filterQueriedWindowSeconds?: number;
Expand All @@ -4504,7 +4504,7 @@ export interface MetricsApiListTagConfigurationsRequest {
*/
sort?: string;
/**
* Only return metrics that have been actively reporting in the specified window. The default value is 3600 seconds (1 hour), the maximum value is 2,592,000 seconds (30 days), and the minimum value is 1 second.
* Only return metrics that have been actively reporting in this window. The default value is 3,600 seconds (1 hour), the maximum value is 5,184,000 seconds (60 days), and the minimum value is 0. With `0`, the API returns only metrics that reported in the last few minutes.
* @type number
*/
windowSeconds?: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ import { UnparsedObject } from "@datadog/datadog-api-client";
export type MetricTagConfigurationMetricTypeCategory =
| typeof NON_DISTRIBUTION
| typeof DISTRIBUTION
| typeof EXPONENTIAL_HISTOGRAM
| typeof EXPLICIT_HISTOGRAM
| UnparsedObject;
export const NON_DISTRIBUTION = "non_distribution";
export const DISTRIBUTION = "distribution";
export const EXPONENTIAL_HISTOGRAM = "exponential_histogram";
export const EXPLICIT_HISTOGRAM = "explicit_histogram";
2 changes: 2 additions & 0 deletions services/metrics/src/v2/models/TypingInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ export const TypingInfo: ModelTypingInfo = {
MetricTagConfigurationMetricTypeCategory: [
"non_distribution",
"distribution",
"exponential_histogram",
"explicit_histogram",
],
MetricTagConfigurationMetricTypes: [
"gauge",
Expand Down
Loading