List notification events
Changed onReturns a page of the organization's threshold events, newest first unless the request sets sort. Each event is a recorded threshold crossing of a budget's notification rule. budget is a reference unless the request sends expand=budget, which renders the full budget, so a list can show each budget's name and scope without reading the budget. Channel tests are notification events too, but this list never includes them.
Events with the same fired_at are ordered by budget.id, then by threshold.percent, then by value. Filters on deliveries.status and deliveries.channel.id select events with at least one matching delivery. When both are present, they must match the same delivery.
For a caller whose access covers only particular principals or groups, the list holds only the threshold events of the budgets that caller can read. A caller who sees only their own derived budget reads only that derived budget's events, and none on a budget with each set to subject_id.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Query parameters
Filters on the threshold events' fields. Every filter must match, and a bare value means eq.
- fired_at: eq, gt, gte, lt, and lte.
- budget.id, deliveries.status, and deliveries.channel.id: eq, neq, and oeq.
A delivery filter matches an event when at least one of its deliveries matches, and deliveries.status and deliveries.channel.id together must match the same delivery. Any other filter key fails with 400. UUIDs compare case-insensitively, and deliveries.status accepts only the exact values pending, delivered, and failed.
Filters on the given datetime (RFC-3339) field value.
Filter using one of the following operators: eq, oeq, neq
Filters a field by its value with eq, neq, or oeq. Accepts pending, delivered, and failed. A bare value means eq.
Filter using one of the following operators: eq, oeq, neq
Narrows the list. Each filter has the form filter[field][operator]=value, or filter[field]=value for eq. An operator that takes no value, such as exists, leaves out =value.
A request can combine several filters, and every filter must match.
{
"fired_at": {
"eq": "2022-03-30T07:20:50Z"
}
}The order of the results, as a comma-separated list of fields in priority order. Each field can be followed by a space and asc or desc, and sorts in ascending order without one. The service breaks ties so that the order is unique.
Sortable fields: fired_at. Defaults to fired_at desc.
The number of results on each page.
1 to 100. Defaults to 20.
A cursor for the page after an earlier response's page. Clients take it from that response's meta.page.next link, which also carries the request's other parameters, and don't build or change it.
A request can't send both page[after] and page[before].
A cursor for the page before an earlier response's page. Clients take it from that response's meta.page.previous link, which also carries the request's other parameters, and don't build or change it.
A request can't send both page[after] and page[before].
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
A page of threshold events.
The threshold events on this page, in sort order. Channel tests never appear in this list.
Pagination metadata.
Example response
{
"data": [
{
"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"
}
]
}
],
"meta": {
"page": {
"size": 10
}
}
}Changes
- info
endpoint added
- info