Skip to content

Commit eb225c9

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 2e9da5b of spec repo (DataDog#39288)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent f644d91 commit eb225c9

5 files changed

Lines changed: 96 additions & 6 deletions

File tree

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

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

hugo/data/api/v2/CodeExamples.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1595,6 +1595,11 @@
15951595
"suffix": "",
15961596
"description": "Create a monitor notification rule returns \"OK\" response"
15971597
},
1598+
{
1599+
"group": "monitors",
1600+
"suffix": "_678042569",
1601+
"description": "Create a monitor notification rule with bundle config returns \"OK\" response"
1602+
},
15981603
{
15991604
"group": "monitors",
16001605
"suffix": "_1181818787",
@@ -1626,6 +1631,11 @@
16261631
"suffix": "",
16271632
"description": "Update a monitor notification rule returns \"OK\" response"
16281633
},
1634+
{
1635+
"group": "monitors",
1636+
"suffix": "_752032728",
1637+
"description": "Update a monitor notification rule with bundle config returns \"OK\" response"
1638+
},
16291639
{
16301640
"group": "monitors",
16311641
"suffix": "_1400905713",

hugo/data/api/v2/full_spec.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68863,6 +68863,8 @@ components:
6886368863
additionalProperties: false
6886468864
description: Attributes of the monitor notification rule.
6886568865
properties:
68866+
bundle_config:
68867+
$ref: "#/components/schemas/MonitorNotificationRuleBundleConfig"
6886668868
conditional_recipients:
6886768869
$ref: "#/components/schemas/MonitorNotificationRuleConditionalRecipients"
6886868870
filter:
@@ -68873,6 +68875,19 @@ components:
6887368875
$ref: "#/components/schemas/MonitorNotificationRuleRecipients"
6887468876
required: [name]
6887568877
type: object
68878+
MonitorNotificationRuleBundleConfig:
68879+
description: |-
68880+
Use bundle config to enable alert bundling to reduce monitor signal noises. **Note**: This feature is in preview and is subject to change.
68881+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
68882+
properties:
68883+
duration:
68884+
description: Duration of the bundling period.
68885+
example: 3600
68886+
format: int32
68887+
maximum: 2147483647
68888+
type: integer
68889+
required: [duration]
68890+
type: object
6887668891
MonitorNotificationRuleCondition:
6887768892
description: |-
6887868893
A conditional recipient rule composed of a `scope` (the matching condition) and
@@ -69055,6 +69070,8 @@ components:
6905569070
additionalProperties: {}
6905669071
description: Attributes of the monitor notification rule.
6905769072
properties:
69073+
bundle_config:
69074+
$ref: "#/components/schemas/MonitorNotificationRuleBundleConfig"
6905869075
conditional_recipients:
6905969076
$ref: "#/components/schemas/MonitorNotificationRuleConditionalRecipients"
6906069077
created:

0 commit comments

Comments
 (0)