@@ -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
0 commit comments