Get anomaly detection job results for categories Added in 5.4.0
Path parameters
-
Identifier for the anomaly detection job.
-
Identifier for the category, which is unique in the job. If you specify neither the category ID nor the partition_field_value, the API returns information about all categories. If you specify only the partition_field_value, it returns information about all categories for the specified partition.
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.
GET
/_ml/anomaly_detectors/{job_id}/results/categories/{category_id}
curl \
-X GET http://api.example.com/_ml/anomaly_detectors/{job_id}/results/categories/{category_id} \
-H "Content-Type: application/json" \
-d '{"page":{"from":42.0,"size":42.0}}'
Request examples
{
"page": {
"from": 42.0,
"size": 42.0
}
}
Response examples (200)
{
"categories": [
{
"category_id": 42.0,
"examples": [
"string"
],
"grok_pattern": "string",
"job_id": "string",
"max_matching_length": 42.0,
"partition_field_name": "string",
"partition_field_value": "string",
"regex": "string",
"terms": "string",
"num_matches": 42.0,
"preferred_to_categories": [
"string"
],
"p": "string",
"result_type": "string",
"mlcategory": "string"
}
],
"count": 42.0
}