Skip to content

Commit 0daf403

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit f5ef2e8 of spec repo (#3935)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 7f798b2 commit 0daf403

27 files changed

Lines changed: 1447 additions & 14 deletions

‎.generator/schemas/v2/openapi.yaml‎

Lines changed: 242 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38192,6 +38192,19 @@ components:
3819238192
example: "One or several indexes are missing or invalid. Results hold data from the other indexes."
3819338193
type: string
3819438194
type: object
38195+
ExecutionLimit:
38196+
description: "The maximum number of times to execute a workflow for an incident."
38197+
properties:
38198+
count:
38199+
description: "The maximum number of workflow executions."
38200+
example: 1
38201+
format: int32
38202+
maximum: 9999
38203+
minimum: 1
38204+
type: integer
38205+
required:
38206+
- count
38207+
type: object
3819538208
ExecutionPolicyActionPattern:
3819638209
description: The set of actions this policy applies to.
3819738210
properties:
@@ -47983,6 +47996,15 @@ components:
4798347996
type: string
4798447997
x-enum-varnames:
4798547998
- INCIDENT_ATTACHMENTS
47999+
IncidentCondition:
48000+
description: "Conditions that determine which incidents trigger the workflow."
48001+
properties:
48002+
tagValues:
48003+
description: "Incident tags and values used to filter matching incidents."
48004+
items:
48005+
$ref: "#/components/schemas/IncidentTagValue"
48006+
type: array
48007+
type: object
4798648008
IncidentConfigurationDataAttributesRequest:
4798748009
description: Attributes for creating an incident configuration.
4798848010
properties:
@@ -48336,6 +48358,25 @@ components:
4833648358
required:
4833748359
- data
4833848360
type: object
48361+
IncidentCreatedTrigger:
48362+
description: "Trigger a workflow when an incident is declared."
48363+
properties:
48364+
incidentType:
48365+
description: "The type of incident that triggers the workflow."
48366+
type: string
48367+
tagCondition:
48368+
$ref: "#/components/schemas/IncidentCondition"
48369+
type: object
48370+
IncidentCreatedTriggerWrapper:
48371+
description: "Schema for an incident declared trigger."
48372+
properties:
48373+
incidentCreatedTrigger:
48374+
$ref: "#/components/schemas/IncidentCreatedTrigger"
48375+
startStepNames:
48376+
$ref: "#/components/schemas/StartStepNames"
48377+
required:
48378+
- incidentCreatedTrigger
48379+
type: object
4833948380
IncidentFieldAttributes:
4834048381
description: Dynamic fields for which selections can be made, with field names as keys.
4834148382
oneOf:
@@ -49015,6 +49056,27 @@ components:
4901549056
required:
4901649057
- data
4901749058
type: object
49059+
IncidentImpactCreatedTrigger:
49060+
description: "Trigger a workflow when an impact is created for an incident."
49061+
properties:
49062+
executionLimit:
49063+
$ref: "#/components/schemas/ExecutionLimit"
49064+
incidentType:
49065+
description: "The type of incident that triggers the workflow."
49066+
type: string
49067+
tagCondition:
49068+
$ref: "#/components/schemas/IncidentCondition"
49069+
type: object
49070+
IncidentImpactCreatedTriggerWrapper:
49071+
description: "Schema for an incident impact created trigger."
49072+
properties:
49073+
incidentImpactCreatedTrigger:
49074+
$ref: "#/components/schemas/IncidentImpactCreatedTrigger"
49075+
startStepNames:
49076+
$ref: "#/components/schemas/StartStepNames"
49077+
required:
49078+
- incidentImpactCreatedTrigger
49079+
type: object
4901849080
IncidentImpactFieldChoice:
4901949081
description: A choice option for a dropdown or multiselect impact field.
4902049082
properties:
@@ -49313,6 +49375,27 @@ components:
4931349375
type: string
4931449376
x-enum-varnames:
4931549377
- INCIDENT_IMPACTS
49378+
IncidentImpactUpdatedTrigger:
49379+
description: "Trigger a workflow when an impact is updated for an incident."
49380+
properties:
49381+
executionLimit:
49382+
$ref: "#/components/schemas/ExecutionLimit"
49383+
incidentType:
49384+
description: "The type of incident that triggers the workflow."
49385+
type: string
49386+
tagCondition:
49387+
$ref: "#/components/schemas/IncidentCondition"
49388+
type: object
49389+
IncidentImpactUpdatedTriggerWrapper:
49390+
description: "Schema for an incident impact updated trigger."
49391+
properties:
49392+
incidentImpactUpdatedTrigger:
49393+
$ref: "#/components/schemas/IncidentImpactUpdatedTrigger"
49394+
startStepNames:
49395+
$ref: "#/components/schemas/StartStepNames"
49396+
required:
49397+
- incidentImpactUpdatedTrigger
49398+
type: object
4931649399
IncidentImpactsResponse:
4931749400
description: Response with a list of incident impacts.
4931849401
properties:
@@ -50534,6 +50617,27 @@ components:
5053450617
type: string
5053550618
x-enum-varnames:
5053650619
- INCIDENT_POSTMORTEMS
50620+
IncidentPostmortemUpdatedTrigger:
50621+
description: "Trigger a workflow when a postmortem is updated for an incident."
50622+
properties:
50623+
executionLimit:
50624+
$ref: "#/components/schemas/ExecutionLimit"
50625+
incidentType:
50626+
description: "The type of incident that triggers the workflow."
50627+
type: string
50628+
tagCondition:
50629+
$ref: "#/components/schemas/IncidentCondition"
50630+
type: object
50631+
IncidentPostmortemUpdatedTriggerWrapper:
50632+
description: "Schema for an incident postmortem updated trigger."
50633+
properties:
50634+
incidentPostmortemUpdatedTrigger:
50635+
$ref: "#/components/schemas/IncidentPostmortemUpdatedTrigger"
50636+
startStepNames:
50637+
$ref: "#/components/schemas/StartStepNames"
50638+
required:
50639+
- incidentPostmortemUpdatedTrigger
50640+
type: object
5053750641
IncidentRelatedObject:
5053850642
description: Object related to an incident.
5053950643
enum:
@@ -50564,6 +50668,27 @@ components:
5056450668
type: string
5056550669
x-enum-varnames:
5056650670
- INCIDENTS
50671+
IncidentResponderCreatedTrigger:
50672+
description: "Trigger a workflow when a responder is created for an incident."
50673+
properties:
50674+
executionLimit:
50675+
$ref: "#/components/schemas/ExecutionLimit"
50676+
incidentType:
50677+
description: "The type of incident that triggers the workflow."
50678+
type: string
50679+
tagCondition:
50680+
$ref: "#/components/schemas/IncidentCondition"
50681+
type: object
50682+
IncidentResponderCreatedTriggerWrapper:
50683+
description: "Schema for an incident responder created trigger."
50684+
properties:
50685+
incidentResponderCreatedTrigger:
50686+
$ref: "#/components/schemas/IncidentResponderCreatedTrigger"
50687+
startStepNames:
50688+
$ref: "#/components/schemas/StartStepNames"
50689+
required:
50690+
- incidentResponderCreatedTrigger
50691+
type: object
5056750692
IncidentResponderDataAttributesResponse:
5056850693
description: Attributes of an incident responder in a response.
5056950694
properties:
@@ -51317,6 +51442,55 @@ components:
5131751442
required:
5131851443
- data
5131951444
type: object
51445+
IncidentSavedTrigger:
51446+
description: "Trigger a workflow when an incident is declared or updated."
51447+
properties:
51448+
executionLimit:
51449+
$ref: "#/components/schemas/ExecutionLimit"
51450+
incidentType:
51451+
description: "The type of incident that triggers the workflow."
51452+
type: string
51453+
serialExecution:
51454+
$ref: "#/components/schemas/SerialExecution"
51455+
tagCondition:
51456+
$ref: "#/components/schemas/IncidentCondition"
51457+
type: object
51458+
IncidentSavedTriggerWrapper:
51459+
description: "Schema for an incident declared or updated trigger."
51460+
properties:
51461+
incidentSavedTrigger:
51462+
$ref: "#/components/schemas/IncidentSavedTrigger"
51463+
startStepNames:
51464+
$ref: "#/components/schemas/StartStepNames"
51465+
required:
51466+
- incidentSavedTrigger
51467+
type: object
51468+
IncidentScheduleTrigger:
51469+
description: "Trigger a workflow on a schedule for an incident."
51470+
properties:
51471+
incidentType:
51472+
description: "The type of incident that triggers the workflow."
51473+
type: string
51474+
rrule:
51475+
description: "The recurrence rule for the schedule, expressed as an iCalendar `RRULE` string."
51476+
example: "DTSTART:20241220T151700Z\nRRULE:FREQ=MONTHLY"
51477+
minLength: 1
51478+
type: string
51479+
tagCondition:
51480+
$ref: "#/components/schemas/IncidentCondition"
51481+
required:
51482+
- rrule
51483+
type: object
51484+
IncidentScheduleTriggerWrapper:
51485+
description: "Schema for an incident schedule trigger."
51486+
properties:
51487+
incidentScheduleTrigger:
51488+
$ref: "#/components/schemas/IncidentScheduleTrigger"
51489+
startStepNames:
51490+
$ref: "#/components/schemas/StartStepNames"
51491+
required:
51492+
- incidentScheduleTrigger
51493+
type: object
5132051494
IncidentSearchResponse:
5132151495
description: Response with incidents and facets.
5132251496
properties:
@@ -51610,6 +51784,24 @@ components:
5161051784
- SEV_3
5161151785
- SEV_4
5161251786
- SEV_5
51787+
IncidentTagValue:
51788+
description: "An incident tag and its accepted values."
51789+
properties:
51790+
tag:
51791+
description: "The incident tag to match."
51792+
example: ""
51793+
type: string
51794+
values:
51795+
description: "The accepted values for the incident tag."
51796+
example:
51797+
- ""
51798+
items:
51799+
type: string
51800+
type: array
51801+
required:
51802+
- tag
51803+
- values
51804+
type: object
5161351805
IncidentTimelineCellCreateAttributes:
5161451806
description: The timeline cell's attributes for a create request.
5161551807
oneOf:
@@ -52029,13 +52221,16 @@ components:
5202952221
x-enum-varnames:
5203052222
- INCIDENT_TODOS
5203152223
IncidentTrigger:
52032-
description: "Trigger a workflow from an Incident. For automatic triggering a handle must be configured and the workflow must be published."
52224+
description: "Trigger a workflow from an incident. For automatic triggering a handle must be configured and the workflow must be published."
5203352225
properties:
5203452226
rateLimit:
5203552227
$ref: "#/components/schemas/TriggerRateLimit"
52228+
version:
52229+
description: "Version of the incident manual trigger."
52230+
type: string
5203652231
type: object
5203752232
IncidentTriggerWrapper:
52038-
description: "Schema for an Incident-based trigger."
52233+
description: "Schema for an incident-based trigger."
5203952234
properties:
5204052235
incidentTrigger:
5204152236
$ref: "#/components/schemas/IncidentTrigger"
@@ -104143,6 +104338,16 @@ components:
104143104338
- REPLACEMENT_STRING
104144104339
- PARTIAL_REPLACEMENT_FROM_BEGINNING
104145104340
- PARTIAL_REPLACEMENT_FROM_END
104341+
SerialExecution:
104342+
description: "Whether to execute the workflow serially for an incident."
104343+
properties:
104344+
enabled:
104345+
description: "Whether serial execution is enabled."
104346+
example: false
104347+
type: boolean
104348+
required:
104349+
- enabled
104350+
type: object
104146104351
ServiceAccessToken:
104147104352
description: Datadog access token.
104148104353
properties:
@@ -107226,12 +107431,38 @@ components:
107226107431
- channel_name
107227107432
- redirect_url
107228107433
type: object
107434+
SlackReactionConfig:
107435+
description: "Configuration for a Slack emoji reaction trigger."
107436+
properties:
107437+
reactionEmoji:
107438+
description: "The Slack emoji reaction name."
107439+
example: L
107440+
minLength: 1
107441+
type: string
107442+
teamId:
107443+
description: "The Slack workspace ID."
107444+
example: L
107445+
minLength: 1
107446+
type: string
107447+
required:
107448+
- teamId
107449+
- reactionEmoji
107450+
type: object
107451+
SlackTrigger:
107452+
description: "Trigger a workflow from Slack. The workflow must be published."
107453+
properties:
107454+
reactionTriggers:
107455+
description: "Slack emoji reactions that trigger the workflow."
107456+
items:
107457+
$ref: "#/components/schemas/SlackReactionConfig"
107458+
type: array
107459+
uniqueItems: true
107460+
type: object
107229107461
SlackTriggerWrapper:
107230107462
description: "Schema for a Slack-based trigger."
107231107463
properties:
107232107464
slackTrigger:
107233-
description: "Trigger a workflow from Slack. The workflow must be published."
107234-
type: object
107465+
$ref: "#/components/schemas/SlackTrigger"
107235107466
startStepNames:
107236107467
$ref: "#/components/schemas/StartStepNames"
107237107468
required:
@@ -119119,6 +119350,13 @@ components:
119119119350
- $ref: "#/components/schemas/DashboardTriggerWrapper"
119120119351
- $ref: "#/components/schemas/FormTriggerWrapper"
119121119352
- $ref: "#/components/schemas/GithubWebhookTriggerWrapper"
119353+
- $ref: "#/components/schemas/IncidentCreatedTriggerWrapper"
119354+
- $ref: "#/components/schemas/IncidentImpactCreatedTriggerWrapper"
119355+
- $ref: "#/components/schemas/IncidentImpactUpdatedTriggerWrapper"
119356+
- $ref: "#/components/schemas/IncidentPostmortemUpdatedTriggerWrapper"
119357+
- $ref: "#/components/schemas/IncidentResponderCreatedTriggerWrapper"
119358+
- $ref: "#/components/schemas/IncidentSavedTriggerWrapper"
119359+
- $ref: "#/components/schemas/IncidentScheduleTriggerWrapper"
119122119360
- $ref: "#/components/schemas/IncidentTriggerWrapper"
119123119361
- $ref: "#/components/schemas/MonitorTriggerWrapper"
119124119362
- $ref: "#/components/schemas/NotebookTriggerWrapper"
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
7+
from datadog_api_client.model_utils import (
8+
ModelNormal,
9+
cached_property,
10+
)
11+
12+
13+
class ExecutionLimit(ModelNormal):
14+
validations = {
15+
"count": {
16+
"inclusive_maximum": 9999,
17+
"inclusive_minimum": 1,
18+
},
19+
}
20+
21+
@cached_property
22+
def openapi_types(_):
23+
return {
24+
"count": (int,),
25+
}
26+
27+
attribute_map = {
28+
"count": "count",
29+
}
30+
31+
def __init__(self_, count: int, **kwargs):
32+
"""
33+
The maximum number of times to execute a workflow for an incident.
34+
35+
:param count: The maximum number of workflow executions.
36+
:type count: int
37+
"""
38+
super().__init__(kwargs)
39+
40+
self_.count = count

0 commit comments

Comments
 (0)