Skip to content

Commit 0dc4895

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 5451f4f of spec repo
1 parent 1227b58 commit 0dc4895

9 files changed

Lines changed: 330 additions & 0 deletions

File tree

.generator/schemas/v1/openapi.yaml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23742,6 +23742,7 @@ components:
2374223742
- $ref: "#/components/schemas/ToplistWidgetDefinition"
2374323743
- $ref: "#/components/schemas/TopologyMapWidgetDefinition"
2374423744
- $ref: "#/components/schemas/TreeMapWidgetDefinition"
23745+
- $ref: "#/components/schemas/WildcardWidgetDefinition"
2374523746
WidgetDisplayType:
2374623747
description: Type of display to use for the request.
2374723748
enum:
@@ -24513,6 +24514,81 @@ components:
2451324514
x-enum-varnames:
2451424515
- TIMESERIES
2451524516
- TOPLIST
24517+
WildcardWidgetDefinition:
24518+
description: >-
24519+
Custom visualization widget using Vega or Vega-Lite specifications. Combines standard Datadog data requests with a Vega or Vega-Lite JSON specification for flexible, custom visualizations.
24520+
properties:
24521+
custom_links:
24522+
description: List of custom links.
24523+
items:
24524+
$ref: "#/components/schemas/WidgetCustomLink"
24525+
type: array
24526+
requests:
24527+
description: List of data requests for the wildcard widget.
24528+
example: [{"formulas": ["formula": "query1"], "queries": [{"aggregator": "avg", "data_source": "metrics", "name": "query1", "query": "avg:system.cpu.user{*} by {env}"}], "response_format": "scalar"}]
24529+
items:
24530+
$ref: "#/components/schemas/WildcardWidgetRequest"
24531+
type: array
24532+
specification:
24533+
$ref: "#/components/schemas/WildcardWidgetSpecification"
24534+
time:
24535+
$ref: "#/components/schemas/WidgetTime"
24536+
title:
24537+
description: Title of the widget.
24538+
type: string
24539+
title_align:
24540+
$ref: "#/components/schemas/WidgetTextAlign"
24541+
title_size:
24542+
description: Size of the title.
24543+
type: string
24544+
type:
24545+
$ref: "#/components/schemas/WildcardWidgetDefinitionType"
24546+
required:
24547+
- type
24548+
- requests
24549+
- specification
24550+
type: object
24551+
WildcardWidgetDefinitionType:
24552+
default: wildcard
24553+
description: Type of the wildcard widget.
24554+
enum:
24555+
- wildcard
24556+
example: wildcard
24557+
type: string
24558+
x-enum-varnames:
24559+
- WILDCARD
24560+
WildcardWidgetRequest:
24561+
description: >-
24562+
Request object for the wildcard widget. Each variant represents a distinct data-fetching pattern: scalar formulas, timeseries formulas, list streams, and histograms.
24563+
oneOf:
24564+
- $ref: "#/components/schemas/TreeMapWidgetRequest"
24565+
- $ref: "#/components/schemas/TimeseriesWidgetRequest"
24566+
- $ref: "#/components/schemas/ListStreamWidgetRequest"
24567+
- $ref: "#/components/schemas/DistributionWidgetRequest"
24568+
WildcardWidgetSpecification:
24569+
description: >-
24570+
Vega or Vega-Lite specification for custom visualization rendering. See https://vega.github.io/vega-lite/ for the full grammar reference.
24571+
properties:
24572+
contents:
24573+
description: The Vega or Vega-Lite JSON specification object.
24574+
example: {"$schema": "https://vega.github.io/schema/vega-lite/v5.json", "data": {"name": "table1"}, "description": "A simple bar chart", "encoding": {"x": {"field": "env", "sort": "-y", "type": "nominal"}, "y": {"field": "query1", "type": "quantitative"}}, "mark": "bar"}
24575+
type: object
24576+
type:
24577+
$ref: "#/components/schemas/WildcardWidgetSpecificationType"
24578+
required:
24579+
- type
24580+
- contents
24581+
type: object
24582+
WildcardWidgetSpecificationType:
24583+
description: Type of specification used by the wildcard widget.
24584+
enum:
24585+
- vega
24586+
- vega-lite
24587+
example: vega-lite
24588+
type: string
24589+
x-enum-varnames:
24590+
- VEGA
24591+
- VEGA_LITE
2451624592
securitySchemes:
2451724593
AuthZ:
2451824594
description: This API uses OAuth 2 with the implicit grant flow.

