Skip to main content

GraphQL reference: notification-management

Generated from the schema this service serves, so it cannot fall behind it. The same schema is published as a file for tools and agents.

Endpointhttps://<your-host>/api/notification-management/graphql
Auth planetenant — The ordinary application plane. Obtain a tenant access token by calling login then selectTenant on user-management, and authorize each call with the capability it names (for example device:write).
Authorize withtenant access token
Schema file/schema/notification-management.graphql
Described213 of 213 elements

Queries​

notificationAttempts · notificationChannelTypes · notificationChannels · notificationChannelsById · notificationChannelsByToken · notificationPolicies · notificationPoliciesById · notificationPoliciesByToken · notificationStates · notificationStatesByAlarmToken

notificationAttempts​

Searches the delivery ledger, newest first: one record per attempt to send an alarm's notification through a channel, with its outcome. Records are kept for a retention period (7 days by default). The ledger is best-effort: it never delays a notification, so a record proves an attempt was made, but a missing record does not prove one was not. Requires notification:read.

Returns NotificationAttemptSearchResults!

ArgumentTypeDescription
criteriaNotificationAttemptSearchCriteria!Filters and paging.

notificationChannelTypes​

Lists the channel types the service can deliver through. The list is fixed: smtp and webhook. Requires no specific authority.

Returns [NotificationChannelType!]!

notificationChannels​

Searches the tenant's channels, newest created first. Returns an empty page when nothing matches. Requires notification:read.

Returns NotificationChannelSearchResults!

ArgumentTypeDescription
criteriaNotificationChannelSearchCriteria!Filters and paging.

notificationChannelsById​

Returns the channels with the given server-assigned ids. Ids that match nothing are left out; an id that is not a non-negative integer fails the request. Requires notification:read.

Returns [NotificationChannel!]!

ArgumentTypeDescription
ids[String!]!Channel ids, as returned in id.

notificationChannelsByToken​

Returns the channels with the given tokens. Tokens that match nothing are left out. Requires notification:read.

Returns [NotificationChannel!]!

ArgumentTypeDescription
tokens[String!]!Channel tokens.

notificationPolicies​

Searches the tenant's policies, newest created first, each with its rules. Returns an empty page when nothing matches. Requires notification:read.

Returns NotificationPolicySearchResults!

ArgumentTypeDescription
criteriaNotificationPolicySearchCriteria!Filters and paging.

notificationPoliciesById​

Returns the policies, with their rules, that have the given server-assigned ids. Ids that match nothing are left out; an id that is not a non-negative integer fails the request. Requires notification:read.

Returns [NotificationPolicy!]!

ArgumentTypeDescription
ids[String!]!Policy ids, as returned in id.

notificationPoliciesByToken​

Returns the policies, with their rules, that have the given tokens. Tokens that match nothing are left out. Requires notification:read.

Returns [NotificationPolicy!]!

ArgumentTypeDescription
tokens[String!]!Policy tokens.

notificationStates​

Searches the notification records, newest created first. Returns an empty page when nothing matches. Requires notification:read.

Returns NotificationStateSearchResults!

ArgumentTypeDescription
criteriaNotificationStateSearchCriteria!Filters and paging.

notificationStatesByAlarmToken​

Returns the notification records for the given alarm tokens. An alarm with no record (never notified, acknowledged or cleared, or whose record has been removed) is left out. Requires notification:read.

Returns [NotificationState!]!

ArgumentTypeDescription
alarmTokens[String!]!Tokens of the alarms.

Mutations​

createNotificationChannel · createNotificationPolicy · deleteNotificationChannel · deleteNotificationChannelSigningSecret · deleteNotificationPolicy · endNotificationChannelSigningRotation · generateNotificationChannelSigningSecret · renameNotificationChannel · rotateNotificationChannelSigningSecret · updateNotificationChannel · updateNotificationPolicy

createNotificationChannel​

