preview_data_frame.asciidoc 941 B

1234567891011121314151617181920212223242526272829303132
  1. --
  2. :api: preview-data-frame-transform
  3. :request: PreviewDataFrameTransformRequest
  4. :response: PreviewDataFrameTransformResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Preview {transform} API
  9. Previews the results of a {transform}.
  10. The API accepts a +{request}+ object as a request and returns a +{response}+.
  11. [id="{upid}-{api}-request"]
  12. ==== Preview {transform} request
  13. A +{request}+ takes a single argument: a valid {transform} config.
  14. ["source","java",subs="attributes,callouts,macros"]
  15. --------------------------------------------------
  16. include-tagged::{doc-tests-file}[{api}-request]
  17. --------------------------------------------------
  18. <1> The source config from which the data should be gathered
  19. <2> The pivot config used to transform the data
  20. <3> The configuration of the {transform} to preview
  21. include::../execution.asciidoc[]
  22. [id="{upid}-{api}-response"]
  23. ==== Response
  24. The returned +{response}+ contains the preview documents