Skip to content

Commit 51c00e7

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 3094646 of spec repo (#3619)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent acadced commit 51c00e7

7 files changed

Lines changed: 31 additions & 21 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36811,7 +36811,10 @@ components:
3681136811
- name
3681236812
type: object
3681336813
MonitorNotificationRuleCondition:
36814-
description: Conditions for `conditional_recipients`.
36814+
description: 'A conditional recipient rule composed of a `scope` (the matching
36815+
condition) and
36816+
36817+
`recipients` (who to notify when it matches).'
3681536818
properties:
3681636819
recipients:
3681736820
$ref: '#/components/schemas/MonitorNotificationRuleRecipients'
@@ -36824,8 +36827,13 @@ components:
3682436827
- recipients
3682536828
type: object
3682636829
MonitorNotificationRuleConditionScope:
36827-
description: The scope to which the monitor applied.
36828-
example: transition_type:alert
36830+
description: 'Defines the condition under which the recipients are notified.
36831+
Supported formats:
36832+
36833+
- Monitor status condition using `transition_type:<status>`, for example `transition_type:is_alert`.
36834+
36835+
- A single tag key:value pair, for example `env:prod`.'
36836+
example: transition_type:is_alert
3682936837
maxLength: 3000
3683036838
minLength: 1
3683136839
type: string
@@ -36878,18 +36886,18 @@ components:
3687836886
$ref: '#/components/schemas/MonitorNotificationRuleResourceType'
3687936887
type: object
3688036888
MonitorNotificationRuleFilter:
36881-
description: Filter used to associate the notification rule with monitors.
36889+
description: Specifies the matching criteria for monitor notifications.
3688236890
oneOf:
3688336891
- $ref: '#/components/schemas/MonitorNotificationRuleFilterTags'
3688436892
- $ref: '#/components/schemas/MonitorNotificationRuleFilterScope'
3688536893
MonitorNotificationRuleFilterScope:
3688636894
additionalProperties: false
36887-
description: Filter monitor notifications. A monitor notification must match
36888-
the scope.
36895+
description: Filters monitor notifications using a scope expression over key:value
36896+
pairs with boolean logic (AND, OR, NOT).
3688936897
properties:
3689036898
scope:
36891-
description: A scope composed of one or several key:value pairs, which can
36892-
be used to filter monitor notifications on monitor and group tags.
36899+
description: A scope expression composed by key:value pairs (e.g. `service:foo`)
36900+
with boolean operators (AND, OR, NOT) and parentheses for grouping.
3689336901
example: service:(foo OR bar) AND team:test NOT environment:staging
3689436902
maxLength: 3000
3689536903
minLength: 1
@@ -36899,12 +36907,11 @@ components:
3689936907
type: object
3690036908
MonitorNotificationRuleFilterTags:
3690136909
additionalProperties: false
36902-
description: Filter monitor notifications by tags. A monitor notification must
36903-
match all tags.
36910+
description: Filters monitor notifications by a list of tag key:value pairs.
3690436911
properties:
3690536912
tags:
36906-
description: A list of tags (key:value pairs), which can be used to filter
36907-
monitor notifications on monitor and group tags.
36913+
description: A list of tag key:value pairs (e.g. `team:product`). All tags
36914+
must match (AND semantics).
3690836915
example:
3690936916
- team:product
3691036917
- host:abc

api/datadogV2/model_monitor_notification_rule_attributes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
type MonitorNotificationRuleAttributes struct {
1515
// Use conditional recipients to define different recipients for different situations. Cannot be used with `recipients`.
1616
ConditionalRecipients *MonitorNotificationRuleConditionalRecipients `json:"conditional_recipients,omitempty"`
17-
// Filter used to associate the notification rule with monitors.
17+
// Specifies the matching criteria for monitor notifications.
1818
Filter *MonitorNotificationRuleFilter `json:"filter,omitempty"`
1919
// The name of the monitor notification rule.
2020
Name string `json:"name"`

api/datadogV2/model_monitor_notification_rule_condition.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@ import (
1010
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
1111
)
1212

13-
// MonitorNotificationRuleCondition Conditions for `conditional_recipients`.
13+
// MonitorNotificationRuleCondition A conditional recipient rule composed of a `scope` (the matching condition) and
14+
// `recipients` (who to notify when it matches).
1415
type MonitorNotificationRuleCondition struct {
1516
// 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`.
1617
Recipients []string `json:"recipients"`
17-
// The scope to which the monitor applied.
18+
// Defines the condition under which the recipients are notified. Supported formats:
19+
// - Monitor status condition using `transition_type:<status>`, for example `transition_type:is_alert`.
20+
// - A single tag key:value pair, for example `env:prod`.
1821
Scope string `json:"scope"`
1922
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
2023
UnparsedObject map[string]interface{} `json:"-"`

api/datadogV2/model_monitor_notification_rule_filter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
99
)
1010

11-
// MonitorNotificationRuleFilter - Filter used to associate the notification rule with monitors.
11+
// MonitorNotificationRuleFilter - Specifies the matching criteria for monitor notifications.
1212
type MonitorNotificationRuleFilter struct {
1313
MonitorNotificationRuleFilterTags *MonitorNotificationRuleFilterTags
1414
MonitorNotificationRuleFilterScope *MonitorNotificationRuleFilterScope

api/datadogV2/model_monitor_notification_rule_filter_scope.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import (
1010
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
1111
)
1212

13-
// MonitorNotificationRuleFilterScope Filter monitor notifications. A monitor notification must match the scope.
13+
// MonitorNotificationRuleFilterScope Filters monitor notifications using a scope expression over key:value pairs with boolean logic (AND, OR, NOT).
1414
type MonitorNotificationRuleFilterScope struct {
15-
// A scope composed of one or several key:value pairs, which can be used to filter monitor notifications on monitor and group tags.
15+
// A scope expression composed by key:value pairs (e.g. `service:foo`) with boolean operators (AND, OR, NOT) and parentheses for grouping.
1616
Scope string `json:"scope"`
1717
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
1818
UnparsedObject map[string]interface{} `json:"-"`

api/datadogV2/model_monitor_notification_rule_filter_tags.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import (
1010
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
1111
)
1212

13-
// MonitorNotificationRuleFilterTags Filter monitor notifications by tags. A monitor notification must match all tags.
13+
// MonitorNotificationRuleFilterTags Filters monitor notifications by a list of tag key:value pairs.
1414
type MonitorNotificationRuleFilterTags struct {
15-
// A list of tags (key:value pairs), which can be used to filter monitor notifications on monitor and group tags.
15+
// A list of tag key:value pairs (e.g. `team:product`). All tags must match (AND semantics).
1616
Tags []string `json:"tags"`
1717
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
1818
UnparsedObject map[string]interface{} `json:"-"`

api/datadogV2/model_monitor_notification_rule_response_attributes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type MonitorNotificationRuleResponseAttributes struct {
1616
ConditionalRecipients *MonitorNotificationRuleConditionalRecipients `json:"conditional_recipients,omitempty"`
1717
// Creation time of the monitor notification rule.
1818
Created *time.Time `json:"created,omitempty"`
19-
// Filter used to associate the notification rule with monitors.
19+
// Specifies the matching criteria for monitor notifications.
2020
Filter *MonitorNotificationRuleFilter `json:"filter,omitempty"`
2121
// Time the monitor notification rule was last modified.
2222
Modified *time.Time `json:"modified,omitempty"`

0 commit comments

Comments
 (0)