Anomify API Documentation
Anomify AI Main Site | Anomify Documentation

/anomalies

/anomalies

/anomaly

/anomaly/lookup
/anomaly/train
/anomaly/{anomaly_id}

/exclusion

/exclusion/add
/exclusion/delete
/exclusion/list
/exclusion/test
/exclusion/types

/image

/image/anomaly
/image/metric

/js

/js/eventsender

/login

/login
/login/forgotpassword
/login/resetpassword
/login/validateclient

/match

/match/{match_id}
/match/{match_id}/graph
/match/{match_id}/motif/graph

/metric

/metric/{metric_name}
/metric/{metric_name}/anomalies
/metric/{metric_name}/anomalysummary
/metric/{metric_name}/bundle
/metric/{metric_name}/graph
/metric/{metric_name}/patterns
/metric/{metric_name}/timeseries
/metric/{metric_name}/yhat

/metrics

/metrics
/metrics/mostanomalous
/metrics/mostrecentlyanomalous
/metrics/mostrecentlymatched

/misc

/misc/phonecodes
/misc/timesince
/misc/timezones

/org

/org/adminalert/{alert_code}
/org/adminalerts
/org/channels
/org/events
/org/graph
/org/info
/org/summary
/org/update
/org/users

/pattern

/pattern/{pattern_id}
/pattern/{pattern_id}/disable
/pattern/{pattern_id}/matches
/pattern/{pattern_id}/timeseries

/patterns

/patterns/pending

/ping

/ping

/signup

/signup/demo
/signup/demo-orgs
/signup/selfserve
/signup/verify

/status

/status

/user

/user/delete
/user/info
/user/logout
/user/ping
/user/reportissue
/user/update
/user/updatepassword

/watcher

/watcher/create
/watcher/{watcher_id}/delete
/watcher/{watcher_id}/undelete
/watcher/{watcher_id}/update

/watchers

/watchers/chips
/watchers/list

Method: /metric/{metric_name}/anomalies

Detail

Returns a list of anomalies for the metric supplied in the URL.

Parameters

Key Required Example Description
from yes 1577014310 Timestamp
until no 1588218480 Timestamp

Metric name is supplied in the URL, e.g.

/metric/demo_robustperception_io.prometheus.node_memory_MemFree_bytes/anomalies

Example Output

{
    "status": { ... see /login method for status block structure ... },
    "data": {
        "metric": {
            "id": 744,
            "metric": "demo_robustperception_io.prometheus.node_memory_MemFree_bytes",
            "total_anomalies": 84,
            "total_patterns": 8,
            "total_pattern_matches": 284,
            "created_timestamp": 1584628490,
            "created_timestamp_string": "March 19th 2020",
            "trainable": false
        },
        "anomalies": [
            {
                "id": 6497,
                "metric_id": 744,
                "metric": "demo_robustperception_io.prometheus.node_memory_MemFree_bytes",
                "value": 651468800,
                "timestamp": 1588150800,
                "timestamp_string": "April 29th 2020, 09:00",
                "until_timestamp": 1588151340,
                "score": 0.78,
                "training": {
                    "trainable": false,
                    "trainable_status": "expired",
                    "trainable_until_timestamp": null,
                    "30_day_trainable_from_timestamp": null,
                    "30_day_trainable_in": null
                },
                "patterns": [],
                "positive": false
            },
            {
                "id": 6505,
                "metric_id": 744,
                "metric": "demo_robustperception_io.prometheus.node_memory_MemFree_bytes",
                "value": 886585051.428571,
                "timestamp": 1588151760,
                "timestamp_string": "April 29th 2020, 09:16",
                "until_timestamp": 1588151940,
                "score": 0.89,
                "training": {
                    "trainable": false,
                    "trainable_status": "expired",
                    "trainable_until_timestamp": null,
                    "30_day_trainable_from_timestamp": null,
                    "30_day_trainable_in": null
                },
                "patterns": [],
                "positive": false
            },
            {
                "id": 6514,
                "metric_id": 744,
                "metric": "demo_robustperception_io.prometheus.node_memory_MemFree_bytes",
                "value": 704628736,
                "timestamp": 1588152660,
                "timestamp_string": "April 29th 2020, 09:31",
                "until_timestamp": 1588153500,
                "score": 0.89,
                "training": {
                    "trainable": false,
                    "trainable_status": "expired",
                    "trainable_until_timestamp": null,
                    "30_day_trainable_from_timestamp": null,
                    "30_day_trainable_in": null
                },
                "patterns": [],
                "positive": false
            },
            {
                "id": 6705,
                "metric_id": 744,
                "metric": "demo_robustperception_io.prometheus.node_memory_MemFree_bytes",
                "value": 1314051686.4,
                "timestamp": 1588217340,
                "timestamp_string": "April 30th 2020, 03:29",
                "until_timestamp": 1588219200,
                "score": 0.89,
                "training": {
                    "trainable": false,
                    "trainable_status": "expired",
                    "trainable_until_timestamp": null,
                    "30_day_trainable_from_timestamp": null,
                    "30_day_trainable_in": null
                },
                "patterns": [],
                "positive": false
            },
            {
                "id": 6706,
                "metric_id": 744,
                "metric": "demo_robustperception_io.prometheus.node_memory_MemFree_bytes",
                "value": 1276411084.8,
                "timestamp": 1588218180,
                "timestamp_string": "April 30th 2020, 03:43",
                "until_timestamp": 1588219200,
                "score": 0.89,
                "training": {
                    "trainable": false,
                    "trainable_status": "expired",
                    "trainable_until_timestamp": null,
                    "30_day_trainable_from_timestamp": null,
                    "30_day_trainable_in": null
                },
                "patterns": [],
                "positive": false
            }
        ]
    }
}

Live Request

URL: /metric//anomalies

You need to be logged in to your Anomify account to to make live API requests.

Please log in here or sign up to Anomify

Email
Password

Live request results will appear here.