schedule-now-transform.asciidoc 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. [role="xpack"]
  2. [testenv="basic"]
  3. [[schedule-now-transform]]
  4. = Schedule now {transform} API
  5. [subs="attributes"]
  6. ++++
  7. <titleabbrev>Schedule now {transform}</titleabbrev>
  8. ++++
  9. Instantly runs a {transform} to process data.
  10. [[schedule-now-transform-request]]
  11. == {api-request-title}
  12. `POST _transform/<transform_id>/_schedule_now`
  13. [[schedule-now-transform-prereqs]]
  14. == {api-prereq-title}
  15. * Requires the `manage_transform` cluster privilege. This privilege is included
  16. in the `transform_admin` built-in role.
  17. [[schedule-now-transform-desc]]
  18. == {api-description-title}
  19. When you run this API, processing for the next checkpoint is started immediately
  20. without waiting for the configured `frequency` interval. The API returns
  21. immediately, data processing happens in the background. Subsequently, the
  22. {transform} will be processed again at `now + frequency` unless the API is
  23. called again in the meantime.
  24. [[schedule-now-transform-path-parms]]
  25. == {api-path-parms-title}
  26. `<transform_id>`::
  27. (Required, string)
  28. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=transform-id]
  29. [[schedule-now-transform-query-parms]]
  30. == {api-query-parms-title}
  31. `timeout`::
  32. (Optional, time)
  33. Period to wait for a response. If no response is received before the timeout
  34. expires, the request fails and returns an error. Defaults to `30s`.
  35. [[schedule-now-transform-examples]]
  36. == {api-examples-title}
  37. [source,console]
  38. --------------------------------------------------
  39. POST _transform/ecommerce_transform/_schedule_now
  40. --------------------------------------------------
  41. // TEST[skip:setup kibana sample data]
  42. When the {transform} is scheduled now, you receive the following results:
  43. [source,console-result]
  44. ----
  45. {
  46. "acknowledged" : true
  47. }
  48. ----