cron -n|-p|-s|-m
mailcommand). The cron schedule defines when and at what frequency the subscription notifications will be sent. The format used is the 6-7 fields Quartz cron format. See the Quartz documentation for details. A cron expression builder is available here.Configure Subscription Groups to subscribe to alerts and receive notifications
/api/subscription-groups
to perform CRUD operations on subscription groups.
POST /api/subscription-groups
to create a subscription group. The payload is a list of
subscription groups.
Here is a sample creating a subscription group with a single email notification channel. It is
associated with a single alert. The alert is identified by its ID.
/api/subscription-groups
endpoint.
POST /api/subscription-groups
.
webhookUrl
: the slack webhook urlsendOneMessagePerAnomaly
: if false: anomalies notified at the same time are sent in a single message. If true, one message is sent for each anomaly.oneMessagePerAnomalyBurstLimit
: if sendOneMessagePerAnomaly
is true and there are a lot of anomalies at the same time, sending many messages could be blocked by Slack API quotas. Limit number of messages to send by a single notification task.textConfiguration
:
owner
: free text to add an owner to the alertmentionMemberIds
: A list of Slack member ids to mention (tag) in the message."eventsIntegrationKey"
parameter is where you use the environment variable you created to store your PagerDuty Integration Key. It is strongly discouraged to directly use the Integration Key in the payload, for security reasons.POST
request to the /api/subscription-groups
endpoint of your system. This request will create a new subscription group configured to send alerts to PagerDuty.
GET /api/subscription-groups/{id}/
.
To push the update with the PUT method: PUT /api/subscription-groups
.
payload: