Skip to content

Commit 5c5e892

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
add url attribute to metrics assets v2 api (#1770)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 7633843 commit 5c5e892

File tree

8 files changed

+35
-12
lines changed

8 files changed

+35
-12
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": "2024-08-21 15:16:50.034761",
8-
"spec_repo_commit": "4470dfc1"
7+
"regenerated": "2024-08-21 16:52:41.809373",
8+
"spec_repo_commit": "ffed3856"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-08-21 15:16:50.059208",
13-
"spec_repo_commit": "4470dfc1"
12+
"regenerated": "2024-08-21 16:52:41.835691",
13+
"spec_repo_commit": "ffed3856"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12649,11 +12649,14 @@ components:
1264912649
readOnly: true
1265012650
type: object
1265112651
MetricAssetAttributes:
12652-
description: Assets where only included attribute is its title
12652+
description: Assets related to the object, including title and url.
1265312653
properties:
1265412654
title:
1265512655
description: Title of the asset.
1265612656
type: string
12657+
url:
12658+
description: URL path of the asset.
12659+
type: string
1265712660
type: object
1265812661
MetricAssetDashboardRelationship:
1265912662
description: An object of type `dashboard` that can be referenced in the `included`
@@ -13033,7 +13036,8 @@ components:
1303313036
- type
1303413037
type: object
1303513038
MetricDashboardAttributes:
13036-
description: Attributes related to the dashboard, including title and popularity.
13039+
description: Attributes related to the dashboard, including title, popularity,
13040+
and url.
1303713041
properties:
1303813042
popularity:
1303913043
description: Value from 0 to 5 that ranks popularity of the dashboard.
@@ -13044,6 +13048,9 @@ components:
1304413048
title:
1304513049
description: Title of the asset.
1304613050
type: string
13051+
url:
13052+
description: URL path of the asset.
13053+
type: string
1304713054
type: object
1304813055
MetricDashboardID:
1304913056
description: The related dashboard's ID.

packages/datadog-api-client-v2/models/MetricAssetAttributes.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@
77
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
88

99
/**
10-
* Assets where only included attribute is its title
10+
* Assets related to the object, including title and url.
1111
*/
1212
export class MetricAssetAttributes {
1313
/**
1414
* Title of the asset.
1515
*/
1616
"title"?: string;
17+
/**
18+
* URL path of the asset.
19+
*/
20+
"url"?: string;
1721

1822
/**
1923
* A container for additional, undeclared properties.
@@ -35,6 +39,10 @@ export class MetricAssetAttributes {
3539
baseName: "title",
3640
type: "string",
3741
},
42+
url: {
43+
baseName: "url",
44+
type: "string",
45+
},
3846
additionalProperties: {
3947
baseName: "additionalProperties",
4048
type: "any",

packages/datadog-api-client-v2/models/MetricDashboardAsset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1313
*/
1414
export class MetricDashboardAsset {
1515
/**
16-
* Attributes related to the dashboard, including title and popularity.
16+
* Attributes related to the dashboard, including title, popularity, and url.
1717
*/
1818
"attributes"?: MetricDashboardAttributes;
1919
/**

packages/datadog-api-client-v2/models/MetricDashboardAttributes.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
88

99
/**
10-
* Attributes related to the dashboard, including title and popularity.
10+
* Attributes related to the dashboard, including title, popularity, and url.
1111
*/
1212
export class MetricDashboardAttributes {
1313
/**
@@ -18,6 +18,10 @@ export class MetricDashboardAttributes {
1818
* Title of the asset.
1919
*/
2020
"title"?: string;
21+
/**
22+
* URL path of the asset.
23+
*/
24+
"url"?: string;
2125

2226
/**
2327
* A container for additional, undeclared properties.
@@ -44,6 +48,10 @@ export class MetricDashboardAttributes {
4448
baseName: "title",
4549
type: "string",
4650
},
51+
url: {
52+
baseName: "url",
53+
type: "string",
54+
},
4755
additionalProperties: {
4856
baseName: "additionalProperties",
4957
type: "any",

packages/datadog-api-client-v2/models/MetricMonitorAsset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1313
*/
1414
export class MetricMonitorAsset {
1515
/**
16-
* Assets where only included attribute is its title
16+
* Assets related to the object, including title and url.
1717
*/
1818
"attributes"?: MetricAssetAttributes;
1919
/**

packages/datadog-api-client-v2/models/MetricNotebookAsset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1313
*/
1414
export class MetricNotebookAsset {
1515
/**
16-
* Assets where only included attribute is its title
16+
* Assets related to the object, including title and url.
1717
*/
1818
"attributes"?: MetricAssetAttributes;
1919
/**

packages/datadog-api-client-v2/models/MetricSLOAsset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1313
*/
1414
export class MetricSLOAsset {
1515
/**
16-
* Assets where only included attribute is its title
16+
* Assets related to the object, including title and url.
1717
*/
1818
"attributes"?: MetricAssetAttributes;
1919
/**

0 commit comments

Comments
 (0)