The group health check is used to determine the health status of every real service in the associated group.
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | hc_name | string | |
| default | type | enum | Available values:
|
| default | interval | int | Sets the minimum interval between two health checks. |
| default | timeout | int | Sets the maximum time interval between health check request and health check response. |
| 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 | reset_handshake | boolean | |
| http_options | http_method | enum | Available values:
|
| http_options | url | url | Sets the URL address of the health check request. Its value must start with "/". |
| http_options | expected_codes | string | Sets the HTTP status code list. The list can include one or more HTTP status codes. Multiple HTTP status codes must be separated by comma or "-". |
| healthcheck_asso_group | group | asso |
{
"GroupHealthCheck": {
"meta": {
"abstract": false,
"verbose_name": SLB Group 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 | |
| type | enum | Available values:
|
| interval | int | Sets the minimum interval between two health checks. |
| timeout | int | Sets the maximum time interval between health check request and health check response. |
| 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. |
| reset_handshake | boolean | |
| http_method | enum | Available values:
|
| url | url | Sets the URL address of the health check request. Its value must start with "/". |
| expected_codes | string | Sets the HTTP status code list. The list can include one or more HTTP status codes. Multiple HTTP status codes must be separated by comma or "-". |
{
"GroupHealthCheck": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"GroupHealthCheck": [
{
"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, http_options, healthcheck_asso_group, 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, type, interval, timeout, hc_up, hc_down, reset_handshake, http_method, url, expected_codes, group, 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 | type | enum | Available values:
|
| default | interval | int | Sets the minimum interval between two health checks. |
| default | timeout | int | Sets the maximum time interval between health check request and health check response. |
| 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 | reset_handshake | boolean | |
| http_options | http_method | enum | Available values:
|
| http_options | url | url | Sets the URL address of the health check request. Its value must start with "/". |
| http_options | expected_codes | string | Sets the HTTP status code list. The list can include one or more HTTP status codes. Multiple HTTP status codes must be separated by comma or "-". |
| healthcheck_asso_group | group | asso |
{
"GroupHealthCheck": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"GroupHealthCheck": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"GroupHealthCheck": {
"instance_id":<instance_id>,
<field>:<value>,
}
}
{
"msg": <success-or-error-msg>
}