Spaces method and path for this operation:
post /s/{space_id}/api/alerting/rules/backfill/_find
Refer to Spaces for more information.
Query parameters
-
The end date for filtering backfills.
-
The page number to return.
Minimum value is
1. Default value is1. -
The number of backfills to return per page.
Minimum value is
0. Default value is10. -
A comma-separated list of rule identifiers.
-
The initiator of the backfill, either
userfor manual backfills orsystemfor automatic gap fills.Values are
userorsystem. -
The start date for filtering backfills.
-
The field to sort backfills by.
Values are
createdAtorstart. -
The sort order.
Values are
ascordesc.
POST
/api/alerting/rules/backfill/_find
curl \
--request POST 'https://localhost:5601/api/alerting/rules/backfill/_find' \
--header "Authorization: $API_KEY" \
--header "kbn-xsrf: true"
Response examples (200)
{
"data": [
{
"id": "85bdf571-f4fb-4666-a8d2-e05e1220ebc6",
"rule": {
"id": "3583a470-74f6-11ed-9801-35303b735aef",
"name": "my alert",
"tags": [
"cpu"
],
"params": {
"index": [
"test-index"
],
"aggType": "avg",
"groupBy": "top",
"aggField": "sheet.version",
"termSize": 6,
"termField": "name.keyword",
"threshold": [
1000
],
"timeField": "@timestamp",
"timeWindowSize": 5,
"timeWindowUnit": "m",
"thresholdComparator": ">"
},
"enabled": true,
"consumer": "alerts",
"revision": 0,
"schedule": {
"interval": "1m"
},
"created_at": "2022-12-05T23:40:33.132Z",
"created_by": "elastic",
"updated_at": "2022-12-05T23:40:33.132Z",
"updated_by": "elastic",
"rule_type_id": ".index-threshold",
"api_key_owner": "elastic"
},
"start": "2024-01-01T00:00:00.000Z",
"status": "pending",
"enabled": true,
"duration": "12h",
"schedule": [
{
"run_at": "2024-01-01T12:00:00.000Z",
"status": "pending",
"interval": "12h"
},
{
"run_at": "2024-01-02T00:00:00.000Z",
"status": "pending",
"interval": "12h"
}
],
"space_id": "default",
"initiator": "user",
"created_at": "2024-01-30T00:00:00.000Z"
}
],
"page": 1,
"total": 1,
"per_page": 10
}