Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
242 changes: 240 additions & 2 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38186,6 +38186,19 @@ components:
example: "One or several indexes are missing or invalid. Results hold data from the other indexes."
type: string
type: object
ExecutionLimit:
description: "The maximum number of times to execute a workflow for an Incident."
properties:
count:
description: "The maximum number of workflow executions."
example: 1
format: int32
maximum: 9999
minimum: 1
type: integer
required:
- count
type: object
ExecutionPolicyActionPattern:
description: The set of actions this policy applies to.
properties:
Expand Down Expand Up @@ -47977,6 +47990,15 @@ components:
type: string
x-enum-varnames:
- INCIDENT_ATTACHMENTS
IncidentCondition:
description: "Conditions that determine which Incidents trigger the workflow."
properties:
tagValues:
description: "Incident tags and values used to filter matching Incidents."
items:
$ref: "#/components/schemas/IncidentTagValue"
type: array
type: object
IncidentConfigurationDataAttributesRequest:
description: Attributes for creating an incident configuration.
properties:
Expand Down Expand Up @@ -48330,6 +48352,25 @@ components:
required:
- data
type: object
IncidentCreatedTrigger:
description: "Trigger a workflow when an Incident is declared."
properties:
incidentType:
description: "The type of Incident that triggers the workflow."
type: string
tagCondition:
$ref: "#/components/schemas/IncidentCondition"
type: object
IncidentCreatedTriggerWrapper:
description: "Schema for an Incident Declared trigger."
properties:
incidentCreatedTrigger:
$ref: "#/components/schemas/IncidentCreatedTrigger"
startStepNames:
$ref: "#/components/schemas/StartStepNames"
required:
- incidentCreatedTrigger
type: object
IncidentFieldAttributes:
description: Dynamic fields for which selections can be made, with field names as keys.
oneOf:
Expand Down Expand Up @@ -49009,6 +49050,27 @@ components:
required:
- data
type: object
IncidentImpactCreatedTrigger:
description: "Trigger a workflow when an impact is created for an Incident."
properties:
executionLimit:
$ref: "#/components/schemas/ExecutionLimit"
incidentType:
description: "The type of Incident that triggers the workflow."
type: string
tagCondition:
$ref: "#/components/schemas/IncidentCondition"
type: object
IncidentImpactCreatedTriggerWrapper:
description: "Schema for an Incident Impact Created trigger."
properties:
incidentImpactCreatedTrigger:
$ref: "#/components/schemas/IncidentImpactCreatedTrigger"
startStepNames:
$ref: "#/components/schemas/StartStepNames"
required:
- incidentImpactCreatedTrigger
type: object
IncidentImpactFieldChoice:
description: A choice option for a dropdown or multiselect impact field.
properties:
Expand Down Expand Up @@ -49307,6 +49369,27 @@ components:
type: string
x-enum-varnames:
- INCIDENT_IMPACTS
IncidentImpactUpdatedTrigger:
description: "Trigger a workflow when an impact is updated for an Incident."
properties:
executionLimit:
$ref: "#/components/schemas/ExecutionLimit"
incidentType:
description: "The type of Incident that triggers the workflow."
type: string
tagCondition:
$ref: "#/components/schemas/IncidentCondition"
type: object
IncidentImpactUpdatedTriggerWrapper:
description: "Schema for an Incident Impact Updated trigger."
properties:
incidentImpactUpdatedTrigger:
$ref: "#/components/schemas/IncidentImpactUpdatedTrigger"
startStepNames:
$ref: "#/components/schemas/StartStepNames"
required:
- incidentImpactUpdatedTrigger
type: object
IncidentImpactsResponse:
description: Response with a list of incident impacts.
properties:
Expand Down Expand Up @@ -50528,6 +50611,27 @@ components:
type: string
x-enum-varnames:
- INCIDENT_POSTMORTEMS
IncidentPostmortemUpdatedTrigger:
description: "Trigger a workflow when a postmortem is updated for an Incident."
properties:
executionLimit:
$ref: "#/components/schemas/ExecutionLimit"
incidentType:
description: "The type of Incident that triggers the workflow."
type: string
tagCondition:
$ref: "#/components/schemas/IncidentCondition"
type: object
IncidentPostmortemUpdatedTriggerWrapper:
description: "Schema for an Incident Postmortem Updated trigger."
properties:
incidentPostmortemUpdatedTrigger:
$ref: "#/components/schemas/IncidentPostmortemUpdatedTrigger"
startStepNames:
$ref: "#/components/schemas/StartStepNames"
required:
- incidentPostmortemUpdatedTrigger
type: object
IncidentRelatedObject:
description: Object related to an incident.
enum:
Expand Down Expand Up @@ -50558,6 +50662,27 @@ components:
type: string
x-enum-varnames:
- INCIDENTS
IncidentResponderCreatedTrigger:
description: "Trigger a workflow when a responder is created for an Incident."
properties:
executionLimit:
$ref: "#/components/schemas/ExecutionLimit"
incidentType:
description: "The type of Incident that triggers the workflow."
type: string
tagCondition:
$ref: "#/components/schemas/IncidentCondition"
type: object
IncidentResponderCreatedTriggerWrapper:
description: "Schema for an Incident Responder Created trigger."
properties:
incidentResponderCreatedTrigger:
$ref: "#/components/schemas/IncidentResponderCreatedTrigger"
startStepNames:
$ref: "#/components/schemas/StartStepNames"
required:
- incidentResponderCreatedTrigger
type: object
IncidentResponderDataAttributesResponse:
description: Attributes of an incident responder in a response.
properties:
Expand Down Expand Up @@ -51311,6 +51436,55 @@ components:
required:
- data
type: object
IncidentSavedTrigger:
description: "Trigger a workflow when an Incident is declared or updated."
properties:
executionLimit:
$ref: "#/components/schemas/ExecutionLimit"
incidentType:
description: "The type of Incident that triggers the workflow."
type: string
serialExecution:
$ref: "#/components/schemas/SerialExecution"
tagCondition:
$ref: "#/components/schemas/IncidentCondition"
type: object
IncidentSavedTriggerWrapper:
description: "Schema for an Incident Declared or Updated trigger."
properties:
incidentSavedTrigger:
$ref: "#/components/schemas/IncidentSavedTrigger"
startStepNames:
$ref: "#/components/schemas/StartStepNames"
required:
- incidentSavedTrigger
type: object
IncidentScheduleTrigger:
description: "Trigger a workflow on a schedule for an Incident."
properties:
incidentType:
description: "The type of Incident that triggers the workflow."
type: string
rrule:
description: "The recurrence rule for the schedule, expressed as an iCalendar `RRULE` string."
example: "DTSTART:20241220T151700Z\nRRULE:FREQ=MONTHLY"
minLength: 1
type: string
tagCondition:
$ref: "#/components/schemas/IncidentCondition"
required:
- rrule
type: object
IncidentScheduleTriggerWrapper:
description: "Schema for an Incident Schedule trigger."
properties:
incidentScheduleTrigger:
$ref: "#/components/schemas/IncidentScheduleTrigger"
startStepNames:
$ref: "#/components/schemas/StartStepNames"
required:
- incidentScheduleTrigger
type: object
IncidentSearchResponse:
description: Response with incidents and facets.
properties:
Expand Down Expand Up @@ -51604,6 +51778,24 @@ components:
- SEV_3
- SEV_4
- SEV_5
IncidentTagValue:
description: "An Incident tag and its accepted values."
properties:
tag:
description: "The Incident tag to match."
example: ""
type: string
values:
description: "The accepted values for the Incident tag."
example:
- ""
items:
type: string
type: array
required:
- tag
- values
type: object
IncidentTimelineCellCreateAttributes:
description: The timeline cell's attributes for a create request.
oneOf:
Expand Down Expand Up @@ -52027,6 +52219,9 @@ components:
properties:
rateLimit:
$ref: "#/components/schemas/TriggerRateLimit"
version:
description: "Version of the Incident Manual trigger."
type: string
type: object
IncidentTriggerWrapper:
description: "Schema for an Incident-based trigger."
Expand Down Expand Up @@ -103703,6 +103898,16 @@ components:
- REPLACEMENT_STRING
- PARTIAL_REPLACEMENT_FROM_BEGINNING
- PARTIAL_REPLACEMENT_FROM_END
SerialExecution:
description: "Whether to execute the workflow serially for an Incident."
properties:
enabled:
description: "Whether serial execution is enabled."
example: false
type: boolean
required:
- enabled
type: object
ServiceAccessToken:
description: Datadog access token.
properties:
Expand Down Expand Up @@ -106786,12 +106991,38 @@ components:
- channel_name
- redirect_url
type: object
SlackReactionConfig:
description: "Configuration for a Slack emoji reaction trigger."
properties:
reactionEmoji:
description: "The Slack emoji reaction name."
example: L
minLength: 1
type: string
teamId:
description: "The Slack workspace ID."
example: L
minLength: 1
type: string
required:
- teamId
- reactionEmoji
type: object
SlackTrigger:
description: "Trigger a workflow from Slack. The workflow must be published."
properties:
reactionTriggers:
description: "Slack emoji reactions that trigger the workflow."
items:
$ref: "#/components/schemas/SlackReactionConfig"
type: array
uniqueItems: true
type: object
SlackTriggerWrapper:
description: "Schema for a Slack-based trigger."
properties:
slackTrigger:
description: "Trigger a workflow from Slack. The workflow must be published."
type: object
$ref: "#/components/schemas/SlackTrigger"
startStepNames:
$ref: "#/components/schemas/StartStepNames"
required:
Expand Down Expand Up @@ -118679,6 +118910,13 @@ components:
- $ref: "#/components/schemas/DashboardTriggerWrapper"
- $ref: "#/components/schemas/FormTriggerWrapper"
- $ref: "#/components/schemas/GithubWebhookTriggerWrapper"
- $ref: "#/components/schemas/IncidentCreatedTriggerWrapper"
- $ref: "#/components/schemas/IncidentImpactCreatedTriggerWrapper"
- $ref: "#/components/schemas/IncidentImpactUpdatedTriggerWrapper"
- $ref: "#/components/schemas/IncidentPostmortemUpdatedTriggerWrapper"
- $ref: "#/components/schemas/IncidentResponderCreatedTriggerWrapper"
- $ref: "#/components/schemas/IncidentSavedTriggerWrapper"
- $ref: "#/components/schemas/IncidentScheduleTriggerWrapper"
- $ref: "#/components/schemas/IncidentTriggerWrapper"
- $ref: "#/components/schemas/MonitorTriggerWrapper"
- $ref: "#/components/schemas/NotebookTriggerWrapper"
Expand Down
40 changes: 40 additions & 0 deletions src/datadog_api_client/v2/model/execution_limit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations


from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
)


class ExecutionLimit(ModelNormal):
validations = {
"count": {
"inclusive_maximum": 9999,
"inclusive_minimum": 1,
},
}

@cached_property
def openapi_types(_):
return {
"count": (int,),
}

attribute_map = {
"count": "count",
}

def __init__(self_, count: int, **kwargs):
"""
The maximum number of times to execute a workflow for an Incident.

:param count: The maximum number of workflow executions.
:type count: int
"""
super().__init__(kwargs)

self_.count = count
Loading
Loading