| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | hc_name | string | |
| default | real_service | asso | |
| default | type | enum | Available values:
|
| default | hc_up | uint8 | Sets the number of consecutive health check successes for setting the status of the real service as Up. |
| default | hc_down | uint8 | Sets the number of consecutive health check failures for setting the status of the real service as Down. |
| default | ip | ipaddr | Sets the destination IP of the health check. |
| default | port | port | Sets the destination port of the health check. |
| status | update_time | string | |
| status | health | boolean | |
| status | latest_health_status | boolean | |
| status | latest_health_status_cause | string | |
| status | latest_up | string | |
| status | latest_down | string | |
| statistics | times_server_up | StorableField | |
| statistics | times_server_down | StorableField | |
| statistics | connections_attempted | StorableField | |
| statistics | connections_succeeded | StorableField | |
| statistics | connections_failed_not_time_out | StorableField | |
| statistics | connections_failed_time_out | StorableField |
{
"RTSPTCPHealthCheck": {
"meta": {
"abstract": false,
"verbose_name": RTSP over TCP Health Check,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| hc_name | string | ||||||||||
| real_service | asso | ||||||||||
| hc_up | uint8 | Sets the number of consecutive health check successes for setting the status of the real service as Up. | |||||||||
| hc_down | uint8 | Sets the number of consecutive health check failures for setting the status of the real service as Down. | |||||||||
| ip | ipaddr (Nested Field. It should be a dict.)
|
Sets the destination IP of the health check. | |||||||||
| port | port | Sets the destination port of the health check. |
{
"RTSPTCPHealthCheck": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"RTSPTCPHealthCheck": [
{
"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, status, statistics, 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: hc_name, real_service, type, hc_up, hc_down, ip, port, update_time, health, latest_health_status, latest_health_status_cause, latest_up, latest_down, times_server_up, times_server_down, connections_attempted, connections_succeeded, connections_failed_not_time_out, connections_failed_time_out, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | hc_name | string | |
| default | real_service | asso | |
| default | type | enum | Available values:
|
| default | hc_up | uint8 | Sets the number of consecutive health check successes for setting the status of the real service as Up. |
| default | hc_down | uint8 | Sets the number of consecutive health check failures for setting the status of the real service as Down. |
| default | ip | ipaddr | Sets the destination IP of the health check. |
| default | port | port | Sets the destination port of the health check. |
| status | update_time | string | |
| status | health | boolean | |
| status | latest_health_status | boolean | |
| status | latest_health_status_cause | string | |
| status | latest_up | string | |
| status | latest_down | string | |
| statistics | times_server_up | StorableField | |
| statistics | times_server_down | StorableField | |
| statistics | connections_attempted | StorableField | |
| statistics | connections_succeeded | StorableField | |
| statistics | connections_failed_not_time_out | StorableField | |
| statistics | connections_failed_time_out | StorableField |
{
"RTSPTCPHealthCheck": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"RTSPTCPHealthCheck": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"RTSPTCPHealthCheck": {
"instance_id":<instance_id>,
<field>:<value>,
}
}
{
"msg": <success-or-error-msg>
}
{
<field_name>:<value>
}
When field name is not specified in URL:
Notice: The fields not provided are left untouched.
{
<field_name1>:<value1>,
<field_name2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
| field_name | URI | (optional) Target field name to update. Available field names are: hc_up, hc_down, |
| Field Name | Type | Description |
|---|---|---|
| hc_up | uint8 | Sets the number of consecutive health check successes for setting the status of the real service as Up. |
| hc_down | uint8 | Sets the number of consecutive health check failures for setting the status of the real service as Down. |
All configuration fields and their values are replied:
{
"RTSPTCPHealthCheck": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
<field_group1>: {
<field3>:<value3>,
<field4>:<value4>,
...
},
<field_group2>: {
<field5>:<value5>,
<field6>:<value6>,
...
},
...
}
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"RTSPTCPHealthCheck": {
"instance_id":<instance_id>,
"real_service":<value>
}
}