Notifications testing service

Test Routing Condition Valid

Tests notification routing conditions.

post/notifications/notification-center/v1/routers:testCondition

Request

  • Base URL: https://api.eu1.coralogix.com/mgmt/openapi/5
  • URL: https://api.eu1.coralogix.com/mgmt/openapi/5/notifications/notification-center/v1/routers:testCondition
  • Auth: API key in header Authorization

Request body

entityType'ENTITY_TYPE_UNSPECIFIED' | 'ALERTS' | 'TEST_NOTIFICATIONS' | 'CASES' | 'OLLY_SCHEDULED_TASKS'

Entity type.

templatestring

Routing condition expression to validate.

Example request

{
  "template": "alertDef.priority == 'P1'"
}

Response

OR

Example response

{
  "failure": {
    "message": "Invalid condition: condition should be rendered to a boolean value (true or false)"
  },
  "success": {
    "result": true
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.