Creates a delivery channel. Rejects an unknown channel type, a config or metadata that is not a JSON object, a webhook config that is invalid or whose auth does not match whether a secret was supplied, and a token already in use. Requires notification:write.

Returns NotificationChannel!

ArgumentTypeDescription
requestNotificationChannelCreateRequest!The new channel's fields.

createNotificationPolicy​

Creates a routing policy together with its rules, all or nothing. Rejects a non-blank deviceTypeToken, a rule whose severity is not valid or whose channelToken matches no channel, and a token already in use. Requires notification:write.

Returns NotificationPolicy!

ArgumentTypeDescription
requestNotificationPolicyCreateRequest!The new policy's fields and rules.

deleteNotificationChannel​

Permanently deletes a channel and its stored secret. Returns true if a channel was deleted and false if none has the token. Refused, with extensions.code REFERENCE_VIOLATION, while any policy rule still uses the channel. Requires notification:write.

Returns Boolean!

ArgumentTypeDescription
tokenString!Token of the channel to delete.

deleteNotificationChannelSigningSecret​

Deletes a webhook channel's signing secret, both keys. A channel whose config still sets signing to true then has its deliveries refused rather than sent unsigned, until a secret is generated again. Requires notification:write.

Returns NotificationChannel!

ArgumentTypeDescription
tokenString!Token of the webhook channel.

deleteNotificationPolicy​

Permanently deletes a policy and its rules. Returns true if a policy was deleted and false if none has the token. Requires notification:write.

Returns Boolean!

ArgumentTypeDescription
tokenString!Token of the policy to delete.

endNotificationChannelSigningRotation​

Ends an open signing-secret rotation: the previous secret stops signing and deliveries carry one signature. Fails if the channel has no secret. Requires notification:write.

Returns NotificationChannel!

ArgumentTypeDescription
tokenString!Token of the webhook channel.

generateNotificationChannelSigningSecret​

Mints a signing secret for a webhook channel and returns it. This is the only time the secret is shown. Deliveries are signed per the Standard Webhooks specification (webhook-id, webhook-timestamp and webhook-signature headers) once the channel's config sets signing to true; until then it delivers unsigned, as before. Fails if the channel already has a secret (use rotateNotificationChannelSigningSecret), if no channel has the token, or if the channel is not a webhook channel. Requires notification:write.

Returns IssuedNotificationChannelSigningSecret!

ArgumentTypeDescription
tokenString!Token of the webhook channel.

renameNotificationChannel​

Changes a channel's token and nothing else. Its secret and the policy rules that use it are unaffected. Renaming to the token it already has succeeds without change. Fails if the new token is blank or is already used by another channel (extensions.code CONFLICT), or if no channel has the old token. Requires notification:write.

Returns NotificationChannel!

ArgumentTypeDescription
newTokenString!The new token, which must be unused in the tenant.
tokenString!Current token of the channel.

rotateNotificationChannelSigningSecret​

Replaces a webhook channel's signing secret with a new one and returns it once. The previous secret keeps signing too, so each delivery carries two signatures and a receiver holding either secret verifies it; call endNotificationChannelSigningRotation once receivers have moved. Fails if the channel has no secret. Requires notification:write.

Returns IssuedNotificationChannelSigningSecret!

ArgumentTypeDescription
tokenString!Token of the webhook channel.

updateNotificationChannel​

Partially updates a channel. The whole update is rejected, with nothing written, if any part of it is invalid. Fails if no channel has the token. Last write wins; there is no concurrent-edit check. Requires notification:write.

Returns NotificationChannel!

ArgumentTypeDescription
requestNotificationChannelUpdateRequest!The fields to change.
tokenString!Current token of the channel to update.

updateNotificationPolicy​

Partially updates a policy. Omitted fields are left alone; a rules list replaces the whole rule set. The whole update is rejected, with nothing written, if any part of it is invalid. Fails if no policy has the token. Requires notification:write.

