Operations Agent notifications
Send incident analyses by email, to Microsoft Teams, and as a signed JSON webhook, with the payload and how to verify it.
Three channels
The Operations Agent sends each incident through any of three independent channels. A send on any one moves the incident to the notified state.
- Email, through the SMTP relay set under Global Settings > Alert Notifications.
- Microsoft Teams, as a card posted to a Power Automate workflow address.
- A signed webhook, for any system that takes JSON.
Configure them on the Global Settings > Intelligence page, under Agent notifications. Baseline incidents and demo instances never post. Secrets such as the webhook URL, the signing secret and the Teams address are stored encrypted and are never returned by the API. The page only shows whether each is set.
Recipients come from the Alert Notifications settings. See Alert notifications.
An incident email lists what happened one issue per line, shows times in one fixed time zone, caps long alert lists, and carries a prefix in the subject when a person is required. It links back to the incident when the FarWatch address is set.
Microsoft Teams
FarWatch posts an incident card to the address of a Power Automate workflow.
- In Power Automate, create a workflow that starts from a web request and posts to a Teams channel, and copy its address.
- In FarWatch, open Intelligence > Agent notifications, paste the address, switch Teams on, and send a test.
Set the FarWatch address on the same page so the card can link back to the incident.
Webhook
The webhook posts each incident event as JSON to an address you name. Use it to open a ticket, page someone, or feed a chat tool that takes JSON. FarWatch has no native ServiceNow integration yet, and the signed webhook is the integration path.
Settings
The webhook is off until you enable it.
| Field | Meaning |
|---|---|
| webhookEnabled | true to post events. The default is false. |
| webhookUrl | The receiver address. https only, unless the environment variable ICC_ALLOW_PLAIN_WEBHOOK is 1. Loopback, link-local and metadata addresses are refused. A blank string keeps the stored value, and null clears it. |
| webhookSecret | Optional signing secret of 8 to 256 characters. A blank string keeps the stored value, and null clears it. |
| webhookEvents | The events to send: notified, updated, reminder, resolved. The default is notified, reminder and resolved. |
An incident that is only sent to the webhook still moves to the notified state.
Events
- notified is the first post for an incident.
- updated is a later post after the incident gained alerts and the renotify window passed.
- reminder is the periodic reminder for a sticky incident that needs a person and has not been acknowledged.
- resolved is a closing document for an incident that had been posted.
- test is sent only by the Send test payload button.
Request
The agent sends an HTTP POST with a JSON body and these headers.
| Header | Value |
|---|---|
| Content-Type | application/json |
| X-FarWatch-Event | notified, updated, reminder, resolved or test |
| X-FarWatch-Delivery | A unique id for this post, a UUID. Use it to ignore duplicates. |
| X-FarWatch-Timestamp | Unix time in seconds when the post was signed. |
| X-FarWatch-Signature | Present only when a secret is set: sha256= followed by the hex digest described below. |
The request does not follow redirects and times out after 10 seconds. Any answer outside 2xx counts as a failure.
Body
Fields with no value are left out rather than sent as null.
{
"event": "notified",
"deliveryId": "5f0c1a3e-8a52-4a53-8a8e-0d3d0c4d6c1b",
"sentAt": "2026-11-14T18:00:00.000Z",
"agent": { "name": "FarWatch Operations Agent", "product": "FarWatch" },
"tenant": "default",
"incident": {
"id": 42,
"key": "host:esx-01",
"kind": "host",
"severity": "critical",
"state": "notified",
"title": "esx-01 lost a SAN path",
"summaryLines": ["Port 3/14 went down on sw-core-1.", "Datastore DS1 went inaccessible on esx-01."],
"impact": "One of two SAN paths is gone.",
"likelyCause": "SFP failure on port 3/14.",
"confidence": "high",
"classification": "incident",
"humanRequired": true,
"humanReason": "Someone has to reseat the cable.",
"nextSteps": [{ "owner": "L2 SAN", "action": "Check the SFP." }],
"hosts": ["esx-01"],
"platforms": ["VMware vCenter", "Brocade"],
"alertCount": 3,
"consequenceCount": 2,
"openedAt": "2026-11-14T17:41:00.000Z",
"triagedAt": "2026-11-14T17:52:00.000Z",
"link": "https://farwatch.example.com/t/default/ops/agent?incident=42"
}
}severity is one of info, warning, error or critical. kind says what the incident key groups: host, source, platform-wide, app-service, site, location, network-burst, shared-component or similar. confidence and classification are present once the incident has been triaged. nextSteps carries at most 5 entries and summaryLines at most 5. link is present only when the FarWatch address is set under Global Settings. notifiedAt, resolvedAt and resolution appear when they have a value. A resolved event always has resolvedAt and resolution.
Verify the signature
The signature is the hex HMAC-SHA256, keyed with the secret, of the timestamp header, a dot, and the raw request body exactly as received. Compute it over the raw bytes, not over a re-serialized object. Reject a post whose timestamp is more than a few minutes from your clock, and compare the digests in constant time.
const crypto = require('crypto');
function verify(rawBody, headers, secret) {
const ts = headers['x-farwatch-timestamp'];
if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false;
const want = crypto.createHmac('sha256', secret).update(`${ts}.${rawBody}`).digest('hex');
const got = String(headers['x-farwatch-signature'] || '').replace(/^sha256=/, '');
return got.length === want.length && crypto.timingSafeEqual(Buffer.from(got), Buffer.from(want));
}Retry
A failed post is not retried on every tick. The agent records the error on the incident and waits 10 minutes before the next try for that incident. There is no queue. If the receiver is down for a long time, the next try carries the current state of the incident, not the events that were missed. A reminder or resolved event that fails is retried the next time the agent would have sent it.
Recipes
These are starting points. Test each with the Send test payload button, which posts the test event with a sample incident.
ServiceNow. Create a Scripted REST API resource that accepts POST, reads the body, and inserts or updates an incident record. Map incident.id to a correlation id so later events update the same record, incident.title to short_description, the summaryLines joined with newlines to description, severity to impact and urgency (critical to 1, error to 2, warning to 3, info to 4), and incident.link to a work note. On the resolved event, set the state to resolved and put incident.resolution in the close notes. Put the resource URL in the webhook URL, and set a secret if the script verifies the signature.
PagerDuty. The Events API v2 expects its own envelope, so this payload cannot be sent to it directly. Put a small transform in between, such as an API gateway, a serverless function or an automation tool. Map incident.title to payload.summary, incident.hosts[0] to payload.source, severity to payload.severity, and incident.id to dedup_key. Set event_action to trigger for notified, updated and reminder, and to resolve for resolved. There is no native PagerDuty connector.
Opsgenie or Jira. Both can receive a generic JSON webhook. In Opsgenie add an API or webhook integration and map incident.title to the alert message, incident.id to the alias, and the summaryLines to the description. Use the alias to close the alert on resolved. In Jira, use an Automation rule with the Incoming webhook trigger: create the issue on notified, comment on updated and reminder, and transition it on resolved, looking the issue up by a field that holds incident.id.