For the complete documentation index, see llms.txt. This page is also available as Markdown.

entity

Reference for the entity variable in action placeholders and conditions.

This page describes the entity variable: the alert or incident the action runs on, one of the variables you can use in {{ }} placeholders and conditions when you customize an action's YAML definition. It is available in steps and in templated settings (such as a webhook body), not in inbound. Start with Actions → Custom behavior for how the definition works.

Root entity (outbound only): the alert or incident the action runs on, as it is after the change. Always present. Fields without a value are left out, never null, so test them with != nil. Event-specific fields are only present on automatic runs of that event type.

openapi: 3.1.0
info:
  title: ilert action context - entity
  version: 1.0.0
  description: >-
    Root `entity` (outbound only): the alert or incident the action runs on,
    as it is after the change. Always present. Fields without a value are
    left out, never null, so test them with `!= nil`. Event-specific fields
    are only present on automatic runs of that event type.
components:
  schemas:
    Entity:
      oneOf:
        - $ref: './entity-alert.md#/components/schemas/AlertEntity'
        - $ref: './entity-incident.md#/components/schemas/IncidentEntity'
      discriminator:
        propertyName: kind
        mapping:
          ALERT: './entity-alert.yaml#/components/schemas/AlertEntity'
          INCIDENT: './entity-incident.yaml#/components/schemas/IncidentEntity'

    IdName:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string

    User:
      type: object
      properties:
        id:
          type: integer
        firstName:
          type: string
        lastName:
          type: string
        email:
          type: string
        name:
          type: string
          description: Display name.

Last updated

Was this helpful?