Skip to main content

Test Routing Condition Valid

POSThttps://api.coralogix.com/mgmt/openapi/5/notifications/notification-center/v1/routers:testCondition

Tests notification routing conditions.

Authorizations

Authorizationstringheaderrequired
API key authentication

Request

Body

application/json

Request to check that provided routing condition is valid

    entityType#notification_center.EntityType

    Entity type.

    Possible values: [ENTITY_TYPE_UNSPECIFIED, ALERTS, TEST_NOTIFICATIONS, CASES]

    template#string

    Routing condition expression to validate.

    Possible values: non-empty and <= 20000 characters, Value must match regular expression ^[\s\S]+$

    Example: alertDef.priority == 'P1'

Response

application/json

Response which specifies condition evaluation result or error

    oneOf
    object

    Indicates the routing condition is invalid, with a human-readable error message.

    Indicates the routing condition is valid, with the evaluated result.