Skip to content

Commit 2c2e0b2

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b951844 of spec repo
1 parent 0ce0d8c commit 2c2e0b2

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
@@ -24156,6 +24156,7 @@ components:
2415624156
- $ref: "#/components/schemas/ToplistWidgetDefinition"
2415724157
- $ref: "#/components/schemas/TopologyMapWidgetDefinition"
2415824158
- $ref: "#/components/schemas/TreeMapWidgetDefinition"
24159+
- $ref: "#/components/schemas/WildcardWidgetDefinition"
2415924160
WidgetDisplayType:
2416024161
description: Type of display to use for the request.
2416124162
enum:
@@ -24927,6 +24928,81 @@ components:
2492724928
x-enum-varnames:
2492824929
- TIMESERIES
2492924930
- TOPLIST
24931+
WildcardWidgetDefinition:
24932+
description: >-
24933+
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.
24934+
properties:
24935+
custom_links:
24936+
description: List of custom links.
24937+
items:
24938+
$ref: "#/components/schemas/WidgetCustomLink"
24939+
type: array
24940+
requests:
24941+
description: List of data requests for the wildcard widget.
24942+
example: [{"formulas": ["formula": "query1"], "queries": [{"aggregator": "avg", "data_source": "metrics", "name": "query1", "query": "avg:system.cpu.user{*} by {env}"}], "response_format": "scalar"}]
24943+
items:
24944+
$ref: "#/components/schemas/WildcardWidgetRequest"
24945+
type: array
24946+
specification:
24947+
$ref: "#/components/schemas/WildcardWidgetSpecification"
24948+
time:
24949+
$ref: "#/components/schemas/WidgetTime"
24950+
title:
24951+
description: Title of the widget.
24952+
type: string
24953+
title_align:
24954+
$ref: "#/components/schemas/WidgetTextAlign"
24955+
title_size:
24956+
description: Size of the title.
24957+
type: string
24958+
type:
24959+
$ref: "#/components/schemas/WildcardWidgetDefinitionType"
24960+
required:
24961+
- type
24962+
- requests
24963+
- specification
24964+
type: object
24965+
WildcardWidgetDefinitionType:
24966+
default: wildcard
24967+
description: Type of the wildcard widget.
24968+
enum:
24969+
- wildcard
24970+
example: wildcard
24971+
type: string
24972+
x-enum-varnames:
24973+
- WILDCARD
24974+
WildcardWidgetRequest:
24975+
description: >-
24976+
Request object for the wildcard widget. Each variant represents a distinct data-fetching pattern: scalar formulas, timeseries formulas, list streams, and histograms.
24977+
oneOf:
24978+
- $ref: "#/components/schemas/TreeMapWidgetRequest"
24979+
- $ref: "#/components/schemas/TimeseriesWidgetRequest"
24980+
- $ref: "#/components/schemas/ListStreamWidgetRequest"
24981+
- $ref: "#/components/schemas/DistributionWidgetRequest"
24982+
WildcardWidgetSpecification:
24983+
description: >-
24984+
Vega or Vega-Lite specification for custom visualization rendering. See https://vega.github.io/vega-lite/ for the full grammar reference.
24985+
properties:
24986+
contents:
24987+
description: The Vega or Vega-Lite JSON specification object.
24988+
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"}
24989+
type: object
24990+
type:
24991+
$ref: "#/components/schemas/WildcardWidgetSpecificationType"
24992+
required:
24993+
- type
24994+
- contents
24995+
type: object
24996+
WildcardWidgetSpecificationType:
24997+
description: Type of specification used by the wildcard widget.
24998+
enum:
24999+
- vega
25000+
- vega-lite
25001+
example: vega-lite
25002+
type: string
25003+
x-enum-varnames:
25004+
- VEGA
25005+
- VEGA_LITE
2493025006
securitySchemes:
2493125007
AuthZ:
2493225008
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
@@ -1348,5 +1348,10 @@ export { WidgetTimeWindows } from "./models/WidgetTimeWindows";
13481348
export { WidgetVerticalAlign } from "./models/WidgetVerticalAlign";
13491349
export { WidgetViewMode } from "./models/WidgetViewMode";
13501350
export { WidgetVizType } from "./models/WidgetVizType";
1351+
export { WildcardWidgetDefinition } from "./models/WildcardWidgetDefinition";
1352+
export { WildcardWidgetDefinitionType } from "./models/WildcardWidgetDefinitionType";
1353+
export { WildcardWidgetRequest } from "./models/WildcardWidgetRequest";
1354+
export { WildcardWidgetSpecification } from "./models/WildcardWidgetSpecification";
1355+
export { WildcardWidgetSpecificationType } from "./models/WildcardWidgetSpecificationType";
13511356

