Skip to content

Commit

Permalink
Regenerate client from commit b89b292b of spec repo (#2009)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <[email protected]>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Feb 6, 2025
1 parent 47787cf commit 6382e8d
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-02-06 14:57:03.417529",
"spec_repo_commit": "3c39fb0c"
"regenerated": "2025-02-06 17:59:38.553956",
"spec_repo_commit": "b89b292b"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-02-06 14:57:03.432901",
"spec_repo_commit": "3c39fb0c"
"regenerated": "2025-02-06 17:59:38.570636",
"spec_repo_commit": "b89b292b"
}
}
}
10 changes: 9 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40196,7 +40196,7 @@ paths:
required: false
schema:
type: boolean
- description: '(Beta) Filter custom metrics that have or have not been queried
- description: '(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
Expand All @@ -40217,6 +40217,14 @@ paths:
required: false
schema:
type: string
- description: (Preview) Filter metrics that are used in dashboards, monitors,
notebooks, SLOs.
example: true
in: query
name: filter[related_assets]
required: false
schema:
type: boolean
- description: 'The number of seconds of look back (from now) to apply to a
filter[tag] or filter[queried] query.

Expand Down
4 changes: 4 additions & 0 deletions features/support/scenarios_model_mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4683,6 +4683,10 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
"type": "string",
"format": "",
},
"filterRelatedAssets": {
"type": "boolean",
"format": "",
},
"windowSeconds": {
"type": "number",
"format": "int64",
Expand Down
17 changes: 16 additions & 1 deletion packages/datadog-api-client-v2/apis/MetricsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ export class MetricsApiRequestFactory extends BaseAPIRequestFactory {
filterIncludePercentiles?: boolean,
filterQueried?: boolean,
filterTags?: string,
filterRelatedAssets?: boolean,
windowSeconds?: number,
pageSize?: number,
pageCursor?: string,
Expand Down Expand Up @@ -467,6 +468,13 @@ export class MetricsApiRequestFactory extends BaseAPIRequestFactory {
""
);
}
if (filterRelatedAssets !== undefined) {
requestContext.setQueryParam(
"filter[related_assets]",
ObjectSerializer.serialize(filterRelatedAssets, "boolean", ""),
""
);
}
if (windowSeconds !== undefined) {
requestContext.setQueryParam(
"window[seconds]",
Expand Down Expand Up @@ -1817,7 +1825,7 @@ export interface MetricsApiListTagConfigurationsRequest {
*/
filterIncludePercentiles?: boolean;
/**
* (Beta) Filter custom metrics that have or have not been queried in the specified window[seconds].
* (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.
* @type boolean
*/
Expand All @@ -1828,6 +1836,11 @@ export interface MetricsApiListTagConfigurationsRequest {
* @type string
*/
filterTags?: string;
/**
* (Preview) Filter metrics that are used in dashboards, monitors, notebooks, SLOs.
* @type boolean
*/
filterRelatedAssets?: boolean;
/**
* 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 2,592,000 (30 days).
Expand Down Expand Up @@ -2138,6 +2151,7 @@ export class MetricsApi {
param.filterIncludePercentiles,
param.filterQueried,
param.filterTags,
param.filterRelatedAssets,
param.windowSeconds,
param.pageSize,
param.pageCursor,
Expand Down Expand Up @@ -2172,6 +2186,7 @@ export class MetricsApi {
param.filterIncludePercentiles,
param.filterQueried,
param.filterTags,
param.filterRelatedAssets,
param.windowSeconds,
param.pageSize,
param.pageCursor,
Expand Down

0 comments on commit 6382e8d

Please sign in to comment.