preview_data_frame.asciidoc 976 B

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