Skip to content

Commit e59b3e3

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 306edfe of spec repo
1 parent 9e6f711 commit e59b3e3

13 files changed

Lines changed: 253 additions & 0 deletions

.generator/schemas/v1/openapi.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27920,6 +27920,42 @@ components:
2792027920
WidgetBackgroundColor:
2792127921
description: "Background color of the widget. Supported values are `white`, `blue`, `purple`, `pink`, `orange`, `yellow`, `green`, `gray`, `vivid_blue`, `vivid_purple`, `vivid_pink`, `vivid_orange`, `vivid_yellow`, `vivid_green`, and `transparent`."
2792227922
type: string
27923+
WidgetCalendarAlignedSpan:
27924+
description: Used for calendar-aligned time spans, such as the current month or previous year.
27925+
properties:
27926+
hide_incomplete_cost_data:
27927+
description: Whether to hide incomplete cost data in the widget.
27928+
type: boolean
27929+
offset:
27930+
description: Number of completed periods before the current period. 0 represents the current period.
27931+
example: 1
27932+
format: int64
27933+
minimum: 0
27934+
type: integer
27935+
timezone:
27936+
description: Time zone used to align the calendar period.
27937+
example: UTC
27938+
type: string
27939+
type:
27940+
$ref: "#/components/schemas/WidgetCalendarAlignedSpanType"
27941+
required:
27942+
- type
27943+
- offset
27944+
type: object
27945+
WidgetCalendarAlignedSpanType:
27946+
description: Calendar-aligned time span type.
27947+
enum:
27948+
- daily
27949+
- weekly
27950+
- monthly
27951+
- yearly
27952+
example: daily
27953+
type: string
27954+
x-enum-varnames:
27955+
- DAILY
27956+
- WEEKLY
27957+
- MONTHLY
27958+
- YEARLY
2792327959
WidgetChangeType:
2792427960
description: Show the absolute or the relative change.
2792527961
enum:
@@ -28381,6 +28417,9 @@ components:
2838128417
- month_to_date
2838228418
- 1y
2838328419
- alert
28420+
- full_week
28421+
- full_month
28422+
- year_to_date
2838428423
example: 5m
2838528424
type: string
2838628425
x-enum-varnames:
@@ -28401,6 +28440,9 @@ components:
2840128440
- MONTH_TO_DATE
2840228441
- PAST_ONE_YEAR
2840328442
- ALERT
28443+
- FULL_WEEK
28444+
- FULL_MONTH
28445+
- YEAR_TO_DATE
2840428446
WidgetLiveSpanUnit:
2840528447
description: Unit of the time span.
2840628448
enum:
@@ -28784,6 +28826,7 @@ components:
2878428826
- $ref: "#/components/schemas/WidgetLegacyLiveSpan"
2878528827
- $ref: "#/components/schemas/WidgetNewLiveSpan"
2878628828
- $ref: "#/components/schemas/WidgetNewFixedSpan"
28829+
- $ref: "#/components/schemas/WidgetCalendarAlignedSpan"
2878728830
WidgetTimeWindows:
2878828831
description: Define a time window.
2878928832
enum:

services/dashboards/src/v1/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,8 @@ export { ViewingPreferencesTheme } from "./models/ViewingPreferencesTheme";
396396
export { Widget } from "./models/Widget";
397397
export { WidgetAggregator } from "./models/WidgetAggregator";
398398
export { WidgetAxis } from "./models/WidgetAxis";
399+
export { WidgetCalendarAlignedSpan } from "./models/WidgetCalendarAlignedSpan";
400+
export { WidgetCalendarAlignedSpanType } from "./models/WidgetCalendarAlignedSpanType";
399401
export { WidgetChangeType } from "./models/WidgetChangeType";
400402
export { WidgetColorPreference } from "./models/WidgetColorPreference";
401403
export { WidgetComparator } from "./models/WidgetComparator";

