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

  1. {
  2. "_id": "<rollup_id>",
  3. "_version": 3,
  4. "_seq_no": 1,
  5. "rollup": {
  6. "rollup_id": "<rollup_id>",
  7. "enabled": true,
  8. "schedule": {
  9. "interval": {
  10. "start_time": 1680159934649,
  11. "period": 1,
  12. "unit": "Days",
  13. }
  14. },
  15. "last_updated_time": 1680159934649,
  16. "enabled_time": 1680159934649,
  17. "description": "Example rollup job",
  18. "schema_version": 17,
  19. "source_index": "nyc-taxi-data",
  20. "target_index": "rollup-nyc-taxi-data",
  21. "metadata_id": null,
  22. "page_size": 200,
  23. "delay": 0,
  24. "continuous": false,
  25. "dimensions": [
  26. {
  27. "date_histogram": {
  28. "fixed_interval": "1h",
  29. "source_field": "tpep_pickup_datetime",
  30. "target_field": "tpep_pickup_datetime",
  31. "timezone": "America/Los_Angeles"
  32. }
  33. },
  34. {
  35. "terms": {
  36. "source_field": "PULocationID",
  37. }
  38. }
  39. ],
  40. {
  41. "source_field": "passenger_count",
  42. "metrics": [
  43. {
  44. "avg": {}
  45. },
  46. {
  47. "sum": {}
  48. },
  49. {
  50. "max": {}
  51. },
  52. {
  53. "min": {}
  54. },
  55. {
  56. "value_count": {}
  57. }
  58. ]
  59. }
  60. ]
  61. }
  62. }

Returns all information about an index rollup job based on the rollup_id.

Request

  1. GET _plugins/_rollup/jobs/<rollup_id>

Example response


Introduced 1.0

Deletes an index rollup job based on the rollup_id.

Request

  1. DELETE _plugins/_rollup/jobs/<rollup_id>

Example response

  1. 200 OK

Start or stop an index rollup job.

Request

Example response

  1. 200 OK

Introduced 1.0

Returns detailed metadata information about the index rollup job and its current progress.

Request

Example response