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
31 changes: 19 additions & 12 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36811,7 +36811,10 @@ components:
- name
type: object
MonitorNotificationRuleCondition:
description: Conditions for `conditional_recipients`.
description: 'A conditional recipient rule composed of a `scope` (the matching
condition) and

`recipients` (who to notify when it matches).'
properties:
recipients:
$ref: '#/components/schemas/MonitorNotificationRuleRecipients'
Expand All @@ -36824,8 +36827,13 @@ components:
- recipients
type: object
MonitorNotificationRuleConditionScope:
description: The scope to which the monitor applied.
example: transition_type:alert
description: 'Defines the condition under which the recipients are notified.
Supported formats:

- Monitor status condition using `transition_type:<status>`, for example `transition_type:is_alert`.

- A single tag key:value pair, for example `env:prod`.'
example: transition_type:is_alert
maxLength: 3000
minLength: 1
type: string
Expand Down Expand Up @@ -36878,18 +36886,18 @@ components:
$ref: '#/components/schemas/MonitorNotificationRuleResourceType'
type: object
MonitorNotificationRuleFilter:
description: Filter used to associate the notification rule with monitors.
description: Specifies the matching criteria for monitor notifications.
oneOf:
- $ref: '#/components/schemas/MonitorNotificationRuleFilterTags'
- $ref: '#/components/schemas/MonitorNotificationRuleFilterScope'
MonitorNotificationRuleFilterScope:
additionalProperties: false
description: Filter monitor notifications. A monitor notification must match
the scope.
description: Filters monitor notifications using a scope expression over key:value
pairs with boolean logic (AND, OR, NOT).
properties:
scope:
description: A scope composed of one or several key:value pairs, which can
be used to filter monitor notifications on monitor and group tags.
description: A scope expression composed by key:value pairs (e.g. `service:foo`)
with boolean operators (AND, OR, NOT) and parentheses for grouping.
example: service:(foo OR bar) AND team:test NOT environment:staging
maxLength: 3000
minLength: 1
Expand All @@ -36899,12 +36907,11 @@ components:
type: object
MonitorNotificationRuleFilterTags:
additionalProperties: false
description: Filter monitor notifications by tags. A monitor notification must
match all tags.
description: Filters monitor notifications by a list of tag key:value pairs.
properties:
tags:
description: A list of tags (key:value pairs), which can be used to filter
monitor notifications on monitor and group tags.
description: A list of tag key:value pairs (e.g. `team:product`). All tags
must match (AND semantics).
example:
- team:product
- host:abc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class MonitorNotificationRuleAttributes {
*/
"conditionalRecipients"?: MonitorNotificationRuleConditionalRecipients;
/**
* Filter used to associate the notification rule with monitors.
* Specifies the matching criteria for monitor notifications.
*/
"filter"?: MonitorNotificationRuleFilter;
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
import { AttributeTypeMap } from "@datadog/datadog-api-client";

/**
* Conditions for `conditional_recipients`.
* A conditional recipient rule composed of a `scope` (the matching condition) and
* `recipients` (who to notify when it matches).
*/
export class MonitorNotificationRuleCondition {
/**
* 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`.
*/
"recipients": Array<string>;
/**
* The scope to which the monitor applied.
* Defines the condition under which the recipients are notified. Supported formats:
* - Monitor status condition using `transition_type:<status>`, for example `transition_type:is_alert`.
* - A single tag key:value pair, for example `env:prod`.
*/
"scope": string;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { MonitorNotificationRuleFilterScope } from "./MonitorNotificationRuleFil
import { MonitorNotificationRuleFilterTags } from "./MonitorNotificationRuleFilterTags";

/**
* Filter used to associate the notification rule with monitors.
* Specifies the matching criteria for monitor notifications.
*/
export type MonitorNotificationRuleFilter =
| MonitorNotificationRuleFilterTags
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { AttributeTypeMap } from "@datadog/datadog-api-client";

/**
* Filter monitor notifications. A monitor notification must match the scope.
* Filters monitor notifications using a scope expression over key:value pairs with boolean logic (AND, OR, NOT).
*/
export class MonitorNotificationRuleFilterScope {
/**
* A scope composed of one or several key:value pairs, which can be used to filter monitor notifications on monitor and group tags.
* A scope expression composed by key:value pairs (e.g. `service:foo`) with boolean operators (AND, OR, NOT) and parentheses for grouping.
*/
"scope": string;
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { AttributeTypeMap } from "@datadog/datadog-api-client";

/**
* Filter monitor notifications by tags. A monitor notification must match all tags.
* Filters monitor notifications by a list of tag key:value pairs.
*/
export class MonitorNotificationRuleFilterTags {
/**
* A list of tags (key:value pairs), which can be used to filter monitor notifications on monitor and group tags.
* A list of tag key:value pairs (e.g. `team:product`). All tags must match (AND semantics).
*/
"tags": Array<string>;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class MonitorNotificationRuleResponseAttributes {
*/
"created"?: Date;
/**
* Filter used to associate the notification rule with monitors.
* Specifies the matching criteria for monitor notifications.
*/
"filter"?: MonitorNotificationRuleFilter;
/**
Expand Down
Loading