Composer Hub

sla-late-alert

by husey · sla-late-alert
Version 1.0.0 6 downloads 0 votes Published 2026-10-20

A webhook catches tasks that finish later than their SLA and launches an alert task. Replace the logger command with your ticket or chat tool.

Review before you import: a bundle can hold scripts and commands that run on your agents. Import with a dry run first (-n, or Dry Run in the extension).
sla-late-alert-1.0.0.uac.yaml Raw Download
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Late-finish alert: when a task finishes later than its SLA, a webhook
# launches a task that writes the event to the system log of an agent.
# Replace the logger command with your ticket or chat tool.
#
# Before import: change the agent (linux-agent). The webhook is created
# Disabled; enable it after a test.
version: 1
style: compact

tasks:
  SLA Late Finish Alert:
    type: Unix
    agent: linux-agent
    summary: Called by the SLA webhook.
    command: logger -t uac-sla "Task finished late (SLA). Check the Activity monitor."

webhooks:
  SLA Late Finish:
    event: uac_task_sla
    action: Launch Task
    task: SLA Late Finish Alert
    filter:
      criteria:
      - {name: sla_type, operator: EQUALS, value: Finished Late}
    status: Disabled