| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | monitor_name | string | |
| default | type | enum | Available values:
|
| default | interval | uint32 | |
| default | timeout | uint32 | |
| default | max_retries | uint32 | Sets the maximum number of consecutive health checks allowed to set the status of the SDNS service as up or down. |
| default | dst_ip | UnionField | Sets the destination IP address of the health check packet. |
| default | src_ip | UnionField | Sets the source IP address of the health check packet. |
| default | gateway | UnionField | Sets the IP address of the gateway from which the health check packet is transmitted. |
| default | request | string | Sets the HTTP method that the HTTP request uses to detect the health status of the SDNS service. |
| default | response | string | Sets the status code expected in the HTTP response returned by the SDNS service. |
| default | flag | enum | Sets the result of the health check when the HTTP response returned by the SDNS service contains the expected status code.Available values:
|
| default | dst_port | port | |
| monitor_apply_setting | service | asso | |
| monitor_apply_setting | pool | asso |
{
"HTTPMonitor": {
"meta": {
"abstract": false,
"verbose_name": HTTP(S)-type Health Check Template,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| monitor_name | string | ||||||||||
| interval | uint32 | ||||||||||
| timeout | uint32 | ||||||||||
| max_retries | uint32 | Sets the maximum number of consecutive health checks allowed to set the status of the SDNS service as up or down. | |||||||||
| dst_ip | UnionField (Nested Field. It should be a dict.)
|
Sets the destination IP address of the health check packet. | |||||||||
| src_ip | UnionField (Nested Field. It should be a dict.)
|
Sets the source IP address of the health check packet. | |||||||||
| gateway | UnionField (Nested Field. It should be a dict.)
|
Sets the IP address of the gateway from which the health check packet is transmitted. | |||||||||
| request | string | Sets the HTTP method that the HTTP request uses to detect the health status of the SDNS service. | |||||||||
| response | string | Sets the status code expected in the HTTP response returned by the SDNS service. | |||||||||
| flag | enum | Sets the result of the health check when the HTTP response returned by the SDNS service contains the expected status code.Available values:
|
|||||||||
| dst_port | port |
{
"HTTPMonitor": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"HTTPMonitor": [
{
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
},
...
]
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
| field_group_name | URI | (optional) Target field group name to query. Available names are: default, monitor_apply_setting, instances, Notice: There could only be one field_group_name or field_name in the URL. And if both field_group_name and field_name are not specified, will try to query default field_group data. |
| field_name | URI | (optional) Target field name to query. Available names are: monitor_name, type, interval, timeout, max_retries, dst_ip, src_ip, gateway, service, pool, request, response, flag, dst_port, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | monitor_name | string | |
| default | type | enum | Available values:
|
| default | interval | uint32 | |
| default | timeout | uint32 | |
| default | max_retries | uint32 | Sets the maximum number of consecutive health checks allowed to set the status of the SDNS service as up or down. |
| default | dst_ip | UnionField | Sets the destination IP address of the health check packet. |
| default | src_ip | UnionField | Sets the source IP address of the health check packet. |
| default | gateway | UnionField | Sets the IP address of the gateway from which the health check packet is transmitted. |
| default | request | string | Sets the HTTP method that the HTTP request uses to detect the health status of the SDNS service. |
| default | response | string | Sets the status code expected in the HTTP response returned by the SDNS service. |
| default | flag | enum | Sets the result of the health check when the HTTP response returned by the SDNS service contains the expected status code.Available values:
|
| default | dst_port | port | |
| monitor_apply_setting | service | asso | |
| monitor_apply_setting | pool | asso |
{
"HTTPMonitor": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"HTTPMonitor": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"HTTPMonitor": {
"instance_id":<instance_id>,
<field>:<value>,
}
}
{
"msg": <success-or-error-msg>
}