/watchers/chips
DevelopingGET
/watchers/chipsReturns a list of chips which can be used to filter metrics and create watchers.
When 50 or fewer metrics match the search, these metric names are returned in full on the response in addition to the chips.
Request
A comma-separated list of chips to match against. When this is passed the method filters to only those metrics which contain the supplied chips, and also removes those chips from the results. Example: cpu,idle.
The maximum number of metrics which match the search for which including those metrics in the results is not considered too many, i.e "only if there are X or fewer matching metrics, include those metrics in the results". Default 50, max 1000. Example: 100.
Request samples
Responses
{
"status": {
"created_timestamp": 1657644269,
"created_string": "Tue 12 Jul 2022 @ 16:44 (UTC)",
"duration": 0.011,
"language": "en-gb",
"timezone": {
"timezone_type": 3,
"timezone": "UTC"
},
"code": 200,
"oldest_cached_component_age": 3141,
"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": {
"count_chips": 6,
"matching_metrics": 4,
"returned_metrics": 4,
"chips": [
{
"text": "clouddb-services",
"count": 4
},
{
"text": "graphite-labs_wikimedia_org",
"count": 4
},
{
"text": "clouddb1001",
"count": 1
},
{
"text": "clouddb1002",
"count": 1
},
{
"text": "clouddb1003",
"count": 1
},
{
"text": "clouddb1004",
"count": 1
}
],
"metrics": [
"graphite-labs_wikimedia_org.clouddb-services.clouddb1001.memory.MemFree",
"graphite-labs_wikimedia_org.clouddb-services.clouddb1002.memory.MemFree",
"graphite-labs_wikimedia_org.clouddb-services.clouddb1003.memory.MemFree",
"graphite-labs_wikimedia_org.clouddb-services.clouddb1004.memory.MemFree"
]
}
}