Skip to content

Commit 803a232

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 366b36ab of spec repo
1 parent ad00d51 commit 803a232

File tree

4 files changed

+31
-4
lines changed

4 files changed

+31
-4
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
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-01-17 14:24:06.552315",
8-
"spec_repo_commit": "60205e12"
7+
"regenerated": "2025-01-17 18:24:10.998449",
8+
"spec_repo_commit": "366b36ab"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-17 14:24:06.567593",
13-
"spec_repo_commit": "60205e12"
12+
"regenerated": "2025-01-17 18:24:11.013572",
13+
"spec_repo_commit": "366b36ab"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39523,6 +39523,14 @@ paths:
3952339523
required: false
3952439524
schema:
3952539525
type: string
39526+
- description: Filter metrics that are used in dashboards, monitors, notebooks,
39527+
or SLOs.
39528+
example: true
39529+
in: query
39530+
name: filter[related_assets]
39531+
required: false
39532+
schema:
39533+
type: boolean
3952639534
- description: 'The number of seconds of look back (from now) to apply to a
3952739535
filter[tag] or filter[queried] query.
3952839536

features/support/scenarios_model_mapping.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4644,6 +4644,10 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
46444644
"type": "string",
46454645
"format": "",
46464646
},
4647+
"filterRelatedAssets": {
4648+
"type": "boolean",
4649+
"format": "",
4650+
},
46474651
"windowSeconds": {
46484652
"type": "number",
46494653
"format": "int64",

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

Lines changed: 15 additions & 0 deletions
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]",
@@ -1828,6 +1836,11 @@ export interface MetricsApiListTagConfigurationsRequest {
18281836
* @type string
18291837
*/
18301838
filterTags?: string;
1839+
/**
1840+
* Filter metrics that are used in dashboards, monitors, notebooks, or 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)