You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 483540a
Browse filesBrowse the repository at this point in the historyBrowse files
fix: A grouped alert whose group vanishes from the data now resolves with the group's values in `{{attributes.*}}` (alert title and message) and `{{var.*}}` (webhook body)
Copy file name to clipboardExpand all lines: docs/alert-webhook-template-variables.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ a HyperDX alert without parsing the human-readable message body.
21
21
|`{{thresholdMax}}`| number | Upper bound of a `between`/`outside` condition. Always unset for every other comparator, even if the alert was once a range, so guard it (see below). |
22
22
|`{{value}}`| number | The value that triggered or resolved the alert. |
23
23
|`{{groupKey}}`| string | The breaching group, for a grouped alert. |
24
-
|`{{var}}`| object | The breaching group's values by group-by column or SQL alias. Use one value at a time, e.g. `{{var.customer_id}}`, or `{{var.[service.name]}}` for a name with dots. Empty when not grouped, and on the resolve of a group that has no rows left. |
24
+
|`{{var}}`| object | The breaching group's values by group-by column or SQL alias. Use one value at a time, e.g. `{{var.customer_id}}`, or `{{var.[service.name]}}` for a name with dots. Empty when not grouped. |
25
25
|`{{sourceQuery}}`| string | The condition behind the alert — search expression or SQL (see below). |
26
26
|`{{teamId}}`| string | Team the alert belongs to. |
27
27
|`{{note}}`| string | The alert's freeform note — commonly a runbook link. |
Copy file name to clipboardExpand all lines: packages/api/openapi.json
+59-1Lines changed: 59 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6386,7 +6386,7 @@
6386
6386
"/api/v2/alerts": {
6387
6387
"get": {
6388
6388
"summary": "List Alerts",
6389
-
"description": "Retrieves alerts for the authenticated team (paginated). Results are capped at `limit` (default and maximum 1000). When more records exist than are returned, `meta.total` exceeds `data.length`; clients with large collections must page with `limit`/`offset` to retrieve them all.",
6389
+
"description": "Retrieves alerts for the authenticated team (paginated). Results are capped at `limit` (default and maximum 1000). When more records exist than are returned, `meta.total` exceeds `data.length`; clients with large collections must page with `limit`/`offset` to retrieve them all. Optional filters narrow the result set, and `meta.total` counts only the matching alerts.",
6390
6390
"operationId": "listAlerts",
6391
6391
"tags": [
6392
6392
"Alerts"
@@ -6414,6 +6414,54 @@
6414
6414
"default": 0
6415
6415
},
6416
6416
"description": "Number of alerts to skip before returning results."
6417
+
},
6418
+
{
6419
+
"name": "tag",
6420
+
"in": "query",
6421
+
"required": false,
6422
+
"schema": {
6423
+
"type": "array",
6424
+
"items": {
6425
+
"type": "string",
6426
+
"maxLength": 32
6427
+
},
6428
+
"maxItems": 50
6429
+
},
6430
+
"description": "Only return alerts that have any of the given tags. Repeat the parameter to pass several tags. Matches the tags stored on the alert, not tags inherited from the linked dashboard or saved search."
6431
+
},
6432
+
{
6433
+
"name": "search",
6434
+
"in": "query",
6435
+
"required": false,
6436
+
"schema": {
6437
+
"type": "string",
6438
+
"maxLength": 512
6439
+
},
6440
+
"description": "Only return alerts whose display name contains this text (case-insensitive). Matches the display name stored on the alert, not a name derived from the linked dashboard or saved search."
6441
+
},
6442
+
{
6443
+
"name": "source",
6444
+
"in": "query",
6445
+
"required": false,
6446
+
"schema": {
6447
+
"type": "array",
6448
+
"items": {
6449
+
"$ref": "#/components/schemas/AlertSource"
6450
+
}
6451
+
},
6452
+
"description": "Only return alerts of any of the given sources. Repeat the parameter to pass several sources."
6453
+
},
6454
+
{
6455
+
"name": "state",
6456
+
"in": "query",
6457
+
"required": false,
6458
+
"schema": {
6459
+
"type": "array",
6460
+
"items": {
6461
+
"$ref": "#/components/schemas/AlertState"
6462
+
}
6463
+
},
6464
+
"description": "Only return alerts in any of the given states. Repeat the parameter to pass several states."
0 commit comments