Create calendars API
Create calendars API
New API reference
For the most up-to-date API details, refer to Machine learning anomaly detection APIs.
Instantiates a calendar.
Request
PUT _ml/calendars/<calendar_id>
Prerequisites
Requires the manage_ml
cluster privilege. This privilege is included in the machine_learning_admin
built-in role.
Description
For more information, see Calendars and scheduled events.
Path parameters
<calendar_id>
(Required, string) A string that uniquely identifies a calendar.
Request body
description
(Optional, string) A description of the calendar.
Examples
resp = client.ml.put_calendar(
calendar_id="planned-outages",
)
print(resp)
response = client.ml.put_calendar(
calendar_id: 'planned-outages'
)
puts response
const response = await client.ml.putCalendar({
calendar_id: "planned-outages",
});
console.log(response);
PUT _ml/calendars/planned-outages
When the calendar is created, you receive the following results:
{
"calendar_id": "planned-outages",
"job_ids": []
}
当前内容版权归 elasticsearch 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 elasticsearch .