Skip to content

Commit 8ebd82a

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0d5ba16 of spec repo
1 parent bfad4c1 commit 8ebd82a

File tree

7 files changed

+215
-0
lines changed

7 files changed

+215
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28684,6 +28684,19 @@ components:
2868428684
type: string
2868528685
x-enum-varnames:
2868628686
- INCIDENT_ATTACHMENTS
28687+
IncidentCondition:
28688+
description: A condition evaluated against incident tags.
28689+
properties:
28690+
tags:
28691+
description: Tags that must match for the condition to pass.
28692+
example:
28693+
- ''
28694+
items:
28695+
type: string
28696+
type: array
28697+
required:
28698+
- tags
28699+
type: object
2868728700
IncidentCreateAttributes:
2868828701
description: The incident's attributes for a create request.
2868928702
properties:
@@ -30203,6 +30216,32 @@ components:
3020330216
user_defined_fields:
3020430217
$ref: '#/components/schemas/RelationshipToIncidentUserDefinedFields'
3020530218
type: object
30219+
IncidentScheduleTrigger:
30220+
description: Trigger a workflow from an Incident Schedule. The workflow must
30221+
be published.
30222+
properties:
30223+
incidentType:
30224+
description: Incident type filter for the schedule.
30225+
type: string
30226+
rrule:
30227+
description: Recurrence rule expression for scheduling.
30228+
example: ''
30229+
type: string
30230+
tagCondition:
30231+
$ref: '#/components/schemas/IncidentCondition'
30232+
required:
30233+
- rrule
30234+
type: object
30235+
IncidentScheduleTriggerWrapper:
30236+
description: Schema for an Incident Schedule-based trigger.
30237+
properties:
30238+
incidentScheduleTrigger:
30239+
$ref: '#/components/schemas/IncidentScheduleTrigger'
30240+
startStepNames:
30241+
$ref: '#/components/schemas/StartStepNames'
30242+
required:
30243+
- incidentScheduleTrigger
30244+
type: object
3020630245
IncidentSearchResponse:
3020730246
description: Response with incidents and facets.
3020830247
properties:
@@ -65465,6 +65504,7 @@ components:
6546565504
- $ref: '#/components/schemas/DashboardTriggerWrapper'
6546665505
- $ref: '#/components/schemas/GithubWebhookTriggerWrapper'
6546765506
- $ref: '#/components/schemas/IncidentTriggerWrapper'
65507+
- $ref: '#/components/schemas/IncidentScheduleTriggerWrapper'
6546865508
- $ref: '#/components/schemas/MonitorTriggerWrapper'
6546965509
- $ref: '#/components/schemas/NotebookTriggerWrapper'
6547065510
- $ref: '#/components/schemas/OnCallTriggerWrapper'

