2018-11-20 17:40:31 -05:00
|
|
|
--
|
|
|
|
:api: get-calendar-events
|
|
|
|
:request: GetCalendarEventsRequest
|
|
|
|
:response: GetCalendarEventsResponse
|
|
|
|
--
|
2019-09-10 11:26:56 -04:00
|
|
|
[role="xpack"]
|
2018-11-20 17:40:31 -05:00
|
|
|
[id="{upid}-{api}"]
|
2019-07-30 13:52:23 -04:00
|
|
|
=== Get calendar events API
|
2020-10-02 17:01:01 -04:00
|
|
|
|
2019-07-30 13:52:23 -04:00
|
|
|
Retrieves a calendar's events.
|
2018-11-20 17:40:31 -05:00
|
|
|
It accepts a +{request}+ and responds
|
|
|
|
with a +{response}+ object.
|
|
|
|
|
|
|
|
[id="{upid}-{api}-request"]
|
2020-10-02 17:01:01 -04:00
|
|
|
==== Get calendar events request
|
2018-11-20 17:40:31 -05:00
|
|
|
|
|
|
|
A +{request}+ requires a non-null calendar ID.
|
|
|
|
Using the literal `_all` returns the events for all calendars.
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
|
|
|
--------------------------------------------------
|
2019-07-30 13:52:23 -04:00
|
|
|
<1> Constructing a new request for the specified calendarId.
|
2018-11-20 17:40:31 -05:00
|
|
|
|
2019-07-30 13:52:23 -04:00
|
|
|
==== Optional arguments
|
2018-11-20 17:40:31 -05:00
|
|
|
The following arguments are optional:
|
|
|
|
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-page]
|
|
|
|
--------------------------------------------------
|
|
|
|
<1> The page parameters `from` and `size`. `from` specifies the number of events to skip.
|
|
|
|
`size` specifies the maximum number of events to get. Defaults to `0` and `100` respectively.
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-start]
|
|
|
|
--------------------------------------------------
|
|
|
|
<1> Specifies to get events with timestamps after this time.
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-end]
|
|
|
|
--------------------------------------------------
|
|
|
|
<1> Specifies to get events with timestamps earlier than this time.
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-jobid]
|
|
|
|
--------------------------------------------------
|
2019-07-30 13:52:23 -04:00
|
|
|
<1> Get events for the job. When this option is used calendar_id must be `_all`.
|
2018-11-20 17:40:31 -05:00
|
|
|
|
|
|
|
include::../execution.asciidoc[]
|
|
|
|
|
|
|
|
[id="{upid}-{api}-response"]
|
2020-10-02 17:01:01 -04:00
|
|
|
==== Get calendar events response
|
2018-11-20 17:40:31 -05:00
|
|
|
|
|
|
|
The returned +{response}+ contains the requested events:
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-response]
|
|
|
|
--------------------------------------------------
|
2019-07-30 13:52:23 -04:00
|
|
|
<1> The count of events that were matched.
|
|
|
|
<2> The events retrieved.
|