Record Overview

This endpoint provides access to all of the job’s anomaly records. Compare with the buckets endpoint that presents a chronological view of the records grouped by bucket this endpoint returns the records ordered by anomalyScore, normalizedProbability, timestamp or any other field. The default ordering is the most anomalous records first but this can changed by specifying a different field to the sort query option additionally records below a certain anomalyScore or normalizedProbability value can be filtered out.

Records Endpoint

The endpoint for obtaining a job’s anomaly records is:

http://localhost:8080/engine/v2/results/<jobId>/records

Using the cURL command line client for example, to get the records for the job with ID job001 you would use the call:

curl -X GET 'http://localhost:8080/engine/v2/results/job001/records'

This call returns a paging document containing a list of anomaly records.

{
  "hitCount" : 145,
  "skip" : 0,
  "take" : 100,
  "nextPage" : "http://localhost:8080/engine/v2/results/job001/records?skip=100&take=100&includeInterim=false&sort=normalizedProbability&desc=true&anomalyScore=0.0&normalizedProbability=0.0",
  "previousPage" : null,
  "documents" : [ {
    "timestamp" : "2014-03-10T05:10:00.000+0000",
    "fieldName" : "value",
    "normalizedProbability" : 100.0,
    "probability" : 3.24563E-184,
    "anomalyScore" : 100.0,
    "function" : "mean",
    "typical" : 1.02244,
    "actual" : 14.09
  }, {
    "timestamp" : "2014-03-10T05:00:00.000+0000",
    "fieldName" : "value",
    "normalizedProbability" : 100.0,
    "probability" : 2.07911E-203,
    "anomalyScore" : 100.0,
    "function" : "mean",
    "typical" : 1.00672,
    "actual" : 15.575
  }, {
  ...