cURL
curl --request GET \
--url https://{tenant}.chronosphere.io/api/v1/config/monitors/{slug} \
--header 'API-Token: <api-key>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{tenant}.chronosphere.io/api/v1/config/monitors/{slug}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("API-Token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{tenant}.chronosphere.io/api/v1/config/monitors/{slug}")
.header("API-Token", "<api-key>")
.asString();const options = {method: 'GET', headers: {'API-Token': '<api-key>'}};
fetch('https://{tenant}.chronosphere.io/api/v1/config/monitors/{slug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{tenant}.chronosphere.io/api/v1/config/monitors/{slug}"
headers = {"API-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"monitor": {
"name": "<string>",
"annotations": {},
"bucket_slug": "<string>",
"collection": {
"slug": "<string>"
},
"collection_slug": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"graphite_query": "sumSeries(stats.timers.*.mean_90)",
"interval_secs": 123,
"labels": {},
"logging_query": "<string>",
"notification_policy_slug": "<string>",
"notification_template": "{\"title\": \"[{{.Severity}}] {{.Labels.service}} threshold exceeded\", \"description\": \"{{.Labels.env}} crossed {{.ThresholdOp}} {{.Threshold}}\"}",
"prometheus_query": "up{job=\"prometheus\"} == 0",
"schedule": {
"timezone": "<string>",
"weekly_schedule": {
"friday": {
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
},
"monday": {
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
},
"saturday": {
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
},
"sunday": {
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
},
"thursday": {
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
},
"tuesday": {
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
},
"wednesday": {
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
}
}
},
"series_conditions": {
"defaults": {
"critical": {
"conditions": [
{
"resolve_sustain_secs": 123,
"resolve_value": {
"enabled": true,
"value": 123
},
"sustain_secs": 123,
"value": 123
}
]
},
"warn": {
"conditions": [
{
"resolve_sustain_secs": 123,
"resolve_value": {
"enabled": true,
"value": 123
},
"sustain_secs": 123,
"value": 123
}
]
}
},
"overrides": [
{
"label_matchers": [
{
"name": "<string>",
"value": "<string>"
}
],
"severity_conditions": {
"critical": {
"conditions": [
{
"resolve_sustain_secs": 123,
"resolve_value": {
"enabled": true,
"value": 123
},
"sustain_secs": 123,
"value": 123
}
]
},
"warn": {
"conditions": [
{
"resolve_sustain_secs": 123,
"resolve_value": {
"enabled": true,
"value": 123
},
"sustain_secs": 123,
"value": 123
}
]
}
}
}
]
},
"signal_grouping": {
"label_names": [
"<string>"
],
"signal_per_series": true
},
"slug": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{}GET
/
api
/
v1
/
config
/
monitors
/
{slug}
cURL
curl --request GET \
--url https://{tenant}.chronosphere.io/api/v1/config/monitors/{slug} \
--header 'API-Token: <api-key>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{tenant}.chronosphere.io/api/v1/config/monitors/{slug}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("API-Token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{tenant}.chronosphere.io/api/v1/config/monitors/{slug}")
.header("API-Token", "<api-key>")
.asString();const options = {method: 'GET', headers: {'API-Token': '<api-key>'}};
fetch('https://{tenant}.chronosphere.io/api/v1/config/monitors/{slug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{tenant}.chronosphere.io/api/v1/config/monitors/{slug}"
headers = {"API-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"monitor": {
"name": "<string>",
"annotations": {},
"bucket_slug": "<string>",
"collection": {
"slug": "<string>"
},
"collection_slug": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"graphite_query": "sumSeries(stats.timers.*.mean_90)",
"interval_secs": 123,
"labels": {},
"logging_query": "<string>",
"notification_policy_slug": "<string>",
"notification_template": "{\"title\": \"[{{.Severity}}] {{.Labels.service}} threshold exceeded\", \"description\": \"{{.Labels.env}} crossed {{.ThresholdOp}} {{.Threshold}}\"}",
"prometheus_query": "up{job=\"prometheus\"} == 0",
"schedule": {
"timezone": "<string>",
"weekly_schedule": {
"friday": {
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
},
"monday": {
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
},
"saturday": {
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
},
"sunday": {
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
},
"thursday": {
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
},
"tuesday": {
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
},
"wednesday": {
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
}
}
},
"series_conditions": {
"defaults": {
"critical": {
"conditions": [
{
"resolve_sustain_secs": 123,
"resolve_value": {
"enabled": true,
"value": 123
},
"sustain_secs": 123,
"value": 123
}
]
},
"warn": {
"conditions": [
{
"resolve_sustain_secs": 123,
"resolve_value": {
"enabled": true,
"value": 123
},
"sustain_secs": 123,
"value": 123
}
]
}
},
"overrides": [
{
"label_matchers": [
{
"name": "<string>",
"value": "<string>"
}
],
"severity_conditions": {
"critical": {
"conditions": [
{
"resolve_sustain_secs": 123,
"resolve_value": {
"enabled": true,
"value": 123
},
"sustain_secs": 123,
"value": 123
}
]
},
"warn": {
"conditions": [
{
"resolve_sustain_secs": 123,
"resolve_value": {
"enabled": true,
"value": 123
},
"sustain_secs": 123,
"value": 123
}
]
}
}
}
]
},
"signal_grouping": {
"label_names": [
"<string>"
],
"signal_per_series": true
},
"slug": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{}⌘I

