SlackAlertCriteria

A SlackAlertCriteria declaratively defines the data required to send a message to a Slack channel, and the conditions required for the criteria to be used.

Structure

apiVersion: reliably.com/v1
kind: SlackAlertCriteria
metadata:
    labels: {}
    relatedTo: {}
spec:
    objectiveSelector: {}
    channelUrl: <url>
    messageTemplate: <string>
    remainingPercentThreshold: <string>

Properties

keydescription
apiVersionsee APIVersion
kindsee Kind
metadatasee metadata
specsee spec
spec.objectiveSelectorThe criteria that defines the indicators this result relates to. See spec for more info.
spec.channelUrlThe URL of the Slack webhook. This URL must begin with https://hooks.slack.com.
spec.messageTemplateA Golang template string that can be used to dynamically generate the message send to slack. The object passed to the template is an ObjectiveResult. See Golang templates for more info.
spec.remainingPercentThresholdA simple condition that must pass for the message to be sent. The value can be absolute; i.e. 99 or can include condition; i.e. < 99.9.