get-influencers.asciidoc 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. --
  2. :api: get-influencers
  3. :request: GetInfluencersRequest
  4. :response: GetInfluencersResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Get influencers API
  9. Retrieves one or more influencer results.
  10. It accepts a +{request}+ object and responds with a +{response}+ object.
  11. [id="{upid}-{api}-request"]
  12. ==== Get influencers request
  13. A +{request}+ object gets created with an existing non-null `jobId`.
  14. ["source","java",subs="attributes,callouts,macros"]
  15. --------------------------------------------------
  16. include-tagged::{doc-tests-file}[{api}-request]
  17. --------------------------------------------------
  18. <1> Constructing a new request referencing an existing `jobId`.
  19. ==== Optional arguments
  20. The following arguments are optional:
  21. ["source","java",subs="attributes,callouts,macros"]
  22. --------------------------------------------------
  23. include-tagged::{doc-tests-file}[{api}-desc]
  24. --------------------------------------------------
  25. <1> If `true`, the influencers are sorted in descending order. Defaults to `false`.
  26. ["source","java",subs="attributes,callouts,macros"]
  27. --------------------------------------------------
  28. include-tagged::{doc-tests-file}[{api}-end]
  29. --------------------------------------------------
  30. <1> Influencers with timestamps earlier than this time will be returned.
  31. ["source","java",subs="attributes,callouts,macros"]
  32. --------------------------------------------------
  33. include-tagged::{doc-tests-file}[{api}-exclude-interim]
  34. --------------------------------------------------
  35. <1> If `true`, interim results will be excluded. Defaults to `false`.
  36. ["source","java",subs="attributes,callouts,macros"]
  37. --------------------------------------------------
  38. include-tagged::{doc-tests-file}[{api}-influencer-score]
  39. --------------------------------------------------
  40. <1> Influencers with `influencer_score` greater than or equal to this value will
  41. be returned.
  42. ["source","java",subs="attributes,callouts,macros"]
  43. --------------------------------------------------
  44. include-tagged::{doc-tests-file}[{api}-page]
  45. --------------------------------------------------
  46. <1> The page parameters `from` and `size`. `from` specifies the number of
  47. influencers to skip. `size` specifies the maximum number of influencers to get.
  48. Defaults to `0` and `100` respectively.
  49. ["source","java",subs="attributes,callouts,macros"]
  50. --------------------------------------------------
  51. include-tagged::{doc-tests-file}[{api}-sort]
  52. --------------------------------------------------
  53. <1> The field to sort influencers on. Defaults to `influencer_score`.
  54. ["source","java",subs="attributes,callouts,macros"]
  55. --------------------------------------------------
  56. include-tagged::{doc-tests-file}[{api}-start]
  57. --------------------------------------------------
  58. <1> Influencers with timestamps on or after this time will be returned.
  59. include::../execution.asciidoc[]
  60. [id="{upid}-{api}-response"]
  61. ==== Get influencers response
  62. The returned +{response}+ contains the requested influencers:
  63. ["source","java",subs="attributes,callouts,macros"]
  64. --------------------------------------------------
  65. include-tagged::{doc-tests-file}[{api}-response]
  66. --------------------------------------------------
  67. <1> The count of influencers that were matched.
  68. <2> The influencers retrieved.