Anomify API Documentation

/anomalies

/anomalies

/anomaly

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

/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/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/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: /metrics/mostrecentlyanomalous

Detail

This method is not available to demo user accounts.

Returns a list of unique metrics which have been anomalous most recently, ordered by the most recent anomaly on each metric. Returns 10 results unless the optional limit parameter is specified.

Only anomalies in the last 30 days are considered, so where no anomalies have occurred in that period, this method will return an empty result, not the most recent anomalies further back.

Parameters

Key Required Example Description
alerting_metrics_only no true When set 'true' (default), only consider alerting metrics
limit no 5 Limit the number of results returned, must be between 1 and 30. Defaults to 10 if not specified.

Example Output

{
    "status": { ... see /login method for status block structure ... },
    "data": {
        "metrics": [
            {
                "metric": "prom_2.node_load5",
                "last_anomaly_id": 208341,
                "last_anomaly_timestamp": 1656950280,
                "last_anomaly_timestamp_string": "July 4th, 15:58"
            },
            {
                "metric": "graphite-labs_wikimedia_org.clouddb-services.clouddb1001.cpu.total.system",
                "last_anomaly_id": 208261,
                "last_anomaly_timestamp": 1656808800,
                "last_anomaly_timestamp_string": "July 3rd, 00:40"
            },
            {
                "metric": "graphite-labs_wikimedia_org.clouddb-services.clouddb1001.memory.MemFree",
                "last_anomaly_id": 208236,
                "last_anomaly_timestamp": 1656746220,
                "last_anomaly_timestamp_string": "July 2nd, 07:17"
            },
            {
                "metric": "graphite-labs_wikimedia_org.clouddb-services.clouddb1004.memory.Active",
                "last_anomaly_id": 208213,
                "last_anomaly_timestamp": 1656706920,
                "last_anomaly_timestamp_string": "July 1st, 20:22"
            },
            {
                "metric": "graphite-labs_wikimedia_org.clouddb-services.clouddb1003.memory.MemFree",
                "last_anomaly_id": 208166,
                "last_anomaly_timestamp": 1656668460,
                "last_anomaly_timestamp_string": "July 1st, 09:41"
            }
        ]
    }
}

Live Request

URL: /metrics/mostrecentlyanomalous

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.