13521357
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
@@ -688,6 +688,8 @@ import { WidgetNumberFormat } from "./WidgetNumberFormat";
688688
import { WidgetRequestStyle } from "./WidgetRequestStyle";
689689
import { WidgetSortBy } from "./WidgetSortBy";
690690
import { WidgetStyle } from "./WidgetStyle";
691+
import { WildcardWidgetDefinition } from "./WildcardWidgetDefinition";
692+
import { WildcardWidgetSpecification } from "./WildcardWidgetSpecification";
691693
import {
692694
dateFromRFC3339String,
693695
dateToRFC3339String,
@@ -1845,6 +1847,8 @@ const enumsMap: { [key: string]: any[] } = {
18451847
WidgetVerticalAlign: ["center", "top", "bottom"],
18461848
WidgetViewMode: ["overall", "component", "both"],
18471849
WidgetVizType: ["timeseries", "toplist"],
1850+
WildcardWidgetDefinitionType: ["wildcard"],
1851+
WildcardWidgetSpecificationType: ["vega", "vega-lite"],
18481852
};
18491853

18501854
const typeMap: { [index: string]: any } = {
@@ -2600,6 +2604,8 @@ const typeMap: { [index: string]: any } = {
26002604
WidgetRequestStyle: WidgetRequestStyle,
26012605
WidgetSortBy: WidgetSortBy,
26022606
WidgetStyle: WidgetStyle,
2607+
WildcardWidgetDefinition: WildcardWidgetDefinition,
2608+
WildcardWidgetSpecification: WildcardWidgetSpecification,
26032609
};
26042610

26052611
const oneOfMap: { [index: string]: string[] } = {
@@ -2796,13 +2802,20 @@ const oneOfMap: { [index: string]: string[] } = {
27962802
"ToplistWidgetDefinition",
27972803
"TopologyMapWidgetDefinition",
27982804
"TreeMapWidgetDefinition",
2805+
"WildcardWidgetDefinition",
27992806
],
28002807
WidgetSortOrderBy: ["WidgetFormulaSort", "WidgetGroupSort"],
28012808
WidgetTime: [
28022809
"WidgetLegacyLiveSpan",
28032810
"WidgetNewLiveSpan",
28042811
"WidgetNewFixedSpan",
28052812
],
2813+
WildcardWidgetRequest: [
2814+
"TreeMapWidgetRequest",
2815+
"TimeseriesWidgetRequest",
2816+
"ListStreamWidgetRequest",
2817+
"DistributionWidgetRequest",
2818+
],
28062819
};
28072820

28082821
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
@@ -39,6 +39,7 @@ import { TimeseriesWidgetDefinition } from "./TimeseriesWidgetDefinition";
3939
import { ToplistWidgetDefinition } from "./ToplistWidgetDefinition";
4040
import { TopologyMapWidgetDefinition } from "./TopologyMapWidgetDefinition";
4141
import { TreeMapWidgetDefinition } from "./TreeMapWidgetDefinition";
42+
import { WildcardWidgetDefinition } from "./WildcardWidgetDefinition";
4243

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

@@ -83,4 +84,5 @@ export type WidgetDefinition =
8384
| ToplistWidgetDefinition
8485
| TopologyMapWidgetDefinition
8586
| TreeMapWidgetDefinition
87+
| WildcardWidgetDefinition
8688
| 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)