entity
Reference for the entity variable in action placeholders and conditions.
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?