Add scheduled events to the calendar
- POST /_ml/calendars/{calendar_id}/events
- Cluster privileges:
manage_ml
Path Parameters
-
calendar_idstring Idrequired -
A string that uniquely identifies a calendar.
Request
-
eventsCalendarEventrequired -
A list of one of more scheduled events. The event’s start and end times can be specified as integer milliseconds since the epoch or as a string in ISO 8601 format.
-
calendar_idstring Id -
A string that uniquely identifies a calendar.
-
event_idstring Id -
descriptionstringrequired -
A description of the scheduled event.
-
end_timeDateTimerequired -
The timestamp for the end of the scheduled event in milliseconds since the epoch or ISO 8601 format.
-
start_timeDateTimerequired -
The timestamp for the beginning of the scheduled event in milliseconds since the epoch or ISO 8601 format.
-
skip_resultboolean · default: true -
When true the model will not create results for this calendar period.
-
skip_model_updateboolean · default: true -
When true the model will not be updated for this calendar period.
-
force_time_shiftnumber -
Shift time by this many seconds. For example adjust time for daylight savings changes
Response
-
eventsCalendarEventrequired -
calendar_idstring Id -
A string that uniquely identifies a calendar.
-
event_idstring Id -
descriptionstringrequired -
A description of the scheduled event.
-
end_timeDateTimerequired -
The timestamp for the end of the scheduled event in milliseconds since the epoch or ISO 8601 format.
-
start_timeDateTimerequired -
The timestamp for the beginning of the scheduled event in milliseconds since the epoch or ISO 8601 format.
-
skip_resultboolean · default: true -
When true the model will not create results for this calendar period.
-
skip_model_updateboolean · default: true -
When true the model will not be updated for this calendar period.
-
force_time_shiftnumber -
Shift time by this many seconds. For example adjust time for daylight savings changes