Anomify API Documentation
Anomify AI Main Site | Anomify Documentation

/anomalies

/anomalies

/anomaly

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

/billing

/billing/checkoutcallback
/billing/getcheckoutsession
/billing/getportalsession

/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/getquotametrics
/org/getstripesession
/org/graph
/org/info
/org/removequotametrics
/org/stripecallback
/org/summary
/org/testmetrics
/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: /watcher/create

Detail

This method is not available to demo user accounts.

Creates a watcher.

Parameters

Key Required Example Description
chips yes cpu,idle Comma-separated list of chips to create the watcher with
alert no true Boolean: Whether the watcher should be configured to alert. Defaults to false if not specified
name yes My Brand New Watcher A name for the watcher
alert_slack_channel no anomify-alerts A custom slack channel to alert to
expiration_time no 1-hour Expiration time for alerts, specified in seconds. Defaults to 3600 (one hour)
alert_email_recipient_ids no 101,102 Comma-separated list of user ids to receive real-time alerts by email
alert_sms_recipient_ids no 101,102 Comma-separated list of user ids to receive real-time alerts by SMS
mention_slack_recipient_ids no 101,102 Comma-separated list of user ids to be mentioned in Slack alerts
summary_report_schedule no daily-10:00 When to send summary reports. Valid example values are daily-10:00, weekly-monday, monthly-17. If this is not set, summary reports are not enabled.
summary_report_recipient_ids no 101,102 Comma-separated list of user ids to receive summary reports by email. If 'summary_report_frequency' has been specified, at least one user id must be specified here.
send_test_alert no true "true" or "false", whether to fire a test alert when the watcher is created

Example Output

{
    "status": { ... see /login method for status block structure ... }
},
        "code": 200,
        "oldest_cached_component_age": 9589041,
        "session_id": "1dedbf232bc104b6087327016c50ba45",
        "org_onboarding_status_id": 300,
        "api_host": "api-stage.anomify.ai",
        "user_onboarding_flags": {
            "main_intro": true,
            "alerts_intro": false,
            "alerts_from_search": false,
            "training_intro": false,
            "alert_created": true,
            "test_alert_sent": true,
            "two_alerts_sent": true,
            "pattern_trained": true
        }
    },
    "data": {
        "test_metric": null,
        "test_metric_last_analyzed": null,
        "watcher": {
            "id": 343,
            "name": "Si Test Alert 2022-07-12 01",
            "is_alert": true,
            "is_deleted": false,
            "owner": {
                "id": 101,
                "org_id": 101,
                "name": "Phil Collins",
                "email": "si@anomalarm.io",
                "phone_number": "+447976123456",
                "slack_member_id": "U04UFSKFY",
                "demo": false,
                "admin": true,
                "org": {
                    "id": 101,
                    "name": "Anomify",
                    "timezone": "UTC",
                    "alert_muting": {
                        "muted": false,
                        "muted_until_timestamp": null,
                        "muted_until_timestamp_string": null,
                        "minutes_remaining": null
                    },
                    "onboarding_status_id": 300,
                    "connected_services": {
                        "slack": true,
                        "ms_teams": false
                    }
                },
                "notifications": {
                    "email_alerts": true
                },
                "onboarding_flags": {
                    "main_intro": true,
                    "alerts_intro": false,
                    "alerts_from_search": false,
                    "training_intro": false,
                    "alert_created": true,
                    "test_alert_sent": true,
                    "two_alerts_sent": true,
                    "pattern_trained": true
                }
            }
        }
    }
}

Live Request

URL: /watcher/create

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.