Skip to main content
Version: 0.1.0

NotificationCondition

A notification condition represents a test of some attribute against a target value. A NotificationCondition is evaluated to a true/false value, and can be combined via NotificationConditionGroup.

For example: {operator: EQUALS, key: PROJECT_ID, value: "abc-123"} will test a given notification for event.project_id == "abc-123"

type NotificationCondition {
operator: NotificationConditionOperator
key: NotificationConditionKey
value: JSON
}

Fields

NotificationCondition.operator ● NotificationConditionOperator enum

The method by which the key is tested relative to the target value

NotificationCondition.key ● NotificationConditionKey enum

The key to test using the operator and value

NotificationCondition.value ● JSON scalar

The required value to satisfy the operator against the specific key. The type of this will depend on the key and the operator, for example: {operator: EQUALS, key: PROJECT_ID} will expect a string value.

For example, if the IN operator is used with the PROJECT_ID key, the value will be a a json array: ["abc-123", "def-456"]

Implemented By

NotificationConditionProvider union