Get anomaly detection job results for influencers Added in 5.4.0
Influencers are the entities that have contributed to, or are to blame for,
the anomalies. Influencer results are available only if an
influencer_field_name
is specified in the job configuration.
Path parameters
-
Identifier for the anomaly detection job.
Query parameters
-
desc boolean
If true, the results are sorted in descending order.
-
end string | number
Returns influencers with timestamps earlier than this time. The default value means it is unset and results are not limited to specific timestamps.
-
exclude_interim boolean
If true, the output excludes interim results. By default, interim results are included.
-
influencer_score number
Returns influencers with anomaly scores greater than or equal to this value.
-
from number
Skips the specified number of influencers.
-
size number
Specifies the maximum number of influencers to obtain.
-
sort string
Specifies the sort field for the requested influencers. By default, the influencers are sorted by the
influencer_score
value. -
start string | number
Returns influencers with timestamps after this time. The default value means it is unset and results are not limited to specific timestamps.
curl \
-X GET http://api.example.com/_ml/anomaly_detectors/{job_id}/results/influencers \
-H "Content-Type: application/json" \
-d '{"page":{"from":42.0,"size":42.0}}'
{
"page": {
"from": 42.0,
"size": 42.0
}
}
{
"count": 42.0,
"influencers": [
{
"": 42.0,
"influencer_score": 42.0,
"influencer_field_name": "string",
"influencer_field_value": "string",
"initial_influencer_score": 42.0,
"is_interim": true,
"job_id": "string",
"probability": 42.0,
"result_type": "string",
"foo": "string"
}
]
}