API создания календарей
Создаёт календарь.
Запрос
PUT _ml/calendars/<calendar_id>
Предварительные условия
Требуется привилегия кластера manage_ml. Эта привилегия включена в встроенную роль machine_learning_admin.
Описание
Дополнительную информацию см. в разделе Календари и запланированные события.
Параметры пути
-
<calendar_id> - (Обязательно, строка) Строка, уникально идентифицирующая календарь.
Тело запроса
-
description - (Необязательно, строка) Описание календаря.
Примеры
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
При создании календаря вы получите следующие результаты:
{
"calendar_id": "planned-outages",
"job_ids": []
}
© 2023-2025 Elasticsearch
As of September 2024, Elasticsearch is available under a choice of three licenses: the Server Side Public License (SSPL), the Elastic License, or the AGPLv3 (OSI approved).
Elasticsearch and the Elasticsearch logo are trademarks of Elasticsearch B.V., registered in the U.S. and in other countries.
https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-put-calendar.html