Skip to content

Commit

Permalink
Regenerate client from commit 1bd6fc38 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Feb 4, 2025
1 parent 19ba8f1 commit 1d3a59a
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 4 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-04 14:09:59.993284",
"spec_repo_commit": "4fb9047a"
"regenerated": "2025-02-04 17:06:38.421538",
"spec_repo_commit": "1bd6fc38"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-02-04 14:10:00.009911",
"spec_repo_commit": "4fb9047a"
"regenerated": "2025-02-04 17:06:38.436827",
"spec_repo_commit": "1bd6fc38"
}
}
}
8 changes: 8 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40218,6 +40218,14 @@ paths:
required: false
schema:
type: string
- description: 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
15 changes: 15 additions & 0 deletions 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 @@ -1828,6 +1836,11 @@ export interface MetricsApiListTagConfigurationsRequest {
* @type string
*/
filterTags?: string;
/**
* 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 1d3a59a

Please sign in to comment.