SDNS Monitor can be used to perform health check on or collect data from the SDNS service. To use SDNS monitor, you need to first create the health check or data collection templates and then apply them to the SDNS services or service pools.
| 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. |
| monitor_apply_setting | service | asso | |
| monitor_apply_setting | pool | asso |
{
"MonitorTemplate": {
"meta": {
"abstract": true,
"verbose_name": SDNS Monitor Template,
},
"subclasses": [
{
"class_name": class_name1,
"verbose_name": verbose_name1
},
...
],
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
"MonitorTemplate": [
{
"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, 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. |
| monitor_apply_setting | service | asso | |
| monitor_apply_setting | pool | asso |
{
"MonitorTemplate": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"MonitorTemplate": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"MonitorTemplate": {
"instance_id":<instance_id>,
<field>:<value>,
}
}