Create a calendar
Generally available
Required authorization
- Cluster privileges:
manage_ml
Path parameters
-
calendar_id
string Required A string that uniquely identifies a calendar.
Body
-
job_ids
array[string] An array of anomaly detection job identifiers.
-
description
string A description of the calendar.
PUT
/_ml/calendars/{calendar_id}
Console
PUT _ml/calendars/planned-outages
resp = client.ml.put_calendar(
calendar_id="planned-outages",
)
const response = await client.ml.putCalendar({
calendar_id: "planned-outages",
});
response = client.ml.put_calendar(
calendar_id: "planned-outages"
)
$resp = $client->ml()->putCalendar([
"calendar_id" => "planned-outages",
]);
curl -X PUT -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_ml/calendars/planned-outages"