Skip to content

Commit 81973f8

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-specLiuVII
authored
Regenerate client from commit 627a896 of spec repo (#31789)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: Mikhail Filipchuk <[email protected]>
1 parent 1a6eb07 commit 81973f8

File tree

7 files changed

+2358
-42
lines changed

7 files changed

+2358
-42
lines changed

content/en/api/v2/monitors/examples.json

Lines changed: 120 additions & 16 deletions
Large diffs are not rendered by default.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"data": {
3+
"attributes": {
4+
"filter": {
5+
"tags": [
6+
"test:example-monitor"
7+
]
8+
},
9+
"name": "test rule",
10+
"conditional_recipients": {
11+
"conditions": [
12+
{
13+
"scope": "transition_type:is_alert",
14+
"recipients": [
15+
"slack-test-channel",
16+
"jira-test"
17+
]
18+
}
19+
]
20+
}
21+
},
22+
"type": "monitor-notification-rule"
23+
}
24+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"data": {
3+
"attributes": {
4+
"filter": {
5+
"tags": [
6+
"test:example-monitor",
7+
"host:abc"
8+
]
9+
},
10+
"name": "updated rule",
11+
"conditional_recipients": {
12+
"conditions": [
13+
{
14+
"scope": "transition_type:is_alert",
15+
"recipients": [
16+
"slack-test-channel",
17+
"jira-test"
18+
]
19+
}
20+
]
21+
}
22+
},
23+
"id": "00000000-0000-1234-0000-000000000000",
24+
"type": "monitor-notification-rule"
25+
}
26+
}

data/api/v2/CodeExamples.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,11 @@
10211021
"group": "monitors",
10221022
"suffix": "",
10231023
"description": "Create a monitor notification rule returns \"OK\" response"
1024+
},
1025+
{
1026+
"group": "monitors",
1027+
"suffix": "_1181818787",
1028+
"description": "Create a monitor notification rule with conditional recipients returns \"OK\" response"
10241029
}
10251030
],
10261031
"CreateMonitorUserTemplate": [
@@ -1042,6 +1047,11 @@
10421047
"group": "monitors",
10431048
"suffix": "",
10441049
"description": "Update a monitor notification rule returns \"OK\" response"
1050+
},
1051+
{
1052+
"group": "monitors",
1053+
"suffix": "_1400905713",
1054+
"description": "Update a monitor notification rule with conditional_recipients returns \"OK\" response"
10451055
}
10461056
],
10471057
"UpdateMonitorUserTemplate": [

data/api/v2/full_spec.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29978,6 +29978,8 @@ components:
2997829978
additionalProperties: false
2997929979
description: Attributes of the monitor notification rule.
2998029980
properties:
29981+
conditional_recipients:
29982+
$ref: '#/components/schemas/MonitorNotificationRuleConditionalRecipients'
2998129983
filter:
2998229984
$ref: '#/components/schemas/MonitorNotificationRuleFilter'
2998329985
name:
@@ -29986,8 +29988,36 @@ components:
2998629988
$ref: '#/components/schemas/MonitorNotificationRuleRecipients'
2998729989
required:
2998829990
- name
29991+
type: object
29992+
MonitorNotificationRuleCondition:
29993+
description: Conditions for `conditional_recipients`.
29994+
properties:
29995+
recipients:
29996+
$ref: '#/components/schemas/MonitorNotificationRuleRecipients'
29997+
scope:
29998+
$ref: '#/components/schemas/MonitorNotificationRuleScope'
29999+
required:
30000+
- scope
2998930001
- recipients
2999030002
type: object
30003+
MonitorNotificationRuleConditionalRecipients:
30004+
description: Use conditional recipients to define different recipients for different
30005+
situations.
30006+
properties:
30007+
conditions:
30008+
description: Conditions of the notification rule.
30009+
items:
30010+
$ref: '#/components/schemas/MonitorNotificationRuleCondition'
30011+
maxItems: 10
30012+
minItems: 1
30013+
type: array
30014+
fallback_recipients:
30015+
$ref: '#/components/schemas/MonitorNotificationRuleRecipients'
30016+
description: If none of the `conditions` applied, `fallback_recipients`
30017+
will get notified.
30018+
required:
30019+
- conditions
30020+
type: object
2999130021
MonitorNotificationRuleCreateRequest:
2999230022
description: Request for creating a monitor notification rule.
2999330023
properties:
@@ -30127,6 +30157,8 @@ components:
3012730157
additionalProperties: {}
3012830158
description: Attributes of the monitor notification rule.
3012930159
properties:
30160+
conditional_recipients:
30161+
$ref: '#/components/schemas/MonitorNotificationRuleConditionalRecipients'
3013030162
created:
3013130163
description: Creation time of the monitor notification rule.
3013230164
example: 2020-01-02 03:04:00+00:00
@@ -30148,6 +30180,12 @@ components:
3014830180
description: An object related to a monitor notification rule.
3014930181
oneOf:
3015030182
- $ref: '#/components/schemas/User'
30183+
MonitorNotificationRuleScope:
30184+
description: The scope to which the monitor applied.
30185+
example: transition_type:alert
30186+
maxLength: 3000
30187+
minLength: 1
30188+
type: string
3015130189
MonitorNotificationRuleUpdateRequest:
3015230190
description: Request for updating a monitor notification rule.
3015330191
properties:

0 commit comments

Comments
 (0)