-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Description
It would be nice if a user who knows the reason for an interesting feature in the ML results to be able to annotate this.
To enable this we could add a new annotation result type, similar to this:
{
"job_id": "it-ops-metrics",
"result_type": "annotation",
"timestamp": 1454944200000,
"end_timestamp": 1454946000000,
"annotation": "Datacenter was isolated for failover testing",
// The following is optional
"detector_index": 1
}
By making the detector index optional, the annotation can apply to either the whole job or just a specific detector.
Unlike other ML results, instead of timestamp and bucket_span annotations have timestamp and end_timestamp so that the annotation can span an arbitrary time period.
Originally it was thought that the same functionality could be used by the ML C++ code to add reasons why it created results, but the current thinking is that it is better to have separate functionality for the two use cases, hence elastic/ml-cpp#197 has been raised to discuss labelling by the C++ code.