Skip to content

Commit 6382e8d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Regenerate client from commit b89b292b of spec repo (#2009)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 47787cf commit 6382e8d

File tree

4 files changed

+33
-6
lines changed

4 files changed

+33
-6
lines changed

.apigentools-info

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-02-06 14:57:03.417529",
8-
"spec_repo_commit": "3c39fb0c"
7+
"regenerated": "2025-02-06 17:59:38.553956",
8+
"spec_repo_commit": "b89b292b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-02-06 14:57:03.432901",
13-
"spec_repo_commit": "3c39fb0c"
12+
"regenerated": "2025-02-06 17:59:38.570636",
13+
"spec_repo_commit": "b89b292b"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+9-1
Original file line numberDiff line numberDiff line change
@@ -40196,7 +40196,7 @@ paths:
4019640196
required: false
4019740197
schema:
4019840198
type: boolean
40199-
- description: '(Beta) Filter custom metrics that have or have not been queried
40199+
- description: '(Preview) Filter custom metrics that have or have not been queried
4020040200
in the specified window[seconds].
4020140201

4020240202
If no window is provided or the window is less than 2 hours, a default of
@@ -40217,6 +40217,14 @@ paths:
4021740217
required: false
4021840218
schema:
4021940219
type: string
40220+
- description: (Preview) Filter metrics that are used in dashboards, monitors,
40221+
notebooks, SLOs.
40222+
example: true
40223+
in: query
40224+
name: filter[related_assets]
40225+
required: false
40226+
schema:
40227+
type: boolean
4022040228
- description: 'The number of seconds of look back (from now) to apply to a
4022140229
filter[tag] or filter[queried] query.
4022240230

features/support/scenarios_model_mapping.ts

+4
Original file line numberDiff line numberDiff line change
@@ -4683,6 +4683,10 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
46834683
"type": "string",
46844684
"format": "",
46854685
},
4686+
"filterRelatedAssets": {
4687+
"type": "boolean",
4688+
"format": "",
4689+
},
46864690
"windowSeconds": {
46874691
"type": "number",
46884692
"format": "int64",

packages/datadog-api-client-v2/apis/MetricsApi.ts

+16-1
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ export class MetricsApiRequestFactory extends BaseAPIRequestFactory {
403403
filterIncludePercentiles?: boolean,
404404
filterQueried?: boolean,
405405
filterTags?: string,
406+
filterRelatedAssets?: boolean,
406407
windowSeconds?: number,
407408
pageSize?: number,
408409
pageCursor?: string,
@@ -467,6 +468,13 @@ export class MetricsApiRequestFactory extends BaseAPIRequestFactory {
467468
""
468469
);
469470
}
471+
if (filterRelatedAssets !== undefined) {
472+
requestContext.setQueryParam(
473+
"filter[related_assets]",
474+
ObjectSerializer.serialize(filterRelatedAssets, "boolean", ""),
475+
""
476+
);
477+
}
470478
if (windowSeconds !== undefined) {
471479
requestContext.setQueryParam(
472480
"window[seconds]",
@@ -1817,7 +1825,7 @@ export interface MetricsApiListTagConfigurationsRequest {
18171825
*/
18181826
filterIncludePercentiles?: boolean;
18191827
/**
1820-
* (Beta) Filter custom metrics that have or have not been queried in the specified window[seconds].
1828+
* (Preview) Filter custom metrics that have or have not been queried in the specified window[seconds].
18211829
* If no window is provided or the window is less than 2 hours, a default of 2 hours will be applied.
18221830
* @type boolean
18231831
*/
@@ -1828,6 +1836,11 @@ export interface MetricsApiListTagConfigurationsRequest {
18281836
* @type string
18291837
*/
18301838
filterTags?: string;
1839+
/**
1840+
* (Preview) Filter metrics that are used in dashboards, monitors, notebooks, SLOs.
1841+
* @type boolean
1842+
*/
1843+
filterRelatedAssets?: boolean;
18311844
/**
18321845
* The number of seconds of look back (from now) to apply to a filter[tag] or filter[queried] query.
18331846
* Default value is 3600 (1 hour), maximum value is 2,592,000 (30 days).
@@ -2138,6 +2151,7 @@ export class MetricsApi {
21382151
param.filterIncludePercentiles,
21392152
param.filterQueried,
21402153
param.filterTags,
2154+
param.filterRelatedAssets,
21412155
param.windowSeconds,
21422156
param.pageSize,
21432157
param.pageCursor,
@@ -2172,6 +2186,7 @@ export class MetricsApi {
21722186
param.filterIncludePercentiles,
21732187
param.filterQueried,
21742188
param.filterTags,
2189+
param.filterRelatedAssets,
21752190
param.windowSeconds,
21762191
param.pageSize,
21772192
param.pageCursor,

0 commit comments

Comments
 (0)