packages/datadog-api-client-v1/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,5 +1326,10 @@ export { WidgetTimeWindows } from "./models/WidgetTimeWindows";
13261326
export { WidgetVerticalAlign } from "./models/WidgetVerticalAlign";
13271327
export { WidgetViewMode } from "./models/WidgetViewMode";
13281328
export { WidgetVizType } from "./models/WidgetVizType";
1329+
export { WildcardWidgetDefinition } from "./models/WildcardWidgetDefinition";
1330+
export { WildcardWidgetDefinitionType } from "./models/WildcardWidgetDefinitionType";
1331+
export { WildcardWidgetRequest } from "./models/WildcardWidgetRequest";
1332+
export { WildcardWidgetSpecification } from "./models/WildcardWidgetSpecification";
1333+
export { WildcardWidgetSpecificationType } from "./models/WildcardWidgetSpecificationType";
13291334

13301335
export { ObjectSerializer } from "./models/ObjectSerializer";

packages/datadog-api-client-v1/models/ObjectSerializer.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,8 @@ import { WidgetNumberFormat } from "./WidgetNumberFormat";
675675
import { WidgetRequestStyle } from "./WidgetRequestStyle";
676676
import { WidgetSortBy } from "./WidgetSortBy";
677677
import { WidgetStyle } from "./WidgetStyle";
678+
import { WildcardWidgetDefinition } from "./WildcardWidgetDefinition";
679+
import { WildcardWidgetSpecification } from "./WildcardWidgetSpecification";
678680
import {
679681
dateFromRFC3339String,
680682
dateToRFC3339String,
@@ -1813,6 +1815,8 @@ const enumsMap: { [key: string]: any[] } = {
18131815
WidgetVerticalAlign: ["center", "top", "bottom"],
18141816
WidgetViewMode: ["overall", "component", "both"],
18151817
WidgetVizType: ["timeseries", "toplist"],
1818+
WildcardWidgetDefinitionType: ["wildcard"],
1819+
WildcardWidgetSpecificationType: ["vega", "vega-lite"],
18161820
};
18171821

18181822
const typeMap: { [index: string]: any } = {
@@ -2552,6 +2556,8 @@ const typeMap: { [index: string]: any } = {
25522556
WidgetRequestStyle: WidgetRequestStyle,
25532557
WidgetSortBy: WidgetSortBy,
25542558
WidgetStyle: WidgetStyle,
2559+
WildcardWidgetDefinition: WildcardWidgetDefinition,
2560+
WildcardWidgetSpecification: WildcardWidgetSpecification,
25552561
};
25562562

25572563
const oneOfMap: { [index: string]: string[] } = {
@@ -2745,13 +2751,20 @@ const oneOfMap: { [index: string]: string[] } = {
27452751
"ToplistWidgetDefinition",
27462752
"TopologyMapWidgetDefinition",
27472753
"TreeMapWidgetDefinition",
2754+
"WildcardWidgetDefinition",
27482755
],
27492756
WidgetSortOrderBy: ["WidgetFormulaSort", "WidgetGroupSort"],
27502757
WidgetTime: [
27512758
"WidgetLegacyLiveSpan",
27522759
"WidgetNewLiveSpan",
27532760
"WidgetNewFixedSpan",
27542761
],
2762+
WildcardWidgetRequest: [
2763+
"TreeMapWidgetRequest",
2764+
"TimeseriesWidgetRequest",
2765+
"ListStreamWidgetRequest",
2766+
"DistributionWidgetRequest",
2767+
],
27552768
};
27562769

27572770
export class ObjectSerializer {

packages/datadog-api-client-v1/models/WidgetDefinition.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import { TimeseriesWidgetDefinition } from "./TimeseriesWidgetDefinition";
3838
import { ToplistWidgetDefinition } from "./ToplistWidgetDefinition";
3939
import { TopologyMapWidgetDefinition } from "./TopologyMapWidgetDefinition";
4040
import { TreeMapWidgetDefinition } from "./TreeMapWidgetDefinition";
41+
import { WildcardWidgetDefinition } from "./WildcardWidgetDefinition";
4142

4243
import { UnparsedObject } from "../../datadog-api-client-common/util";
4344

@@ -81,4 +82,5 @@ export type WidgetDefinition =
8182
| ToplistWidgetDefinition
8283
| TopologyMapWidgetDefinition
8384
| TreeMapWidgetDefinition
85+
| WildcardWidgetDefinition
8486
| UnparsedObject;
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
/**
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2020-Present Datadog, Inc.
5+
*/
6+
import { WidgetCustomLink } from "./WidgetCustomLink";
7+
import { WidgetTextAlign } from "./WidgetTextAlign";
8+
import { WidgetTime } from "./WidgetTime";
9+
import { WildcardWidgetDefinitionType } from "./WildcardWidgetDefinitionType";
10+
import { WildcardWidgetRequest } from "./WildcardWidgetRequest";
11+
import { WildcardWidgetSpecification } from "./WildcardWidgetSpecification";
12+
13+
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
14+
15+
/**
16+
* Custom visualization widget using Vega or Vega-Lite specifications. Combines standard Datadog data requests with a Vega or Vega-Lite JSON specification for flexible, custom visualizations.
17+
*/
18+
export class WildcardWidgetDefinition {
19+
/**
20+
* List of custom links.
21+
*/
22+
"customLinks"?: Array<WidgetCustomLink>;
23+
/**
24+
* List of data requests for the wildcard widget.
25+
*/
26+
"requests": Array<WildcardWidgetRequest>;
27+
/**
28+
* Vega or Vega-Lite specification for custom visualization rendering. See https://vega.github.io/vega-lite/ for the full grammar reference.
29+
*/
30+
"specification": WildcardWidgetSpecification;
31+
/**
32+
* Time setting for the widget.
33+
*/
34+
"time"?: WidgetTime;
35+
/**
36+
* Title of the widget.
37+
*/
38+
"title"?: string;
39+
/**
40+
* How to align the text on the widget.
41+
*/
42+
"titleAlign"?: WidgetTextAlign;
43+
/**
44+
* Size of the title.
45+
*/
46+
"titleSize"?: string;
47+
/**
48+
* Type of the wildcard widget.
49+
*/
50+
"type": WildcardWidgetDefinitionType;
51+
52+
/**
53+
* A container for additional, undeclared properties.
54+
* This is a holder for any undeclared properties as specified with
55+
* the 'additionalProperties' keyword in the OAS document.
56+
*/
57+
"additionalProperties"?: { [key: string]: any };
58+
59+
/**
60+
* @ignore
61+
*/
62+
"_unparsed"?: boolean;
63+
64+
/**
65+
* @ignore
66+
*/
67+
static readonly attributeTypeMap: AttributeTypeMap = {
68+
customLinks: {
69+
baseName: "custom_links",
70+
type: "Array<WidgetCustomLink>",
71+
},
72+
requests: {
73+
baseName: "requests",
74+
type: "Array<WildcardWidgetRequest>",
75+
required: true,
76+
},
77+
specification: {
78+
baseName: "specification",
79+
type: "WildcardWidgetSpecification",
80+
required: true,
81+
},
82+
time: {
83+
baseName: "time",
84+
type: "WidgetTime",
85+
},
86+
title: {
87+
baseName: "title",
88+
type: "string",
89+
},
90+
titleAlign: {
91+
baseName: "title_align",
92+
type: "WidgetTextAlign",
93+
},
94+
titleSize: {
95+
baseName: "title_size",
96+
type: "string",
97+
},
98+
type: {
99+
baseName: "type",
100+
type: "WildcardWidgetDefinitionType",
101+
required: true,
102+
},
103+
additionalProperties: {
104+
baseName: "additionalProperties",
105+
type: "{ [key: string]: any; }",
106+
},
107+
};
108+
109+
/**
110+
* @ignore
111+
*/
112+
static getAttributeTypeMap(): AttributeTypeMap {
113+
return WildcardWidgetDefinition.attributeTypeMap;
114+
}
115+
116+
public constructor() {}
117+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2020-Present Datadog, Inc.
5+
*/
6+
7+
import { UnparsedObject } from "../../datadog-api-client-common/util";
8+
9+
/**
10+
* Type of the wildcard widget.
11+
*/
12+
13+
export type WildcardWidgetDefinitionType = typeof WILDCARD | UnparsedObject;
14+
export const WILDCARD = "wildcard";
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2020-Present Datadog, Inc.
5+
*/
6+
import { DistributionWidgetRequest } from "./DistributionWidgetRequest";
7+
import { ListStreamWidgetRequest } from "./ListStreamWidgetRequest";
8+
import { TimeseriesWidgetRequest } from "./TimeseriesWidgetRequest";
9+
import { TreeMapWidgetRequest } from "./TreeMapWidgetRequest";
10+
11+
import { UnparsedObject } from "../../datadog-api-client-common/util";
12+
13+
/**
14+
* Request object for the wildcard widget. Each variant represents a distinct data-fetching pattern: scalar formulas, timeseries formulas, list streams, and histograms.
15+
*/
16+
17+
export type WildcardWidgetRequest =
18+
| TreeMapWidgetRequest
19+
| TimeseriesWidgetRequest
20+
| ListStreamWidgetRequest
21+
| DistributionWidgetRequest
22+
| UnparsedObject;
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
/**
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2020-Present Datadog, Inc.
5+
*/
6+
import { WildcardWidgetSpecificationType } from "./WildcardWidgetSpecificationType";
7+
8+
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
9+
10+
/**
11+
* Vega or Vega-Lite specification for custom visualization rendering. See https://vega.github.io/vega-lite/ for the full grammar reference.
12+
*/
13+
export class WildcardWidgetSpecification {
14+
/**
15+
* The Vega or Vega-Lite JSON specification object.
16+
*/
17+
"contents": any;
18+
/**
19+
* Type of specification used by the wildcard widget.
20+
*/
21+
"type": WildcardWidgetSpecificationType;
22+
23+
/**
24+
* A container for additional, undeclared properties.
25+
* This is a holder for any undeclared properties as specified with
26+
* the 'additionalProperties' keyword in the OAS document.
27+
*/
28+
"additionalProperties"?: { [key: string]: any };
29+
30+
/**
31+
* @ignore
32+
*/
33+
"_unparsed"?: boolean;
34+
35+
/**
36+
* @ignore
37+
*/
38+
static readonly attributeTypeMap: AttributeTypeMap = {
39+
contents: {
40+
baseName: "contents",
41+
type: "any",
42+
required: true,
43+
},
44+
type: {
45+
baseName: "type",
46+
type: "WildcardWidgetSpecificationType",
47+
required: true,
48+
},
49+
additionalProperties: {
50+
baseName: "additionalProperties",
51+
type: "{ [key: string]: any; }",
52+
},
53+
};
54+
55+
/**
56+
* @ignore
57+
*/
58+
static getAttributeTypeMap(): AttributeTypeMap {
59+
return WildcardWidgetSpecification.attributeTypeMap;
60+
}
61+
62+
public constructor() {}
63+
}

0 commit comments

Comments
 (0)