Get a notification event
Changed onReturns one notification event of either kind: a threshold event, with kind set to threshold, or a channel test, with kind set to test. A threshold event's budget is a reference unless the request sends expand=budget, which renders the full budget. Reading a test event shows the outcome of a test sent with POST /v1/ai-cost-management/notification-channels/{channelId}/tests.
A caller whose access covers only particular principals or groups reads only the threshold events that the event list shows them. For such a caller, any other event, including every channel test, fails with 404. If the organization has no notification event with this identifier, or the identifier isn't a valid UUID, the request fails with 404.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
The id of the notification event.
Query parameters
The references to render as full resources, as a comma-separated list of paths. Accepts budget. Without it, a reference renders as an object with the resource's id.
Response
The notification event.
A threshold event is one firing of a budget's notification rule. A firing is a recorded threshold crossing: the record that spend in a budget window reached one of the rule's thresholds.
With expand=budget, the event carries the full budget in budget instead of a reference, so a list can show each budget's name and scope without reading the budget.
A channel test is a test message sent through a channel's real delivery path, with test wording and example figures, so what arrives shows what an alert will look like.
status shows where the test stands:
- pending: the test message is queued or being sent.
- delivered: Slack's webhook answered the test message with a 2xx status, or the test email was queued for every recipient at Konnect's email service. A later rejection, suppression, or bounce by the email service doesn't change this status.
- failed: the test message couldn't be delivered, and error says why. A test isn't retried, so its first failed attempt fails it.
Example response
{
"id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
"budget": {
"id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
"labels": {
"env": "test"
},
"managed_by": {
"owner": "terraform"
},
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
},
"deliveries": [
{
"updated_at": "2022-11-04T20:10:06.927Z"
}
]
}Changes
- info
endpoint added
- info