@@ -35,57 +35,52 @@ For more information, see
35
35
==== {api-path-parms-title}
36
36
37
37
`<calendar_id>`::
38
- (Required, string) Identifier for the calendar.
38
+ (Required, string)
39
+ include::{docdir}/ml/ml-shared.asciidoc[tag=calendar-id]
39
40
40
41
[[ml-get-calendar-event-request-body]]
41
42
==== {api-request-body-title}
42
43
43
44
`end`::
44
- (Optional, string) Specifies to get events with timestamps earlier than this
45
- time.
45
+ (Optional, string) Specifies to get events with timestamps earlier than this
46
+ time.
46
47
47
48
`from`::
48
- (Optional, integer) Skips the specified number of events.
49
+ (Optional, integer) Skips the specified number of events.
49
50
50
51
`size`::
51
- (Optional, integer) Specifies the maximum number of events to obtain.
52
+ (Optional, integer) Specifies the maximum number of events to obtain.
52
53
53
54
`start`::
54
- (Optional, string) Specifies to get events with timestamps after this time.
55
+ (Optional, string) Specifies to get events with timestamps after this time.
55
56
56
57
[[ml-get-calendar-event-results]]
57
58
==== {api-response-body-title}
58
59
59
- The API returns the following information:
60
+ The API returns an array of scheduled event resources, which have the
61
+ following properties:
60
62
61
- `events `::
62
- (array) An array of scheduled event resources. An events resource has the
63
- following properties:
63
+ `calendar_id `::
64
+ (string)
65
+ include::{docdir}/ml/ml-shared.asciidoc[tag=calendar-id]
64
66
65
- `calendar_id`:::
66
- (string) An identifier for the calendar that contains the scheduled
67
- event.
67
+ `description`::
68
+ (string) A description of the scheduled event.
68
69
69
- `description`:::
70
- (string) A description of the scheduled event.
70
+ `end_time`::
71
+ (date) The timestamp for the end of the scheduled event in milliseconds since
72
+ the epoch or ISO 8601 format.
71
73
72
- `end_time`:::
73
- (date) The timestamp for the end of the scheduled event
74
- in milliseconds since the epoch or ISO 8601 format.
74
+ `event_id`::
75
+ (string) An automatically-generated identifier for the scheduled event.
75
76
76
- `event_id`:::
77
- (string) An automatically-generated identifier for the scheduled event.
78
-
79
- `start_time`:::
80
- (date) The timestamp for the beginning of the scheduled event
81
- in milliseconds since the epoch or ISO 8601 format.
77
+ `start_time`::
78
+ (date) The timestamp for the beginning of the scheduled event in milliseconds
79
+ since the epoch or ISO 8601 format.
82
80
83
81
[[ml-get-calendar-event-example]]
84
82
==== {api-examples-title}
85
83
86
- The following example gets information about the scheduled events in the
87
- `planned-outages` calendar:
88
-
89
84
[source,console]
90
85
--------------------------------------------------
91
86
GET _ml/calendars/planned-outages/events
0 commit comments