Skip to content

Commit 3cd3ebe

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 0e2a726 of spec repo (#32775)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 9275069 commit 3cd3ebe

File tree

5 files changed

+77
-17
lines changed

5 files changed

+77
-17
lines changed

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

Lines changed: 6 additions & 6 deletions
Large diffs are not rendered by default.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"data": {
3+
"attributes": {
4+
"filter": {
5+
"scope": "test:example-monitor"
6+
},
7+
"name": "test rule",
8+
"recipients": [
9+
"slack-test-channel",
10+
"jira-test"
11+
]
12+
},
13+
"type": "monitor-notification-rule"
14+
}
15+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"data": {
3+
"attributes": {
4+
"filter": {
5+
"scope": "test:example-monitor"
6+
},
7+
"name": "updated rule",
8+
"recipients": [
9+
"slack-test-channel"
10+
]
11+
},
12+
"id": "00000000-0000-1234-0000-000000000000",
13+
"type": "monitor-notification-rule"
14+
}
15+
}

data/api/v2/CodeExamples.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,6 +1108,11 @@
11081108
"group": "monitors",
11091109
"suffix": "_1181818787",
11101110
"description": "Create a monitor notification rule with conditional recipients returns \"OK\" response"
1111+
},
1112+
{
1113+
"group": "monitors",
1114+
"suffix": "_1379932371",
1115+
"description": "Create a monitor notification rule with scope returns \"OK\" response"
11111116
}
11121117
],
11131118
"CreateMonitorUserTemplate": [
@@ -1134,6 +1139,11 @@
11341139
"group": "monitors",
11351140
"suffix": "_1400905713",
11361141
"description": "Update a monitor notification rule with conditional_recipients returns \"OK\" response"
1142+
},
1143+
{
1144+
"group": "monitors",
1145+
"suffix": "_1446058210",
1146+
"description": "Update a monitor notification rule with scope returns \"OK\" response"
11371147
}
11381148
],
11391149
"UpdateMonitorUserTemplate": [

data/api/v2/full_spec.yaml

Lines changed: 31 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32955,15 +32955,23 @@ components:
3295532955
properties:
3295632956
recipients:
3295732957
$ref: '#/components/schemas/MonitorNotificationRuleRecipients'
32958+
description: A list of recipients to notify. Uses the same format as the
32959+
monitor `message` field. Must not start with an '@'.
3295832960
scope:
32959-
$ref: '#/components/schemas/MonitorNotificationRuleScope'
32961+
$ref: '#/components/schemas/MonitorNotificationRuleConditionScope'
3296032962
required:
3296132963
- scope
3296232964
- recipients
3296332965
type: object
32966+
MonitorNotificationRuleConditionScope:
32967+
description: The scope to which the monitor applied.
32968+
example: transition_type:alert
32969+
maxLength: 3000
32970+
minLength: 1
32971+
type: string
3296432972
MonitorNotificationRuleConditionalRecipients:
3296532973
description: Use conditional recipients to define different recipients for different
32966-
situations.
32974+
situations. Cannot be used with `recipients`.
3296732975
properties:
3296832976
conditions:
3296932977
description: Conditions of the notification rule.
@@ -33013,12 +33021,30 @@ components:
3301333021
description: Filter used to associate the notification rule with monitors.
3301433022
oneOf:
3301533023
- $ref: '#/components/schemas/MonitorNotificationRuleFilterTags'
33024+
- $ref: '#/components/schemas/MonitorNotificationRuleFilterScope'
33025+
MonitorNotificationRuleFilterScope:
33026+
additionalProperties: false
33027+
description: Filter monitor notifications. A monitor notification must match
33028+
the scope.
33029+
properties:
33030+
scope:
33031+
description: A scope composed of one or several key:value pairs, which can
33032+
be used to filter monitor notifications on monitor and group tags.
33033+
example: service:(foo OR bar) AND team:test NOT environment:staging
33034+
maxLength: 3000
33035+
minLength: 1
33036+
type: string
33037+
required:
33038+
- scope
33039+
type: object
3301633040
MonitorNotificationRuleFilterTags:
3301733041
additionalProperties: false
33018-
description: Filter monitors by tags. Monitors must match all tags.
33042+
description: Filter monitor notifications by tags. A monitor notification must
33043+
match all tags.
3301933044
properties:
3302033045
tags:
33021-
description: A list of monitor tags.
33046+
description: A list of tags (key:value pairs), which can be used to filter
33047+
monitor notifications on monitor and group tags.
3302233048
example:
3302333049
- team:product
3302433050
- host:abc
@@ -33058,7 +33084,7 @@ components:
3305833084
type: string
3305933085
MonitorNotificationRuleRecipients:
3306033086
description: A list of recipients to notify. Uses the same format as the monitor
33061-
`message` field. Must not start with an '@'.
33087+
`message` field. Must not start with an '@'. Cannot be used with `conditional_recipients`.
3306233088
example:
3306333089
- slack-test-channel
3306433090
- jira-test
@@ -33141,12 +33167,6 @@ components:
3314133167
description: An object related to a monitor notification rule.
3314233168
oneOf:
3314333169
- $ref: '#/components/schemas/User'
33144-
MonitorNotificationRuleScope:
33145-
description: The scope to which the monitor applied.
33146-
example: transition_type:alert
33147-
maxLength: 3000
33148-
minLength: 1
33149-
type: string
3315033170
MonitorNotificationRuleUpdateRequest:
3315133171
description: Request for updating a monitor notification rule.
3315233172
properties:

0 commit comments

Comments
 (0)