Returns NotificationPolicy!

ArgumentTypeDescription
expectedUpdatedAtStringThe updatedAt value you last read, as an RFC 3339 timestamp. If the policy has changed since, nothing is written and the call fails with "notification policy was modified by another writer; reload and try again" (extensions.code STALE_WRITE). Omit it to overwrite unconditionally.
requestNotificationPolicyUpdateRequest!The fields to change.
tokenString!Token of the policy to update.

Objects​

IssuedNotificationChannelSigningSecret · NotificationAttempt · NotificationAttemptSearchResults · NotificationChannel · NotificationChannelHealth · NotificationChannelSearchResults · NotificationChannelType · NotificationPolicy · NotificationPolicySearchResults · NotificationRule · NotificationState · NotificationStateSearchResults · SearchResultsPagination

IssuedNotificationChannelSigningSecret​

object

A freshly minted webhook signing secret. This is the only response that ever contains the secret; store it now, it cannot be retrieved again.

FieldTypeDescription
rotatingBoolean!True when this secret replaced an earlier one whose key still signs until the rotation is ended.
secretString!The signing secret, in the form whsec_ followed by base64. Shown once.

NotificationAttempt​

object

One attempt to send an alarm's notification through a channel, from the delivery ledger.

FieldTypeDescription
alarmTokenString!Token of the alarm the notification was about.
attemptInt!This try's number, starting at 1; 0 for NOT_ATTEMPTED.
attemptedAtString!When the attempt started, as an RFC 3339 timestamp.
channelTokenString!Token of the channel. Kept by token so the record survives the channel being deleted.
channelTypeString!The channel's type at the time of the attempt, such as smtp or webhook.
errorCodeStringWhy the attempt did not succeed; null when it did: EGRESS_BLOCKED, CREDENTIAL_REFUSED, TIMEOUT (the channel did not answer within its own per-attempt time), DELIVERY_ERROR, SECRET_UNAVAILABLE or BUDGET_SPENT (the time allowed for all of the alarm's deliveries ran out; on a FAILED record, while this attempt was in flight). BUDGET_SPENT does not count against the channel's deliveryHealth. New values may be added.
errorMessageStringThe provider's error text, with any URL replaced by <url> (a webhook URL can carry a credential) and cut to 512 bytes; null when the attempt succeeded.
idID!Server-assigned identifier of this record.
latencyMillisIntHow long the channel took to accept or fail the attempt, in milliseconds; null if no call was made.
maxAttemptsInt!How many tries the channel was allowed for this delivery.
policyTokenStringToken of the policy whose rule planned the delivery, or null if unknown. When two policies route to the same channel and recipients the notification is sent once, and the first policy is recorded.
recipients[String!]!The recipients the attempt was addressed to; empty for a channel type that has none.
statusString!The outcome: SENT (the channel accepted it), FAILED (a failure a retry might fix), REFUSED (refused terminally, so no retry followed: a destination outbound traffic may not reach, or a refused credential configuration) or NOT_ATTEMPTED (planned but never tried: the channel's delivery secret could not be read, or the time allowed for the alarm's deliveries ran out first). New values may be added; treat an unknown one as not delivered.
subjectHashStringHex SHA-256 of the notification's subject line, so two attempts can be shown to have carried the same message without the ledger storing the message.
triggerString!What caused the delivery: ALARM (an alarm state change), ESCALATION (an open alarm was re-notified) or QUIET_HOURS_RELEASE (a notification held by quiet hours was sent when the quiet period ended). New values may be added; treat an unknown one as informational.

NotificationAttemptSearchResults​

object

A page of delivery-ledger records.

FieldTypeDescription
paginationSearchResultsPagination!Position of this page within the full result set.
results[NotificationAttempt!]!The records on this page, newest first.

NotificationChannel​

object

A delivery channel: a configured email (SMTP) server, webhook endpoint, or Slack, Microsoft Teams or PagerDuty destination that notifications are sent through. Routing policies refer to channels by token.

FieldTypeDescription
channelTypeString!The channel type: smtp, webhook, slack, teams or pagerduty, as listed by notificationChannelTypes.
configStringThe channel's non-secret connection settings as a JSON object serialized to a string, or null if none are set. The shape depends on channelType; see NotificationChannelCreateRequest.config.
createdAtStringWhen the channel was created, as an RFC 3339 timestamp.
deletedAtStringAlways null: deleting a channel removes it permanently rather than marking it deleted.
deliveryHealthNotificationChannelHealthThe channel's recent delivery record, read from the delivery ledger: when it last delivered, when it last failed, and how many attempts have failed since. Records leave the ledger after its retention period, so a channel that has sent nothing for that long reads as never having sent. Null, with an error, for a caller without notification:read (a channel returned by a mutation to a writer who cannot read) or when the ledger cannot be read; the rest of the channel is returned either way.
descriptionStringFree-text description of what the channel is for.
enabledBoolean!Whether the channel is in use. Notifications are not sent through a disabled channel.
hasSecretBoolean!True when a delivery secret is stored for the channel. The secret itself is never returned.
hasSigningSecretBoolean!True when a webhook signing secret is stored for the channel. The secret itself is never returned. Deliveries are signed only when the channel's config also sets signing to true.
idID!Server-assigned identifier. Address a channel by its token, not by this.
metadataStringFree-form caller-defined metadata as a JSON object serialized to a string, or null if none is set.
nameStringHuman-readable name shown in channel lists.
signingRotationOpenBoolean!True while a signing-secret rotation is open: deliveries carry a signature under each of the current and previous secrets.
tokenString!Unique, caller-chosen identifier of the channel within the tenant. Letters, digits, hyphens and underscores, starting with a letter or digit, at most 128 characters.
updatedAtStringWhen the channel was last written, as an RFC 3339 timestamp.

NotificationChannelHealth​

object

A channel's recent delivery record, read from the delivery ledger.

FieldTypeDescription
consecutiveFailuresInt!Number of attempts that failed or were refused since the channel last delivered (or since the oldest recorded attempt, if it never has). Each retry counts, so one alarm whose three tries all failed adds 3. Attempts the platform never made (NOT_ATTEMPTED) or cut short (errorCode BUDGET_SPENT) do not count against the channel.
lastFailureAtStringWhen an attempt through the channel last failed or was refused, as an RFC 3339 timestamp; null if none is recorded.
lastSuccessAtStringWhen an attempt through the channel last succeeded, as an RFC 3339 timestamp; null if none is recorded.

NotificationChannelSearchResults​

object

One page of delivery channels and where it sits in the full result set.

FieldTypeDescription
paginationSearchResultsPagination!Position of this page within the full result set.
results[NotificationChannel!]!The channels on this page, newest created first (ties broken by token).

NotificationChannelType​

object

A kind of delivery channel the service can send notifications through. You pick a type when you create a channel.

FieldTypeDescription
availableBoolean!True when this build can actually deliver through the type. Both listed types are available.
descriptionString!One-sentence explanation of what delivering through this type does.
idString!The identifier to pass as channelType when creating a channel: smtp, webhook, slack, teams or pagerduty.
labelString!Short human-readable name for the type, for pickers.

NotificationPolicy​

object

A routing policy: which raised alarms are sent to whom, through which channels, and whether an alarm that nobody acknowledges is re-sent. Policies apply to every device in the tenant.

FieldTypeDescription
createdAtStringWhen the policy was created, as an RFC 3339 timestamp.
deletedAtStringAlways null: deleting a policy removes it permanently rather than marking it deleted.
descriptionStringFree-text description of what the policy is for.
deviceTypeTokenStringAlways null: policies cannot yet be limited to a device type, and a request that tries is refused.
enabledBoolean!Whether the policy is active. A disabled policy sends nothing.
escalateAfterSecondsIntRe-notify an alarm still neither acknowledged nor cleared this many seconds after its last notification. Null or 0 disables escalation for the policy. When several escalating policies match one alarm they share a single clock, driven by the shortest window.
idID!Server-assigned identifier. Address a policy by its token, not by this.
maxEscalationsIntMaximum number of re-notifications per alarm. Null or 0 uses the service-wide default (5 unless the operator changed it).
metadataStringFree-form caller-defined metadata as a JSON object serialized to a string, or null if none is set.
nameStringHuman-readable name shown in policy lists.
notifyOnClearBoolean!True when the policy also tells the destinations that paged an alarm when it clears. The clear goes only to the channels and recipients that actually delivered a page for that alarm cycle and that this policy routes, whatever severity the alarm has when it clears. It is sent once per cycle, after the clear has stopped escalation. A clear is informational: it is not throttled, it does not start escalation, and one that happens during the policy's quiet hours is dropped rather than held.
quietHoursBypassSeverityStringAlarms at or above this severity are sent even during quiet hours: CRITICAL, MAJOR, MINOR, WARNING or INDETERMINATE. Null means quiet hours hold every severity.
quietHoursSlotsStringThe policy's quiet hours, as a JSON array of weekly slots serialized to a string. Each slot is {day, start, durationMinutes}: day MONDAY to SUNDAY, start a 24-hour HH:MM wall-clock time in quietHoursTimezone, durationMinutes 1 to 10080. A notification this policy would send inside quiet hours is held and sent when the quiet stretch ends, unless the alarm was acknowledged or cleared in the meantime. Escalation re-notifications wait the same way. Null when the policy has no quiet hours.
quietHoursTimezoneStringIANA time zone the quiet-hours slots are read in, such as Europe/Berlin. Null when the policy has no quiet hours.
rules[NotificationRule!]!The policy's routing rules.
throttleSecondsIntMinimum number of seconds between notifications about the same alarm; a notification inside the window is suppressed, except when the alarm's severity has escalated. Null means no throttle.
tokenString!Unique, caller-chosen identifier of the policy within the tenant. Letters, digits, hyphens and underscores, starting with a letter or digit, at most 128 characters.
updatedAtStringWhen the policy was last written, as an RFC 3339 timestamp. Pass it back as expectedUpdatedAt to make an update conditional on nobody else having changed the policy since you read it. Any update, including one that only replaces rules, moves it.

NotificationPolicySearchResults​

object

One page of routing policies and where it sits in the full result set.

FieldTypeDescription
paginationSearchResultsPagination!Position of this page within the full result set.
results[NotificationPolicy!]!The policies on this page, newest created first (ties broken by token), each with its rules.

NotificationRule​

object

One routing rule inside a policy: alarms of a matching severity are sent through a channel to a list of recipients.

FieldTypeDescription
channelNotificationChannelThe channel the rule sends through; null if the channel no longer exists.
idID!Server-assigned identifier. A policy update that supplies rules replaces them all, so rule ids change.
recipientsStringThe recipients as a JSON array of strings serialized to a string, or null if none. For an smtp channel they are email addresses; a webhook rule needs none because the channel's endpoint is the destination.
severityString!The alarm severity this rule matches: CRITICAL, MAJOR, MINOR, WARNING, INDETERMINATE, or * for any severity.

NotificationState​

object

What the service has done about one raised alarm: when it was notified, how many times, and how far escalation has gone. There is one record per alarm. It records notification activity, not the alarm itself; read the alarm from the alarms API.

An alarm that clears and is raised again keeps its token, and so its record. The record then starts over for the new cycle: the acknowledgement, clear, escalation level, first notification time and notification count all describe the current cycle.

FieldTypeDescription
acknowledgedAtStringWhen the alarm was acknowledged, as an RFC 3339 timestamp; null if it has not been. Escalation stops once it is set, and the record is removed after a retention period.
alarmKeyString!The alarm's logical key, which identifies a kind of alarm on its originator.
alarmTokenString!Token of the alarm this record is about.
clearedAtStringWhen the alarm was cleared, as an RFC 3339 timestamp; null if it has not been. Escalation stops once it is set, and the record is removed after a retention period.
escalationLevelInt!Number of escalation steps taken for the alarm so far; 0 if none. A step is counted when it starts, so it is counted even if its delivery then fails.
firstNotifiedAtStringTime of the alarm transition whose notification was the first delivered, as an RFC 3339 timestamp; null if none has been.
idID!Server-assigned identifier of this record.
lastEscalatedAtStringWhen the alarm was last escalated, as an RFC 3339 timestamp; null if it never has been.
lastNotifiedAtStringTime of the most recent notification: the alarm transition's time, or when an escalation step started. RFC 3339; null if none.
notifyCountInt!Number of notifications recorded about the alarm, escalations included. An escalation step is counted when it starts, even if its delivery then fails.
severityString!The alarm's most recent severity known to this service, including a de-escalation, which is recorded without a notification.

NotificationStateSearchResults​

object

One page of notification state records and where it sits in the full result set.

FieldTypeDescription
paginationSearchResultsPagination!Position of this page within the full result set.
results[NotificationState!]!The records on this page, newest created first.

SearchResultsPagination​

object

Where a page of search results sits in the full result set. Positions are 1-based and inclusive.

FieldTypeDescription
pageEndIntPosition of the last result on this page within the full result set (1-based, inclusive).
pageStartIntPosition of the first result on this page within the full result set (1-based).
totalRecordsIntNumber of records matching the criteria across all pages.

Input types​

NotificationAttemptSearchCriteria · NotificationChannelCreateRequest · NotificationChannelSearchCriteria · NotificationChannelUpdateRequest · NotificationPolicyCreateRequest · NotificationPolicySearchCriteria · NotificationPolicyUpdateRequest · NotificationRuleCreateRequest · NotificationStateSearchCriteria

NotificationAttemptSearchCriteria​

input

Filters and paging for the delivery ledger. Every filter is optional.

Input fieldTypeDescription
alarmTokenStringReturn only attempts about this alarm.
channelTokenStringReturn only attempts through this channel.
pageNumberInt!Page to return, starting at 1. A value below 1 is treated as 1.
pageSizeInt!Records per page. A value below 1 is treated as 100; a value above 1000 is capped at 1000.
sinceStringReturn only attempts made at or after this RFC 3339 timestamp. A value that does not parse fails the request.
statusStringReturn only attempts with this status, such as FAILED.
untilStringReturn only attempts made before this RFC 3339 timestamp. A value that does not parse fails the request.

NotificationChannelCreateRequest​

input

Fields for a new delivery channel. The type must be one listed by notificationChannelTypes and the config must be valid for it.

Input fieldTypeDescription
channelTypeString!The channel type: smtp, webhook, slack, teams or pagerduty, as listed by notificationChannelTypes.
configStringThe non-secret connection settings as a JSON object serialized to a string. For smtp: host, port, from, username (optional; requires a secret) and security (starttls, the default; tls; or none for cleartext). For webhook: url (http or https, required), method (POST only), headers (an object of extra request headers) and auth (required: none when the URL itself carries the credential, bearer to send the secret as a bearer token, or header to send it in the header named by authHeader, optionally prefixed with authScheme). A webhook with auth bearer or header must have a secret, and one with auth none must not. For slack and teams: optional linkBaseUrl (the console URL the message's "open alarms" link is built from). For pagerduty: optional region (us, the default, or eu), source and linkBaseUrl. Unknown keys are refused for these three. The platform restricts which destinations a channel may reach.
descriptionStringFree-text description of what the channel is for.
enabledBoolean!Whether the channel is active. Notifications are not sent through a disabled channel.
metadataStringFree-form caller-defined metadata as a JSON object serialized to a string.
nameStringHuman-readable name shown in channel lists.
secretStringThe delivery credential: the SMTP password, the webhook bearer or header value, the Slack or Teams webhook URL (https), or the PagerDuty Events API v2 routing key. A slack, teams or pagerduty channel requires one. Write-only; stored encrypted and never returned. Omit it, or send an empty string, for no secret.
tokenString!Unique identifier for the new channel within the tenant. Letters, digits, hyphens and underscores, starting with a letter or digit, at most 128 characters.

NotificationChannelSearchCriteria​

input

Filters and paging for the notificationChannels query.

Input fieldTypeDescription
channelTypeStringReturn only channels of this type (smtp, webhook, slack, teams or pagerduty). Omit it to return every type.
enabledBooleanReturn only enabled (true) or only disabled (false) channels. Omit it to return both.
pageNumberInt!Page to return, starting at 1. A value below 1 is treated as 1.
pageSizeInt!Channels per page. A value below 1 is treated as 100; a value above 1000 is capped at 1000.

NotificationChannelUpdateRequest​

input

A partial update to a delivery channel. Omit a field to leave the stored value alone, send a value to set it, or send an explicit null to clear it (except where noted). The channel is named by the mutation's token argument, so there is no token here; use renameNotificationChannel to change the token.

Input fieldTypeDescription
channelTypeStringNew channel type (smtp, webhook, slack, teams or pagerduty). Omit it to keep the stored type; an explicit null is refused. Changing the type or credential destination while a credential is stored requires secret in the same request: supply it again or clear it with null (SECRET_RESUPPLY_REQUIRED).
configStringNew connection settings as a JSON object serialized to a string, in the format described on NotificationChannelCreateRequest.config, or null to clear them. For a webhook channel the result must still be valid, including its auth setting.

Changing the type or credential destination while a credential is stored requires secret in the same request: supply it again or clear it with null (SECRET_RESUPPLY_REQUIRED).
descriptionStringNew description, or null to clear it.
enabledBooleanWhether the channel is active. Omit it to keep the stored value; an explicit null is refused.
metadataStringNew metadata as a JSON object serialized to a string, or null to clear it.
nameStringNew name, or null to clear it.
secretStringThe write-only delivery credential. Omit it to keep the stored secret, send a value to replace it, or send null or an empty string to delete it. A webhook channel whose auth is bearer or header cannot be left without a secret, and one whose auth is none cannot have one.

Changing the type or credential destination while a credential is stored requires secret in the same request: supply it again or clear it with null (SECRET_RESUPPLY_REQUIRED).

NotificationPolicyCreateRequest​

input

Fields for a new routing policy, including its complete rule set.

Input fieldTypeDescription
descriptionStringFree-text description of what the policy is for.
deviceTypeTokenStringNot supported yet: any non-blank value is rejected. Leave it unset to create a policy that applies to every device.
enabledBoolean!Whether the policy is active. A disabled policy sends nothing.
escalateAfterSecondsIntSeconds after an alarm's last notification before an unacknowledged, uncleared alarm is re-sent. Omit it or use 0 for no escalation.
maxEscalationsIntMaximum number of re-notifications per alarm. Omit it to use the service-wide default.
metadataStringFree-form caller-defined metadata as a JSON object serialized to a string.
nameStringHuman-readable name shown in policy lists.
notifyOnClearBooleanAlso notify the policy's channels when an alarm it paged clears. Omit it for false, the behaviour before this option existed.
quietHoursBypassSeverityStringThe severity at or above which alarms are sent even during quiet hours. Omit it to hold every severity. It has no effect while the policy has no quiet hours.
quietHoursSlotsStringQuiet hours as a JSON array of weekly slots serialized to a string, each {day, start, durationMinutes}. Set it together with quietHoursTimezone. Slots may not overlap, and together they may not cover the whole week.
quietHoursTimezoneStringIANA time zone for the quiet-hours slots, such as Europe/Berlin. Set it together with quietHoursSlots, or omit both for no quiet hours. Local and unknown zone names are rejected.
rules[NotificationRuleCreateRequest!]!The policy's complete rule set; pass an empty list for a policy with no rules yet.
throttleSecondsIntMinimum seconds between notifications about the same alarm. Omit it for no throttle.
tokenString!Unique identifier for the new policy within the tenant. Letters, digits, hyphens and underscores, starting with a letter or digit, at most 128 characters.

NotificationPolicySearchCriteria​

input

Filters and paging for the notificationPolicies query.

Input fieldTypeDescription
deviceTypeTokenStringReturn only policies scoped to this device type. Policies cannot yet be scoped, so any value matches nothing.
enabledBooleanReturn only enabled (true) or only disabled (false) policies. Omit it to return both.
pageNumberInt!Page to return, starting at 1. A value below 1 is treated as 1.
pageSizeInt!Policies per page. A value below 1 is treated as 100; a value above 1000 is capped at 1000.

NotificationPolicyUpdateRequest​

input

A partial update to a routing policy. Omit a field to leave the stored value alone, send a value to set it, or send an explicit null to clear it (except where noted). The policy is named by the mutation's token argument, so there is no token here, and a policy's token cannot be changed.

Input fieldTypeDescription
descriptionStringNew description, or null to clear it.
enabledBooleanWhether the policy is active. Omit it to keep the stored value; an explicit null is refused.
escalateAfterSecondsIntNew escalation window in seconds, or null to disable escalation.
maxEscalationsIntNew maximum number of re-notifications per alarm, or null to use the service-wide default.
metadataStringNew metadata as a JSON object serialized to a string, or null to clear it.
nameStringNew name, or null to clear it.
notifyOnClearBooleanWhether the policy also notifies on clear. Omit it to keep the stored value; an explicit null is refused.
quietHoursBypassSeverityStringNew bypass severity, or null so that quiet hours hold every severity.
quietHoursSlotsStringNew quiet-hours slots (a JSON array serialized to a string), or null to clear them.
quietHoursTimezoneStringNew quiet-hours time zone, or null to clear it. The quiet-hours fields are checked together after the update is applied, so to remove quiet hours clear quietHoursTimezone and quietHoursSlots in the same request. A stored quietHoursBypassSeverity is kept, and has no effect while the policy has no quiet hours. An update that names none of the three leaves the stored quiet hours exactly as they are, without checking them.
rules[NotificationRuleCreateRequest!]The policy's complete rule set. Omit it to leave the stored rules untouched. Send a list to replace all the rules with it, or send null or an empty list to remove all rules. Rules are replaced wholesale, never merged, and each rule gets a new id.
throttleSecondsIntNew minimum seconds between notifications about the same alarm, or null to remove the throttle.

NotificationRuleCreateRequest​

input

A routing rule supplied when creating or updating a policy. The channel is referred to by token; a token that matches no channel fails the whole write.

Input fieldTypeDescription
channelTokenString!Token of the channel to send through.
recipientsStringThe recipients as a JSON array of strings serialized to a string. For an smtp channel these are email addresses; a webhook rule needs none.
severityString!The alarm severity to match: CRITICAL, MAJOR, MINOR, WARNING or INDETERMINATE, or * for any. The match is exact and case-sensitive, so lowercase values are rejected.

NotificationStateSearchCriteria​

input

Filters and paging for the notificationStates query.

Input fieldTypeDescription
alarmKeyStringReturn only records for alarms with this logical key.
pageNumberInt!Page to return, starting at 1. A value below 1 is treated as 1.
pageSizeInt!Records per page. A value below 1 is treated as 100; a value above 1000 is capped at 1000.
severityStringReturn only records with this severity, such as CRITICAL. Omit it to return all.