Notifications testing service

Test Template Render

Tests the rendering of a notification template.

post/notifications/notification-center/v1/templates:test

Request

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

Request body

entitySubTypestring

Entity sub-type to use when testing template rendering.

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

Entity type.

templatestring

Template string to test rendering for.

Example request

{
  "entitySubType": "logsImmediateResolved",
  "template": "{{ alertDef.name }}"
}

Response

Example response

{
  "result": {
    "failure": {
      "message": "Template rendering failed"
    },
    "success": {
      "renderedValue": "Rendered template result"
    }
  }
}

Changes

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