Index rollups API
Introduced 1.0
Creates or updates an index rollup job. You must provide the and primary_term
parameters.
Request
You can specify the following options.
Example response
{
"_id": "<rollup_id>",
"_version": 3,
"_seq_no": 1,
"rollup": {
"rollup_id": "<rollup_id>",
"enabled": true,
"schedule": {
"interval": {
"start_time": 1680159934649,
"period": 1,
"unit": "Days",
}
},
"last_updated_time": 1680159934649,
"enabled_time": 1680159934649,
"description": "Example rollup job",
"schema_version": 17,
"source_index": "nyc-taxi-data",
"target_index": "rollup-nyc-taxi-data",
"metadata_id": null,
"page_size": 200,
"delay": 0,
"continuous": false,
"dimensions": [
{
"date_histogram": {
"fixed_interval": "1h",
"source_field": "tpep_pickup_datetime",
"target_field": "tpep_pickup_datetime",
"timezone": "America/Los_Angeles"
}
},
{
"terms": {
"source_field": "PULocationID",
}
}
],
{
"source_field": "passenger_count",
"metrics": [
{
"avg": {}
},
{
"sum": {}
},
{
"max": {}
},
{
"min": {}
},
{
"value_count": {}
}
]
}
]
}
}
Returns all information about an index rollup job based on the rollup_id
.
Request
GET _plugins/_rollup/jobs/<rollup_id>
Example response
Introduced 1.0
Deletes an index rollup job based on the rollup_id
.
Request
DELETE _plugins/_rollup/jobs/<rollup_id>
Example response
200 OK
Start or stop an index rollup job.
Request
Example response
200 OK
Introduced 1.0
Returns detailed metadata information about the index rollup job and its current progress.