Skip to main content
POST
cURL

Body

application/json
name
string
required

The name of the alert.

Required string length: 1 - 255
resourceType
string
required

The type of resource the alert watches, for example cert-manager.application.

Required string length: 1 - 255
eventType
string
required

The event that triggers the alert, for example cert-manager.application.certificate.expiry.

Required string length: 1 - 255
channels
object[]
required

The channels the alert notifies. Each is email, Slack, webhook, or PagerDuty.

Required array length: 1 - 10 elements
description
string

The description of the alert.

Maximum string length: 1000
resourceId
string<uuid> | null

The ID of the resource the alert watches. Set to null to watch every resource of this type, where the resource type supports it.

condition
any

The settings of the alert's event, for example alertBefore on an expiry event. The accepted fields depend on eventType.

enabled
boolean

Whether the alert is enabled. Defaults to true.

projectId
string<uuid> | null

The ID of the project to create the alert in. Optional when the resource belongs to a project.

Response

Default Response

alert
object
required