Skip to content
Merged
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
52 changes: 38 additions & 14 deletions hugo/content/en/api/v2/monitors/examples.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"data": {
"attributes": {
"filter": {
"tags": [
"test:example-monitor"
]
},
"name": "test rule",
"recipients": [
"slack-test-channel"
],
"rule_options": {
"is_threaded": true
}
},
"type": "monitor-notification-rule"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"data": {
"attributes": {
"filter": {
"tags": [
"test:example-monitor"
]
},
"name": "updated rule",
"recipients": [
"slack-test-channel"
],
"rule_options": {
"is_threaded": false
}
},
"id": "00000000-0000-1234-0000-000000000000",
"type": "monitor-notification-rule"
}
}
10 changes: 10 additions & 0 deletions hugo/data/api/v2/CodeExamples.json
Original file line number Diff line number Diff line change
Expand Up @@ -1837,6 +1837,11 @@
"suffix": "_1181818787",
"description": "Create a monitor notification rule with conditional recipients returns \"OK\" response"
},
{
"group": "monitors",
"suffix": "_292428701",
"description": "Create a monitor notification rule with rule options returns \"OK\" response"
},
{
"group": "monitors",
"suffix": "_1379932371",
Expand Down Expand Up @@ -1873,6 +1878,11 @@
"suffix": "_1400905713",
"description": "Update a monitor notification rule with conditional_recipients returns \"OK\" response"
},
{
"group": "monitors",
"suffix": "_365435820",
"description": "Update a monitor notification rule with rule options returns \"OK\" response"
},
{
"group": "monitors",
"suffix": "_1446058210",
Expand Down
15 changes: 15 additions & 0 deletions hugo/data/api/v2/full_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84328,6 +84328,8 @@ components:
$ref: "#/components/schemas/MonitorNotificationRuleName"
recipients:
$ref: "#/components/schemas/MonitorNotificationRuleRecipients"
rule_options:
$ref: "#/components/schemas/MonitorNotificationRuleOptions"
required: [name]
type: object
MonitorNotificationRuleBundleConfig:
Expand Down Expand Up @@ -84468,6 +84470,17 @@ components:
maxLength: 1000
minLength: 1
type: string
MonitorNotificationRuleOptions:
description: Additional options for the monitor notification rule.
properties:
is_threaded:
description: |-
Whether notifications from this rule are threaded. When `true`, follow-up notifications for the same monitor alert are posted in Slack as replies to the first notification.
Cannot be `true` when `bundle_config` is set.
example: true
type: boolean
required: [is_threaded]
type: object
MonitorNotificationRuleRecipients:
description: |-
A list of recipients to notify. Uses the same format as the monitor `message` field. Must not start with an '@'. Cannot be used with `conditional_recipients`.
Expand Down Expand Up @@ -84545,6 +84558,8 @@ components:
$ref: "#/components/schemas/MonitorNotificationRuleName"
recipients:
$ref: "#/components/schemas/MonitorNotificationRuleRecipients"
rule_options:
$ref: "#/components/schemas/MonitorNotificationRuleOptions"
type: object
MonitorNotificationRuleResponseIncludedItem:
description: An object related to a monitor notification rule.
Expand Down
9 changes: 9 additions & 0 deletions hugo/data/changelog/monitors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,12 @@ entries:
- DeleteMonitorNotificationRule
- UpdateMonitorNotificationRule
title: Add monitor notification rules write permission definition
- change_type: modified
date: '2026-11-02'
link: https://github.com/DataDog/documentation/pull/41272
operations:
- CreateMonitorNotificationRule
- GetMonitorNotificationRule
- GetMonitorNotificationRules
- UpdateMonitorNotificationRule
title: Add rule_options to Monitor Notification Rule
Loading