Add anomaly detection job to calendar
Generally available; Added in 6.2.0
PUT
/_ml/calendars/{calendar_id}/jobs/{job_id}
Console
PUT _ml/calendars/planned-outages/jobs/total-requests
resp = client.ml.put_calendar_job(
calendar_id="planned-outages",
job_id="total-requests",
)
const response = await client.ml.putCalendarJob({
calendar_id: "planned-outages",
job_id: "total-requests",
});
response = client.ml.put_calendar_job(
calendar_id: "planned-outages",
job_id: "total-requests"
)
$resp = $client->ml()->putCalendarJob([
"calendar_id" => "planned-outages",
"job_id" => "total-requests",
]);
curl -X PUT -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_ml/calendars/planned-outages/jobs/total-requests"