Skip to content

Commit 0885056

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Add more triggers for workflow automation (#571)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent e67bb2a commit 0885056

27 files changed

+594
-37
lines changed

.apigentools-info

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-03-24 14:58:35.892637",
8-
"spec_repo_commit": "764de5f0"
7+
"regenerated": "2025-03-25 18:26:27.178711",
8+
"spec_repo_commit": "b25d7c85"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-24 14:58:35.908322",
13-
"spec_repo_commit": "764de5f0"
12+
"regenerated": "2025-03-25 18:26:27.193950",
13+
"spec_repo_commit": "b25d7c85"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+62-14
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ components:
10951095
x-enum-varnames:
10961096
- API_KEYS
10971097
APITrigger:
1098-
description: Trigger a workflow VIA an API. The workflow must be published.
1098+
description: Trigger a workflow from an API request. The workflow must be published.
10991099
properties:
11001100
rateLimit:
11011101
$ref: '#/components/schemas/TriggerRateLimit'
@@ -2313,7 +2313,7 @@ components:
23132313
description: Schema for an App-based trigger.
23142314
properties:
23152315
appTrigger:
2316-
description: Trigger a workflow VIA an App.
2316+
description: Trigger a workflow from an App.
23172317
type: object
23182318
startStepNames:
23192319
$ref: '#/components/schemas/StartStepNames'
@@ -6525,7 +6525,7 @@ components:
65256525
- IN_PROGRESS
65266526
- CLOSED
65276527
CaseTrigger:
6528-
description: Trigger a workflow VIA a Case. For automatic triggering a handle
6528+
description: Trigger a workflow from a Case. For automatic triggering a handle
65296529
must be configured and the workflow must be published.
65306530
properties:
65316531
rateLimit:
@@ -6762,7 +6762,7 @@ components:
67626762
description: Schema for a Change Event-based trigger.
67636763
properties:
67646764
changeEventTrigger:
6765-
description: Trigger a workflow VIA a Change Event.
6765+
description: Trigger a workflow from a Change Event.
67666766
type: object
67676767
startStepNames:
67686768
$ref: '#/components/schemas/StartStepNames'
@@ -10589,7 +10589,7 @@ components:
1058910589
description: Schema for a Dashboard-based trigger.
1059010590
properties:
1059110591
dashboardTrigger:
10592-
description: Trigger a workflow VIA a Dashboard.
10592+
description: Trigger a workflow from a Dashboard.
1059310593
type: object
1059410594
startStepNames:
1059510595
$ref: '#/components/schemas/StartStepNames'
@@ -10813,6 +10813,17 @@ components:
1081310813
type: string
1081410814
x-enum-varnames:
1081510815
- DATATRANSFORM
10816+
DatabaseMonitoringTriggerWrapper:
10817+
description: Schema for a Database Monitoring-based trigger.
10818+
properties:
10819+
databaseMonitoringTrigger:
10820+
description: Trigger a workflow from Database Monitoring.
10821+
type: object
10822+
startStepNames:
10823+
$ref: '#/components/schemas/StartStepNames'
10824+
required:
10825+
- databaseMonitoringTrigger
10826+
type: object
1081610827
Date:
1081710828
description: Date as Unix timestamp in milliseconds.
1081810829
example: 1722439510282
@@ -14393,9 +14404,9 @@ components:
1439314404
example: https://github.com/organization/example-repository
1439414405
type: string
1439514406
GithubWebhookTrigger:
14396-
description: Trigger a workflow VIA GitHub webhook. To trigger a workflow from
14397-
GitHub, you must set a `webhookSecret`. In your GitHub Webhook Settings, set
14398-
the Payload URL to "base_url"/api/v2/workflows/"workflow_id"/webhook?orgId="org_id",
14407+
description: Trigger a workflow from a GitHub webhook. To trigger a workflow
14408+
from GitHub, you must set a `webhookSecret`. In your GitHub Webhook Settings,
14409+
set the Payload URL to "base_url"/api/v2/workflows/"workflow_id"/webhook?orgId="org_id",
1439914410
select application/json for the content type, and be highly recommend enabling
1440014411
SSL verification for security. The workflow must be published.
1440114412
properties:
@@ -16706,7 +16717,7 @@ components:
1670616717
x-enum-varnames:
1670716718
- INCIDENT_TODOS
1670816719
IncidentTrigger:
16709-
description: Trigger a workflow VIA an Incident. For automatic triggering a
16720+
description: Trigger a workflow from an Incident. For automatic triggering a
1671016721
handle must be configured and the workflow must be published.
1671116722
properties:
1671216723
rateLimit:
@@ -21179,7 +21190,7 @@ components:
2117921190
$ref: '#/components/schemas/MonitorDowntimeMatchResourceType'
2118021191
type: object
2118121192
MonitorTrigger:
21182-
description: Trigger a workflow VIA a Monitor. For automatic triggering a handle
21193+
description: Trigger a workflow from a Monitor. For automatic triggering a handle
2118321194
must be configured and the workflow must be published.
2118421195
properties:
2118521196
rateLimit:
@@ -21317,6 +21328,17 @@ components:
2131721328
meta:
2131821329
$ref: '#/components/schemas/MonthlyCostAttributionMeta'
2131921330
type: object
21331+
NotebookTriggerWrapper:
21332+
description: Schema for a Notebook-based trigger.
21333+
properties:
21334+
notebookTrigger:
21335+
description: Trigger a workflow from a Notebook.
21336+
type: object
21337+
startStepNames:
21338+
$ref: '#/components/schemas/StartStepNames'
21339+
required:
21340+
- notebookTrigger
21341+
type: object
2132021342
NotificationRule:
2132121343
description: 'Notification rules allow full control over notifications generated
2132221344
by the various Datadog security products.
@@ -26139,7 +26161,7 @@ components:
2613926161
$ref: '#/components/schemas/ScalarFormulaResponseType'
2614026162
type: object
2614126163
ScheduleTrigger:
26142-
description: Trigger a workflow VIA a Schedule. The workflow must be published.
26164+
description: Trigger a workflow from a Schedule. The workflow must be published.
2614326165
properties:
2614426166
rruleExpression:
2614526167
description: Recurrence rule expression for scheduling.
@@ -28436,7 +28458,7 @@ components:
2843628458
type: string
2843728459
type: object
2843828460
SecurityTrigger:
28439-
description: Trigger a workflow VIA a Security Signal or Finding. For automatic
28461+
description: Trigger a workflow from a Security Signal or Finding. For automatic
2844028462
triggering a handle must be configured and the workflow must be published.
2844128463
properties:
2844228464
rateLimit:
@@ -28475,6 +28497,17 @@ components:
2847528497
required:
2847628498
- trigger_source
2847728499
type: object
28500+
SelfServiceTriggerWrapper:
28501+
description: Schema for a Self Service-based trigger.
28502+
properties:
28503+
selfServiceTrigger:
28504+
description: Trigger a workflow from Self Service.
28505+
type: object
28506+
startStepNames:
28507+
$ref: '#/components/schemas/StartStepNames'
28508+
required:
28509+
- selfServiceTrigger
28510+
type: object
2847828511
SensitiveDataScannerConfigRequest:
2847928512
description: Group reorder request.
2848028513
properties:
@@ -30195,7 +30228,7 @@ components:
3019530228
description: Schema for a Slack-based trigger.
3019630229
properties:
3019730230
slackTrigger:
30198-
description: Trigger a workflow VIA Slack. The workflow must be published.
30231+
description: Trigger a workflow from Slack. The workflow must be published.
3019930232
type: object
3020030233
startStepNames:
3020130234
$ref: '#/components/schemas/StartStepNames'
@@ -30249,6 +30282,17 @@ components:
3024930282
required:
3025030283
- attributes
3025130284
type: object
30285+
SoftwareCatalogTriggerWrapper:
30286+
description: Schema for a Software Catalog-based trigger.
30287+
properties:
30288+
softwareCatalogTrigger:
30289+
description: Trigger a workflow from Software Catalog.
30290+
type: object
30291+
startStepNames:
30292+
$ref: '#/components/schemas/StartStepNames'
30293+
required:
30294+
- softwareCatalogTrigger
30295+
type: object
3025230296
SortDirection:
3025330297
default: desc
3025430298
description: The direction to sort by.
@@ -32108,13 +32152,17 @@ components:
3210832152
- $ref: '#/components/schemas/AppTriggerWrapper'
3210932153
- $ref: '#/components/schemas/CaseTriggerWrapper'
3211032154
- $ref: '#/components/schemas/ChangeEventTriggerWrapper'
32155+
- $ref: '#/components/schemas/DatabaseMonitoringTriggerWrapper'
3211132156
- $ref: '#/components/schemas/DashboardTriggerWrapper'
3211232157
- $ref: '#/components/schemas/GithubWebhookTriggerWrapper'
3211332158
- $ref: '#/components/schemas/IncidentTriggerWrapper'
3211432159
- $ref: '#/components/schemas/MonitorTriggerWrapper'
32160+
- $ref: '#/components/schemas/NotebookTriggerWrapper'
3211532161
- $ref: '#/components/schemas/ScheduleTriggerWrapper'
3211632162
- $ref: '#/components/schemas/SecurityTriggerWrapper'
32163+
- $ref: '#/components/schemas/SelfServiceTriggerWrapper'
3211732164
- $ref: '#/components/schemas/SlackTriggerWrapper'
32165+
- $ref: '#/components/schemas/SoftwareCatalogTriggerWrapper'
3211832166
- $ref: '#/components/schemas/WorkflowTriggerWrapper'
3211932167
TriggerRateLimit:
3212032168
description: Defines a rate limit for a trigger.
@@ -33743,7 +33791,7 @@ components:
3374333791
startStepNames:
3374433792
$ref: '#/components/schemas/StartStepNames'
3374533793
workflowTrigger:
33746-
description: Trigger a workflow VIA the Datadog UI. Only required if no
33794+
description: Trigger a workflow from the Datadog UI. Only required if no
3374733795
other trigger exists.
3374833796
type: object
3374933797
required:

src/datadogV2/model/mod.rs

+8
Original file line numberDiff line numberDiff line change
@@ -4152,6 +4152,8 @@ pub mod model_case_trigger;
41524152
pub use self::model_case_trigger::CaseTrigger;
41534153
pub mod model_change_event_trigger_wrapper;
41544154
pub use self::model_change_event_trigger_wrapper::ChangeEventTriggerWrapper;
4155+
pub mod model_database_monitoring_trigger_wrapper;
4156+
pub use self::model_database_monitoring_trigger_wrapper::DatabaseMonitoringTriggerWrapper;
41554157
pub mod model_dashboard_trigger_wrapper;
41564158
pub use self::model_dashboard_trigger_wrapper::DashboardTriggerWrapper;
41574159
pub mod model_github_webhook_trigger_wrapper;
@@ -4166,6 +4168,8 @@ pub mod model_monitor_trigger_wrapper;
41664168
pub use self::model_monitor_trigger_wrapper::MonitorTriggerWrapper;
41674169
pub mod model_monitor_trigger;
41684170
pub use self::model_monitor_trigger::MonitorTrigger;
4171+
pub mod model_notebook_trigger_wrapper;
4172+
pub use self::model_notebook_trigger_wrapper::NotebookTriggerWrapper;
41694173
pub mod model_schedule_trigger_wrapper;
41704174
pub use self::model_schedule_trigger_wrapper::ScheduleTriggerWrapper;
41714175
pub mod model_schedule_trigger;
@@ -4174,8 +4178,12 @@ pub mod model_security_trigger_wrapper;
41744178
pub use self::model_security_trigger_wrapper::SecurityTriggerWrapper;
41754179
pub mod model_security_trigger;
41764180
pub use self::model_security_trigger::SecurityTrigger;
4181+
pub mod model_self_service_trigger_wrapper;
4182+
pub use self::model_self_service_trigger_wrapper::SelfServiceTriggerWrapper;
41774183
pub mod model_slack_trigger_wrapper;
41784184
pub use self::model_slack_trigger_wrapper::SlackTriggerWrapper;
4185+
pub mod model_software_catalog_trigger_wrapper;
4186+
pub use self::model_software_catalog_trigger_wrapper::SoftwareCatalogTriggerWrapper;
41794187
pub mod model_workflow_trigger_wrapper;
41804188
pub use self::model_workflow_trigger_wrapper::WorkflowTriggerWrapper;
41814189
pub mod model_trigger;

src/datadogV2/model/model_api_trigger.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use serde::{Deserialize, Deserializer, Serialize};
66
use serde_with::skip_serializing_none;
77
use std::fmt::{self, Formatter};
88

9-
/// Trigger a workflow VIA an API. The workflow must be published.
9+
/// Trigger a workflow from an API request. The workflow must be published.
1010
#[non_exhaustive]
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]

