API端点:
https://pu.a.koq.net/api/v1/monitors
请求示例:
curl --location --request GET 'https://pu.a.koq.net/api/v1/monitors' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
search_by
name
, 网址的url
默认为:name
status_page_id
sort_by
id
, 名字的name
, 网址的url
默认为:id
sort
desc
, 升序的asc
默认为:desc
per_page
10
, 25
, 50
, 100
默认为:10
API端点:
https://pu.a.koq.net/api/v1/monitors/{id}
请求示例:
curl --location --request GET 'https://pu.a.koq.net/api/v1/monitors/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API端点:
https://pu.a.koq.net/api/v1/monitors
请求示例:
curl --location --request POST 'https://pu.a.koq.net/api/v1/monitors' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'name={name}' \ --data-urlencode 'url={url}'
name
url
interval
60
, 180
, 300
, 600
, 900
, 1800
, 3600
alert_condition
url_unavailable
, 网址响应包含文本的url_text
, 网址响应不包含文本的url_no_text
alert_text_lookup
alert_condition
字段设置为url_text
, url_no_text
时有效request_method
GET
, POST
, HEAD
, PUT
, DELETE
, PATCH
, OPTIONS
request_headers[index][key]
request_headers[index][value]
request_auth_username
request_auth_password
cache_buster
0
, 启用的1
默认为:0
ssl_alert_days
0
, 1
, 2
, 3
, 7
, 14
, 30
, 60
domain_alert_days
0
, 1
, 2
, 3
, 7
, 14
, 30
, 60
maintenance_start_at
Y-m-d H:i
maintenance_end_at
Y-m-d H:i
alerts[index][key]
email
, Webhook的webhook
, Slack的slack
, Microsoft Teams的teams
, Discord的discord
, Flock的flock
, SMS的sms
alerts[index][value]
API端点:
https://pu.a.koq.net/api/v1/monitors/{id}
请求示例:
curl --location --request PUT 'https://pu.a.koq.net/api/v1/monitors/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'name={name}'
name
url
interval
60
, 180
, 300
, 600
, 900
, 1800
, 3600
alert_condition
url_unavailable
, 网址响应包含文本的url_text
, 网址响应不包含文本的url_no_text
alert_text_lookup
alert_condition
字段设置为url_text
, url_no_text
时有效request_method
GET
, POST
, HEAD
, PUT
, DELETE
, PATCH
, OPTIONS
request_headers[index][key]
request_headers[index][value]
request_auth_username
request_auth_password
cache_buster
0
, 启用的1
ssl_alert_days
0
, 1
, 2
, 3
, 7
, 14
, 30
, 60
domain_alert_days
0
, 1
, 2
, 3
, 7
, 14
, 30
, 60
maintenance_start_at
Y-m-d H:i
maintenance_end_at
Y-m-d H:i
alerts[index][key]
email
, Webhook的webhook
, Slack的slack
, Microsoft Teams的teams
, Discord的discord
, Flock的flock
, SMS的sms
alerts[index][value]
paused
API端点:
https://pu.a.koq.net/api/v1/monitors/{id}
请求示例:
curl --location --request DELETE 'https://pu.a.koq.net/api/v1/monitors/{id}' \ --header 'Authorization: Bearer {api_key}'