services/workflow_automation/src/v2/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ export { ErrorHandler } from "./models/ErrorHandler";
3838
export { GetWorkflowResponse } from "./models/GetWorkflowResponse";
3939
export { GithubWebhookTrigger } from "./models/GithubWebhookTrigger";
4040
export { GithubWebhookTriggerWrapper } from "./models/GithubWebhookTriggerWrapper";
41+
export { IncidentCondition } from "./models/IncidentCondition";
42+
export { IncidentScheduleTrigger } from "./models/IncidentScheduleTrigger";
43+
export { IncidentScheduleTriggerWrapper } from "./models/IncidentScheduleTriggerWrapper";
4144
export { IncidentTrigger } from "./models/IncidentTrigger";
4245
export { IncidentTriggerWrapper } from "./models/IncidentTriggerWrapper";
4346
export { InputSchema } from "./models/InputSchema";
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import { AttributeTypeMap } from "@datadog/datadog-api-client";
2+
3+
/**
4+
* A condition evaluated against incident tags.
5+
*/
6+
export class IncidentCondition {
7+
/**
8+
* Tags that must match for the condition to pass.
9+
*/
10+
"tags": Array<string>;
11+
/**
12+
* A container for additional, undeclared properties.
13+
* This is a holder for any undeclared properties as specified with
14+
* the 'additionalProperties' keyword in the OAS document.
15+
*/
16+
"additionalProperties"?: { [key: string]: any };
17+
/**
18+
* @ignore
19+
*/
20+
"_unparsed"?: boolean;
21+
22+
/**
23+
* @ignore
24+
*/
25+
static readonly attributeTypeMap: AttributeTypeMap = {
26+
tags: {
27+
baseName: "tags",
28+
type: "Array<string>",
29+
required: true,
30+
},
31+
additionalProperties: {
32+
baseName: "additionalProperties",
33+
type: "{ [key: string]: any; }",
34+
},
35+
};
36+
37+
/**
38+
* @ignore
39+
*/
40+
static getAttributeTypeMap(): AttributeTypeMap {
41+
return IncidentCondition.attributeTypeMap;
42+
}
43+
44+
public constructor() {}
45+
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
import { AttributeTypeMap } from "@datadog/datadog-api-client";
2+
3+
import { IncidentCondition } from "./IncidentCondition";
4+
5+
/**
6+
* Trigger a workflow from an Incident Schedule. The workflow must be published.
7+
*/
8+
export class IncidentScheduleTrigger {
9+
/**
10+
* Incident type filter for the schedule.
11+
*/
12+
"incidentType"?: string;
13+
/**
14+
* Recurrence rule expression for scheduling.
15+
*/
16+
"rrule": string;
17+
/**
18+
* A condition evaluated against incident tags.
19+
*/
20+
"tagCondition"?: IncidentCondition;
21+
/**
22+
* A container for additional, undeclared properties.
23+
* This is a holder for any undeclared properties as specified with
24+
* the 'additionalProperties' keyword in the OAS document.
25+
*/
26+
"additionalProperties"?: { [key: string]: any };
27+
/**
28+
* @ignore
29+
*/
30+
"_unparsed"?: boolean;
31+
32+
/**
33+
* @ignore
34+
*/
35+
static readonly attributeTypeMap: AttributeTypeMap = {
36+
incidentType: {
37+
baseName: "incidentType",
38+
type: "string",
39+
},
40+
rrule: {
41+
baseName: "rrule",
42+
type: "string",
43+
required: true,
44+
},
45+
tagCondition: {
46+
baseName: "tagCondition",
47+
type: "IncidentCondition",
48+
},
49+
additionalProperties: {
50+
baseName: "additionalProperties",
51+
type: "{ [key: string]: any; }",
52+
},
53+
};
54+
55+
/**
56+
* @ignore
57+
*/
58+
static getAttributeTypeMap(): AttributeTypeMap {
59+
return IncidentScheduleTrigger.attributeTypeMap;
60+
}
61+
62+
public constructor() {}
63+
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import { AttributeTypeMap } from "@datadog/datadog-api-client";
2+
3+
import { IncidentScheduleTrigger } from "./IncidentScheduleTrigger";
4+
5+
/**
6+
* Schema for an Incident Schedule-based trigger.
7+
*/
8+
export class IncidentScheduleTriggerWrapper {
9+
/**
10+
* Trigger a workflow from an Incident Schedule. The workflow must be published.
11+
*/
12+
"incidentScheduleTrigger": IncidentScheduleTrigger;
13+
/**
14+
* A list of steps that run first after a trigger fires.
15+
*/
16+
"startStepNames"?: Array<string>;
17+
/**
18+
* A container for additional, undeclared properties.
19+
* This is a holder for any undeclared properties as specified with
20+
* the 'additionalProperties' keyword in the OAS document.
21+
*/
22+
"additionalProperties"?: { [key: string]: any };
23+
/**
24+
* @ignore
25+
*/
26+
"_unparsed"?: boolean;
27+
28+
/**
29+
* @ignore
30+
*/
31+
static readonly attributeTypeMap: AttributeTypeMap = {
32+
incidentScheduleTrigger: {
33+
baseName: "incidentScheduleTrigger",
34+
type: "IncidentScheduleTrigger",
35+
required: true,
36+
},
37+
startStepNames: {
38+
baseName: "startStepNames",
39+
type: "Array<string>",
40+
},
41+
additionalProperties: {
42+
baseName: "additionalProperties",
43+
type: "{ [key: string]: any; }",
44+
},
45+
};
46+
47+
/**
48+
* @ignore
49+
*/
50+
static getAttributeTypeMap(): AttributeTypeMap {
51+
return IncidentScheduleTriggerWrapper.attributeTypeMap;
52+
}
53+
54+
public constructor() {}
55+
}

services/workflow_automation/src/v2/models/Trigger.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { DashboardTriggerWrapper } from "./DashboardTriggerWrapper";
88
import { DatabaseMonitoringTriggerWrapper } from "./DatabaseMonitoringTriggerWrapper";
99
import { DatastoreTriggerWrapper } from "./DatastoreTriggerWrapper";
1010
import { GithubWebhookTriggerWrapper } from "./GithubWebhookTriggerWrapper";
11+
import { IncidentScheduleTriggerWrapper } from "./IncidentScheduleTriggerWrapper";
1112
import { IncidentTriggerWrapper } from "./IncidentTriggerWrapper";
1213
import { MonitorTriggerWrapper } from "./MonitorTriggerWrapper";
1314
import { NotebookTriggerWrapper } from "./NotebookTriggerWrapper";
@@ -32,6 +33,7 @@ export type Trigger =
3233
| DashboardTriggerWrapper
3334
| GithubWebhookTriggerWrapper
3435
| IncidentTriggerWrapper
36+
| IncidentScheduleTriggerWrapper
3537
| MonitorTriggerWrapper
3638
| NotebookTriggerWrapper
3739
| OnCallTriggerWrapper

services/workflow_automation/src/v2/models/TypingInfo.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ import { ErrorHandler } from "./ErrorHandler";
2626
import { GetWorkflowResponse } from "./GetWorkflowResponse";
2727
import { GithubWebhookTrigger } from "./GithubWebhookTrigger";
2828
import { GithubWebhookTriggerWrapper } from "./GithubWebhookTriggerWrapper";
29+
import { IncidentCondition } from "./IncidentCondition";
30+
import { IncidentScheduleTrigger } from "./IncidentScheduleTrigger";
31+
import { IncidentScheduleTriggerWrapper } from "./IncidentScheduleTriggerWrapper";
2932
import { IncidentTrigger } from "./IncidentTrigger";
3033
import { IncidentTriggerWrapper } from "./IncidentTriggerWrapper";
3134
import { InputSchema } from "./InputSchema";
@@ -134,6 +137,7 @@ export const TypingInfo: ModelTypingInfo = {
134137
"DashboardTriggerWrapper",
135138
"GithubWebhookTriggerWrapper",
136139
"IncidentTriggerWrapper",
140+
"IncidentScheduleTriggerWrapper",
137141
"MonitorTriggerWrapper",
138142
"NotebookTriggerWrapper",
139143
"OnCallTriggerWrapper",
@@ -172,6 +176,9 @@ export const TypingInfo: ModelTypingInfo = {
172176
GetWorkflowResponse: GetWorkflowResponse,
173177
GithubWebhookTrigger: GithubWebhookTrigger,
174178
GithubWebhookTriggerWrapper: GithubWebhookTriggerWrapper,
179+
IncidentCondition: IncidentCondition,
180+
IncidentScheduleTrigger: IncidentScheduleTrigger,
181+
IncidentScheduleTriggerWrapper: IncidentScheduleTriggerWrapper,
175182
IncidentTrigger: IncidentTrigger,
176183
IncidentTriggerWrapper: IncidentTriggerWrapper,
177184
InputSchema: InputSchema,

0 commit comments

Comments
 (0)