src/datadogV2/model/model_api_trigger_wrapper.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct APITriggerWrapper {
14-
/// Trigger a workflow VIA an API. The workflow must be published.
14+
/// Trigger a workflow from an API request. The workflow must be published.
1515
#[serde(rename = "apiTrigger")]
1616
pub api_trigger: crate::datadogV2::model::APITrigger,
1717
/// A list of steps that run first after a trigger fires.

src/datadogV2/model/model_app_trigger_wrapper.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct AppTriggerWrapper {
14-
/// Trigger a workflow VIA an App.
14+
/// Trigger a workflow from an App.
1515
#[serde(rename = "appTrigger")]
1616
pub app_trigger: std::collections::BTreeMap<String, serde_json::Value>,
1717
/// A list of steps that run first after a trigger fires.

src/datadogV2/model/model_case_trigger.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use serde::{Deserialize, Deserializer, Serialize};
66
use serde_with::skip_serializing_none;
77
use std::fmt::{self, Formatter};
88

9-
/// Trigger a workflow VIA a Case. For automatic triggering a handle must be configured and the workflow must be published.
9+
/// Trigger a workflow from a Case. For automatic triggering a handle must be configured and the workflow must be published.
1010
#[non_exhaustive]
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]

src/datadogV2/model/model_case_trigger_wrapper.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct CaseTriggerWrapper {
14-
/// Trigger a workflow VIA a Case. For automatic triggering a handle must be configured and the workflow must be published.
14+
/// Trigger a workflow from a Case. For automatic triggering a handle must be configured and the workflow must be published.
1515
#[serde(rename = "caseTrigger")]
1616
pub case_trigger: crate::datadogV2::model::CaseTrigger,
1717
/// A list of steps that run first after a trigger fires.

src/datadogV2/model/model_change_event_trigger_wrapper.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct ChangeEventTriggerWrapper {
14-
/// Trigger a workflow VIA a Change Event.
14+
/// Trigger a workflow from a Change Event.
1515
#[serde(rename = "changeEventTrigger")]
1616
pub change_event_trigger: std::collections::BTreeMap<String, serde_json::Value>,
1717
/// A list of steps that run first after a trigger fires.

src/datadogV2/model/model_dashboard_trigger_wrapper.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct DashboardTriggerWrapper {
14-
/// Trigger a workflow VIA a Dashboard.
14+
/// Trigger a workflow from a Dashboard.
1515
#[serde(rename = "dashboardTrigger")]
1616
pub dashboard_trigger: std::collections::BTreeMap<String, serde_json::Value>,
1717
/// A list of steps that run first after a trigger fires.

0 commit comments

Comments
 (0)