# 功能描述
添加需要监控的服务,目前支持 鉴权服务、任务调度服务
# 请求
# 请求示例
GET /monitor/service/save
# 请求参数_ _
无
# 请求头
名称 | 描述 | 类型 | 必填 |
---|---|---|---|
Authorization | 用户token信息 | string | 是 |
# 请求体
名称 | 描述 | 类型 | 必填 |
---|---|---|---|
id | 服务id,更新的时候需要 | number | 否 |
url | 完整的url地址,最后没有/ | string | 是 |
type | 服务类型 |
鉴权服务 auth_server 任务调度 task_scheduler | string | 是 |
# 响应
# 响应头
此接口无特殊响应头。
# 响应体
请求成功的响应体为
{
"code": 0,
"message": "success",
"data": null
}
请求失败的响应体为
{
"code": <errorCode>,
"message": <errorMessage>,
"data": null
}