# Function description
Add services that need to be monitored. Currently, authentication services and task scheduling services are supported.
# Request
# Request example
GET /monitor/service/save
# Request Parameters
none
# Request Headers
Name | Description | Type | Mandatory |
---|---|---|---|
Authorization | User token information | string | Yes |
# Request Body
Name | Description | Type | Mandatory |
---|---|---|---|
id | Service id, required when updating | number | no |
url | full url address without / at the end | string | yes |
type | Service type Authentication service: auth_server task scheduling: task_scheduler | string | yes |
# Response
# Response Header
No special response header
# Response Body
Successful Response Body :
{
"code": 0,
"message": "success",
"data": null
}
The response body of the failed request is
{
"code": <errorCode>,
"message": <errorMessage>,
"data": null
}