Skip to main content

alert actions

Actions are what happens when a rule fires. A rule with no actions still raises an alert in the portal — actions are how that alert reaches people or systems outside PosKit.

Actions are managed per rule, from Configure Actions on the rule's row menu. That opens the configure alert actions page for the rule, which lists the actions already attached and has an Add Action button.

The list shows each action's Type, Configuration, Execute On and a delete button. Ticket actions also get a test button.

the action types you can add​

Add Action opens a dialog whose Action Type list offers nine entries:

TypeWhat it does
Email NotificationEmails named recipients
WebhookCalls an HTTP endpoint
SMS NotificationTexts named phone numbers
Push NotificationSends a browser push notification to named users
SlackPosts to a Slack incoming webhook
Microsoft TeamsPosts to a Teams incoming webhook
On-call RoutingNotifies whoever is currently covering the on-call rotation
Run ScriptRuns an automation script on the affected device, or on a tagged device at the alerting location
Open TicketRaises a ticket in a connected ticketing system

If you want a device to do something in response to an alert — restart a service, run a command — use Run Script with a script that does it.

note

The create wizard's Quick Add offers Email, Webhook, SMS, Run Script and Open Ticket; the full list above is available from the rule editor's actions tab after creation.

configuration by type​

email notification​

FieldNotes
Recipients (comma-separated)Who to email
Subject (optional)Leave blank for the default subject

There is no test button and no option to control what the email contains.

webhook​

FieldNotes
Webhook URLTarget endpoint
HTTP MethodGET, POST or PUT. Defaults to POST

There is no headers field and no test button. PATCH and DELETE are not offered.

sms notification​

FieldNotes
Phone Numbers (comma-separated)Who to text

There is no message field and no test button — the message body is not configurable.

push notification​

FieldNotes
User IDs (comma-separated)The users to notify
Custom Title (optional)Overrides the default notification title
Custom Body (optional)Overrides the default notification body
Require user interactionThe notification stays until dismissed

The form has a Send Test Notification button. Recipients must have allowed browser notifications for the portal, and are entered by user ID.

slack​

FieldNotes
Webhook URLA Slack incoming-webhook URL
Channel (optional)Overrides the webhook's default channel
Username (optional)The name the message posts under

The message is a formatted attachment carrying the alert's severity colour, device, location and time. The form has a Send Test Message button.

microsoft teams​

FieldNotes
Webhook URLA Teams incoming-webhook URL

The message is a MessageCard themed by severity with the alert's facts. The form has a Send Test Message button.

on-call routing​

FieldNotes
On-call rotationOrganization default, or a specific rotation
Pager integration (optional)Additionally raises an incident via PagerDuty when configured

When the alert fires, the person currently covering the rotation is resolved and always notified by email and push; a configured pager integration is additive. Every routing decision — including failures — is written to the alert history. See on-call.

run script​

Pick an automation script from the Automation Script dropdown, which lists each script with its language and shows the description of whichever you select. If your organisation has no scripts yet, the dialog says so and points you at the Automation section.

On a device-scope rule the script runs on the alerting device itself, and that is the whole configuration. On a location-scope rule there is no single alerting device, so the action shows one extra field:

FieldNotes
Target Device TagThe script runs on the online device carrying this tag at the alerting location

When the rule fires, PosKit resolves the most recently seen online device with that tag at the location that breached, and runs the script there. One rule covers every site — each location resolves to its own device. Maintaining the tag itself is best left to a dynamic group's automatic device tagging.

caution

A location-scope script action without a target tag fails — there is no meaningful device to fall back to. And if no online device at the location carries the tag when the rule fires, the action fails with an error naming the tag and location. If the tagged device is the thing that is down, the script cannot reach it.

caution

The script action requires the target device to be online and relay-connected, and runs with the script's configured maximum execution time (5 minutes if unset). It cannot fix an offline device — which rules out the most obvious use, remediating a device-offline alert. Use it for conditions a device can still respond to, such as a stuck print queue, a stopped service, or an integration failing at a site whose devices are otherwise healthy.

open ticket​

FieldNotes
Ticketing IntegrationWhich connected system to use
Service BoardThe board to raise on
CompanySearchable
Priority Mapping (optional)One mapping per PosKit severity

Priority mapping maps PosKit severities onto your ticketing system's own priority names, so a PosKit Critical becomes whatever your service desk calls its top priority.

Ticket actions are the only type with a test button on the actions list.

caution

The ticket test button creates a real ticket in your ticketing system. It is not a dry run. Warn your service desk before you use it, or use a test board.

execute on​

Every action carries an Execute On setting, chosen when you add it. There are three options:

OptionBehaviour
When TriggeredFires when the rule breaches
When ResolvedFires when the alert clears
BothFires on both events

There is no delay or debounce setting — every action fires immediately on its event. To control noise, use the rule's Cooldown and Consecutive Failures settings instead.

what gets recorded​

Only on-call routing writes to the alert history. Email, SMS, webhook, script and ticket actions do not record anything there, so the alert history cannot tell you whether a notification went out.

Script actions do, however, record an execution in the Automation section's history, the same as a manually triggered run — so the script's output, exit code and per-device result are available there even though the alert history stays silent.

note

When someone reports they were not told about an incident, the alert history will not answer the question — checking it will show nothing either way. Verify delivery at the receiving end instead: the mailbox, the phone, the endpoint's own logs, or the ticket queue.

practical guidance​

tip

Match the channel to the severity rather than wiring everything everywhere:

  • Info — portal only. No action.
  • Warning — email to the team address that is already watched.
  • Critical — email plus a ticket if the incident needs a paper trail.