Get anomaly detection job results for categories
Generally available; Added in 5.4.0
Required authorization
- Cluster privileges:
monitor_ml
Path parameters
-
job_id
string Required Identifier for the anomaly detection job.
Query parameters
-
from
number Skips the specified number of categories.
-
partition_field_value
string Only return categories for the specified partition.
-
size
number Specifies the maximum number of categories to obtain.
POST
/_ml/anomaly_detectors/{job_id}/results/categories
Console
GET _ml/anomaly_detectors/esxi_log/results/categories
{
"page":{
"size": 1
}
}
resp = client.ml.get_categories(
job_id="esxi_log",
page={
"size": 1
},
)
const response = await client.ml.getCategories({
job_id: "esxi_log",
page: {
size: 1,
},
});
response = client.ml.get_categories(
job_id: "esxi_log",
body: {
"page": {
"size": 1
}
}
)
$resp = $client->ml()->getCategories([
"job_id" => "esxi_log",
"body" => [
"page" => [
"size" => 1,
],
],
]);
curl -X GET -H "Authorization: ApiKey $ELASTIC_API_KEY" -H "Content-Type: application/json" -d '{"page":{"size":1}}' "$ELASTICSEARCH_URL/_ml/anomaly_detectors/esxi_log/results/categories"
Request example
An example body for a `GET _ml/anomaly_detectors/esxi_log/results/categories` request.
{
"page":{
"size": 1
}
}