services/dashboards/src/v1/models/TypingInfo.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ import { UserJourneySearchTarget } from "./UserJourneySearchTarget";
216216
import { ViewingPreferences } from "./ViewingPreferences";
217217
import { Widget } from "./Widget";
218218
import { WidgetAxis } from "./WidgetAxis";
219+
import { WidgetCalendarAlignedSpan } from "./WidgetCalendarAlignedSpan";
219220
import { WidgetConditionalFormat } from "./WidgetConditionalFormat";
220221
import { WidgetCustomLink } from "./WidgetCustomLink";
221222
import { WidgetEvent } from "./WidgetEvent";
@@ -591,6 +592,7 @@ export const TypingInfo: ModelTypingInfo = {
591592
],
592593
ViewingPreferencesTheme: ["system", "light", "dark"],
593594
WidgetAggregator: ["avg", "last", "max", "min", "sum", "percentile"],
595+
WidgetCalendarAlignedSpanType: ["daily", "weekly", "monthly", "yearly"],
594596
WidgetChangeType: ["absolute", "relative"],
595597
WidgetColorPreference: ["background", "text"],
596598
WidgetComparator: ["=", ">", ">=", "<", "<="],
@@ -638,6 +640,9 @@ export const TypingInfo: ModelTypingInfo = {
638640
"month_to_date",
639641
"1y",
640642
"alert",
643+
"full_week",
644+
"full_month",
645+
"year_to_date",
641646
],
642647
WidgetLiveSpanUnit: ["minute", "hour", "day", "week", "month", "year"],
643648
WidgetMargin: ["sm", "md", "lg", "small", "large"],
@@ -815,6 +820,7 @@ export const TypingInfo: ModelTypingInfo = {
815820
"WidgetLegacyLiveSpan",
816821
"WidgetNewLiveSpan",
817822
"WidgetNewFixedSpan",
823+
"WidgetCalendarAlignedSpan",
818824
],
819825
WildcardWidgetRequest: [
820826
"TreeMapWidgetRequest",
@@ -1063,6 +1069,7 @@ export const TypingInfo: ModelTypingInfo = {
10631069
ViewingPreferences: ViewingPreferences,
10641070
Widget: Widget,
10651071
WidgetAxis: WidgetAxis,
1072+
WidgetCalendarAlignedSpan: WidgetCalendarAlignedSpan,
10661073
WidgetConditionalFormat: WidgetConditionalFormat,
10671074
WidgetCustomLink: WidgetCustomLink,
10681075
WidgetEvent: WidgetEvent,
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
import { AttributeTypeMap } from "@datadog/datadog-api-client";
2+
3+
import { WidgetCalendarAlignedSpanType } from "./WidgetCalendarAlignedSpanType";
4+
5+
/**
6+
* Used for calendar-aligned time spans, such as the current month or previous year.
7+
*/
8+
export class WidgetCalendarAlignedSpan {
9+
/**
10+
* Whether to hide incomplete cost data in the widget.
11+
*/
12+
"hideIncompleteCostData"?: boolean;
13+
/**
14+
* Number of completed periods before the current period. 0 represents the current period.
15+
*/
16+
"offset": number;
17+
/**
18+
* Time zone used to align the calendar period.
19+
*/
20+
"timezone"?: string;
21+
/**
22+
* Calendar-aligned time span type.
23+
*/
24+
"type": WidgetCalendarAlignedSpanType;
25+
/**
26+
* A container for additional, undeclared properties.
27+
* This is a holder for any undeclared properties as specified with
28+
* the 'additionalProperties' keyword in the OAS document.
29+
*/
30+
"additionalProperties"?: { [key: string]: any };
31+
/**
32+
* @ignore
33+
*/
34+
"_unparsed"?: boolean;
35+
36+
/**
37+
* @ignore
38+
*/
39+
static readonly attributeTypeMap: AttributeTypeMap = {
40+
hideIncompleteCostData: {
41+
baseName: "hide_incomplete_cost_data",
42+
type: "boolean",
43+
},
44+
offset: {
45+
baseName: "offset",
46+
type: "number",
47+
required: true,
48+
format: "int64",
49+
},
50+
timezone: {
51+
baseName: "timezone",
52+
type: "string",
53+
},
54+
type: {
55+
baseName: "type",
56+
type: "WidgetCalendarAlignedSpanType",
57+
required: true,
58+
},
59+
additionalProperties: {
60+
baseName: "additionalProperties",
61+
type: "{ [key: string]: any; }",
62+
},
63+
};
64+
65+
/**
66+
* @ignore
67+
*/
68+
static getAttributeTypeMap(): AttributeTypeMap {
69+
return WidgetCalendarAlignedSpan.attributeTypeMap;
70+
}
71+
72+
public constructor() {}
73+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { UnparsedObject } from "@datadog/datadog-api-client";
2+
3+
/**
4+
* Calendar-aligned time span type.
5+
*/
6+
export type WidgetCalendarAlignedSpanType =
7+
| typeof DAILY
8+
| typeof WEEKLY
9+
| typeof MONTHLY
10+
| typeof YEARLY
11+
| UnparsedObject;
12+
export const DAILY = "daily";
13+
export const WEEKLY = "weekly";
14+
export const MONTHLY = "monthly";
15+
export const YEARLY = "yearly";

services/dashboards/src/v1/models/WidgetLiveSpan.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ export type WidgetLiveSpan =
2121
| typeof MONTH_TO_DATE
2222
| typeof PAST_ONE_YEAR
2323
| typeof ALERT
24+
| typeof FULL_WEEK
25+
| typeof FULL_MONTH
26+
| typeof YEAR_TO_DATE
2427
| UnparsedObject;
2528
export const PAST_ONE_MINUTE = "1m";
2629
export const PAST_FIVE_MINUTES = "5m";
@@ -39,3 +42,6 @@ export const WEEK_TO_DATE = "week_to_date";
3942
export const MONTH_TO_DATE = "month_to_date";
4043
export const PAST_ONE_YEAR = "1y";
4144
export const ALERT = "alert";
45+
export const FULL_WEEK = "full_week";
46+
export const FULL_MONTH = "full_month";
47+
export const YEAR_TO_DATE = "year_to_date";

services/dashboards/src/v1/models/WidgetTime.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { UnparsedObject } from "@datadog/datadog-api-client";
22

3+
import { WidgetCalendarAlignedSpan } from "./WidgetCalendarAlignedSpan";
34
import { WidgetLegacyLiveSpan } from "./WidgetLegacyLiveSpan";
45
import { WidgetNewFixedSpan } from "./WidgetNewFixedSpan";
56
import { WidgetNewLiveSpan } from "./WidgetNewLiveSpan";
@@ -11,4 +12,5 @@ export type WidgetTime =
1112
| WidgetLegacyLiveSpan
1213
| WidgetNewLiveSpan
1314
| WidgetNewFixedSpan
15+
| WidgetCalendarAlignedSpan
1416
| UnparsedObject;

services/notebooks/src/v1/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ export { UserJourneySearchGraphFilter } from "./models/UserJourneySearchGraphFil
182182
export { UserJourneySearchTarget } from "./models/UserJourneySearchTarget";
183183
export { WidgetAggregator } from "./models/WidgetAggregator";
184184
export { WidgetAxis } from "./models/WidgetAxis";
185+
export { WidgetCalendarAlignedSpan } from "./models/WidgetCalendarAlignedSpan";
186+
export { WidgetCalendarAlignedSpanType } from "./models/WidgetCalendarAlignedSpanType";
185187
export { WidgetComparator } from "./models/WidgetComparator";
186188
export { WidgetConditionalFormat } from "./models/WidgetConditionalFormat";
187189
export { WidgetCustomLink } from "./models/WidgetCustomLink";

services/notebooks/src/v1/models/TypingInfo.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ import { UserJourneySearchFilters } from "./UserJourneySearchFilters";
104104
import { UserJourneySearchGraphFilter } from "./UserJourneySearchGraphFilter";
105105
import { UserJourneySearchTarget } from "./UserJourneySearchTarget";
106106
import { WidgetAxis } from "./WidgetAxis";
107+
import { WidgetCalendarAlignedSpan } from "./WidgetCalendarAlignedSpan";
107108
import { WidgetConditionalFormat } from "./WidgetConditionalFormat";
108109
import { WidgetCustomLink } from "./WidgetCustomLink";
109110
import { WidgetEvent } from "./WidgetEvent";
@@ -307,6 +308,7 @@ export const TypingInfo: ModelTypingInfo = {
307308
"__dd.time_to_convert",
308309
],
309310
WidgetAggregator: ["avg", "last", "max", "min", "sum", "percentile"],
311+
WidgetCalendarAlignedSpanType: ["daily", "weekly", "monthly", "yearly"],
310312
WidgetComparator: ["=", ">", ">=", "<", "<="],
311313
WidgetDisplayType: ["area", "bars", "line", "overlay"],
312314
WidgetFormulaCellDisplayModeOptionsTrendType: ["area", "line", "bars"],
@@ -332,6 +334,9 @@ export const TypingInfo: ModelTypingInfo = {
332334
"month_to_date",
333335
"1y",
334336
"alert",
337+
"full_week",
338+
"full_month",
339+
"year_to_date",
335340
],
336341
WidgetLiveSpanUnit: ["minute", "hour", "day", "week", "month", "year"],
337342
WidgetMessageDisplay: ["inline", "expanded-md", "expanded-lg"],
@@ -428,6 +433,7 @@ export const TypingInfo: ModelTypingInfo = {
428433
"WidgetLegacyLiveSpan",
429434
"WidgetNewLiveSpan",
430435
"WidgetNewFixedSpan",
436+
"WidgetCalendarAlignedSpan",
431437
],
432438
},
433439
typeMap: {
@@ -555,6 +561,7 @@ export const TypingInfo: ModelTypingInfo = {
555561
UserJourneySearchGraphFilter: UserJourneySearchGraphFilter,
556562
UserJourneySearchTarget: UserJourneySearchTarget,
557563
WidgetAxis: WidgetAxis,
564+
WidgetCalendarAlignedSpan: WidgetCalendarAlignedSpan,
558565
WidgetConditionalFormat: WidgetConditionalFormat,
559566
WidgetCustomLink: WidgetCustomLink,
560567
WidgetEvent: WidgetEvent,
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
import { AttributeTypeMap } from "@datadog/datadog-api-client";
2+
3+
import { WidgetCalendarAlignedSpanType } from "./WidgetCalendarAlignedSpanType";
4+
5+
/**
6+
* Used for calendar-aligned time spans, such as the current month or previous year.
7+
*/
8+
export class WidgetCalendarAlignedSpan {
9+
/**
10+
* Whether to hide incomplete cost data in the widget.
11+
*/
12+
"hideIncompleteCostData"?: boolean;
13+
/**
14+
* Number of completed periods before the current period. 0 represents the current period.
15+
*/
16+
"offset": number;
17+
/**
18+
* Time zone used to align the calendar period.
19+
*/
20+
"timezone"?: string;
21+
/**
22+
* Calendar-aligned time span type.
23+
*/
24+
"type": WidgetCalendarAlignedSpanType;
25+
/**
26+
* A container for additional, undeclared properties.
27+
* This is a holder for any undeclared properties as specified with
28+
* the 'additionalProperties' keyword in the OAS document.
29+
*/
30+
"additionalProperties"?: { [key: string]: any };
31+
/**
32+
* @ignore
33+
*/
34+
"_unparsed"?: boolean;
35+
36+
/**
37+
* @ignore
38+
*/
39+
static readonly attributeTypeMap: AttributeTypeMap = {
40+
hideIncompleteCostData: {
41+
baseName: "hide_incomplete_cost_data",
42+
type: "boolean",
43+
},
44+
offset: {
45+
baseName: "offset",
46+
type: "number",
47+
required: true,
48+
format: "int64",
49+
},
50+
timezone: {
51+
baseName: "timezone",
52+
type: "string",
53+
},
54+
type: {
55+
baseName: "type",
56+
type: "WidgetCalendarAlignedSpanType",
57+
required: true,
58+
},
59+
additionalProperties: {
60+
baseName: "additionalProperties",
61+
type: "{ [key: string]: any; }",
62+
},
63+
};
64+
65+
/**
66+
* @ignore
67+
*/
68+
static getAttributeTypeMap(): AttributeTypeMap {
69+
return WidgetCalendarAlignedSpan.attributeTypeMap;
70+
}
71+
72+
public constructor() {}
73+
}

0 commit comments

Comments
 (0)