System Health Check   /rest/apv/system/SystemHealthCheck

The System Health Check function can monitor the status of CPU, gateway, memory, process, SSL card and so on.

  • Relational-instance Queries:
  • GET
    /rest/apv/system/SystemHealthCheck/asso1
    Query the Virtual Condition info of the corresponding System Health Check.
    Normal response codes
    200(OK)
    Error response codes
    401(unauthorized), 403(access forbidden), 404(no such instance), 500(internal service error), 501(unimplemented)
    Request parameters
    Parameter Type Description
    instance_id URI ID of the instance
    Response format
    {
        "SystemHealthCheck": {
            "instance_id":<instance_id>,
            "asso1":[
               {
                <field1>:<value1>,
                <field2>:<value2>,
                ...
               }
            ]
        }
    }
                                
    Examples
  • POST
    /rest/apv/system/SystemHealthCheck/asso1
    Create a Virtual Condition for corresponding System Health Check
    Normal response codes
    200(successfully created)
    Error response codes
    401(unauthorized), 403(access forbidden), 500(internal service error), 501(unimplemented)
    Request format
            {
                <param1>:<value1>,
                <param2>:<value2>,
                ...
            }
                                        
    Request parameters
    Parameter Type Description
    name string
    id enum When being used by decision rules, the virtual condition can be referenced only by using the virtual condition ID.Available values:
    • VCONDITION_1 (VCONDITION_1)
    • VCONDITION_2 (VCONDITION_2)
    • VCONDITION_3 (VCONDITION_3)
    • VCONDITION_4 (VCONDITION_4)
    • VCONDITION_5 (VCONDITION_5)
    • VCONDITION_6 (VCONDITION_6)
    • VCONDITION_7 (VCONDITION_7)
    • VCONDITION_8 (VCONDITION_8)
    • VCONDITION_9 (VCONDITION_9)
    • VCONDITION_10 (VCONDITION_10)
    • VCONDITION_11 (VCONDITION_11)
    • VCONDITION_12 (VCONDITION_12)
    • VCONDITION_13 (VCONDITION_13)
    • VCONDITION_14 (VCONDITION_14)
    • VCONDITION_15 (VCONDITION_15)
    • VCONDITION_16 (VCONDITION_16)
    • VCONDITION_17 (VCONDITION_17)
    • VCONDITION_18 (VCONDITION_18)
    • VCONDITION_19 (VCONDITION_19)
    • VCONDITION_20 (VCONDITION_20)
    • VCONDITION_21 (VCONDITION_21)
    • VCONDITION_22 (VCONDITION_22)
    • VCONDITION_23 (VCONDITION_23)
    • VCONDITION_24 (VCONDITION_24)
    • VCONDITION_25 (VCONDITION_25)
    • VCONDITION_26 (VCONDITION_26)
    • VCONDITION_27 (VCONDITION_27)
    • VCONDITION_28 (VCONDITION_28)
    • VCONDITION_29 (VCONDITION_29)
    • VCONDITION_30 (VCONDITION_30)
    • VCONDITION_31 (VCONDITION_31)
    • VCONDITION_32 (VCONDITION_32)
    logic enum Specifies the relationship among member conditions in the virtual condition.Available values:
    • AND (AND) - When "AND" is specified, the result of the vcondition is "Up" only if the results of all the member conditions are "Up".
    • OR (OR) - When "OR" is specified, the result of the vcondition is "Up" if the result of any member condition is "Up".
    Response format
            {
                "HAVirtualCondition": {
                    "instance_id":<instance_id>,
                    <param1>:<value1>,
                    <param2>:<value2>,
                    ...
                }
            }
                                        
    Response parameters
    Same as request parameters.
    Examples
  • DELETE
    /rest/apv/system/SystemHealthCheck/asso1/<havirtualcondition_id>
    Delete a specific Virtual Condition of corresponding systemhealthcheck
    Normal response codes
    200(OK)
    Error response codes
    401(unauthorized), 403(access forbidden), 404(no such instance), 500(internal service error), 501(unimplemented)
    Response format
            {
                "msg": <success-or-error-msg>
            }
                                        
    Examples
  • GET
    /rest/apv/system/SystemHealthCheck/asso2
    Query the Health Check Condition info of the corresponding System Health Check.
    Normal response codes
    200(OK)
    Error response codes
    401(unauthorized), 403(access forbidden), 404(no such instance), 500(internal service error), 501(unimplemented)
    Request parameters
    Parameter Type Description
    instance_id URI ID of the instance
    Response format
    {
        "SystemHealthCheck": {
            "instance_id":<instance_id>,
            "asso2":[
               {
                <field1>:<value1>,
                <field2>:<value2>,
                ...
               }
            ]
        }
    }
                                
    Examples
  • POST
    /rest/apv/system/SystemHealthCheck/asso2
    Create a Gateway HC Condition for corresponding System Health Check
    Normal response codes
    200(successfully created)
    Error response codes
    401(unauthorized), 403(access forbidden), 500(internal service error), 501(unimplemented)
    Request format
            {
                <param1>:<value1>,
                <param2>:<value2>,
                ...
            }
                                        
    Request parameters
    Parameter Type Description
    ip ipaddr
    name enum When being used by decision rules, the gateway health check condition can be referenced only by using the its condition ID.Available values:
    • GATEWAY_1 (GATEWAY_1)
    • GATEWAY_2 (GATEWAY_2)
    • GATEWAY_3 (GATEWAY_3)
    • GATEWAY_4 (GATEWAY_4)
    • GATEWAY_5 (GATEWAY_5)
    • GATEWAY_6 (GATEWAY_6)
    • GATEWAY_7 (GATEWAY_7)
    • GATEWAY_8 (GATEWAY_8)
    • GATEWAY_9 (GATEWAY_9)
    • GATEWAY_10 (GATEWAY_10)
    • GATEWAY_11 (GATEWAY_11)
    • GATEWAY_12 (GATEWAY_12)
    • GATEWAY_13 (GATEWAY_13)
    • GATEWAY_14 (GATEWAY_14)
    • GATEWAY_15 (GATEWAY_15)
    • GATEWAY_16 (GATEWAY_16)
    • GATEWAY_17 (GATEWAY_17)
    • GATEWAY_18 (GATEWAY_18)
    • GATEWAY_19 (GATEWAY_19)
    • GATEWAY_20 (GATEWAY_20)
    • GATEWAY_21 (GATEWAY_21)
    • GATEWAY_22 (GATEWAY_22)
    • GATEWAY_23 (GATEWAY_23)
    • GATEWAY_24 (GATEWAY_24)
    • GATEWAY_25 (GATEWAY_25)
    • GATEWAY_26 (GATEWAY_26)
    • GATEWAY_27 (GATEWAY_27)
    • GATEWAY_28 (GATEWAY_28)
    • GATEWAY_29 (GATEWAY_29)
    • GATEWAY_30 (GATEWAY_30)
    • GATEWAY_31 (GATEWAY_31)
    • GATEWAY_32 (GATEWAY_32)
    interval int Specifies the interval at which the health check is performed.
    up_check_times uint32 Specifies the number of consecutive health check successes for determining that the health check result is "Up".
    down_check_times uint32 Specifies the number of consecutive health check failures for determining that the health check result is "Down".
    Response format
            {
                "GatewayCondition": {
                    "instance_id":<instance_id>,
                    <param1>:<value1>,
                    <param2>:<value2>,
                    ...
                }
            }
                                        
    Response parameters
    Same as request parameters.
    Examples
  • DELETE
    /rest/apv/system/SystemHealthCheck/asso2/<gatewaycondition_id>
    Delete a specific Gateway HC Condition of corresponding systemhealthcheck
    Normal response codes
    200(OK)
    Error response codes
    401(unauthorized), 403(access forbidden), 404(no such instance), 500(internal service error), 501(unimplemented)
    Response format
            {
                "msg": <success-or-error-msg>
            }
                                        
    Examples
  • POST
    /rest/apv/system/SystemHealthCheck/asso2
    Create a SSL Card HC Condition for corresponding System Health Check
    Normal response codes
    200(successfully created)
    Error response codes
    401(unauthorized), 403(access forbidden), 500(internal service error), 501(unimplemented)
    Request format
            {
                <param1>:<value1>,
                <param2>:<value2>,
                ...
            }
                                        
    Request parameters
    Parameter Type Description
    interval int Specifies the number of consecutive health check failures for determining that the health check result is "Down".
    up_check_times uint32 Specifies the number of consecutive health check successes for determining that the health check result is "Up".
    down_check_times uint32 Specifies the number of consecutive health check failures for determining that the health check result is "Down".
    Response format
            {
                "SSLCardCondition": {
                    "instance_id":<instance_id>,
                    <param1>:<value1>,
                    <param2>:<value2>,
                    ...
                }
            }
                                        
    Response parameters
    Same as request parameters.
    Examples
  • DELETE
    /rest/apv/system/SystemHealthCheck/asso2/<sslcardcondition_id>
    Delete a specific SSL Card HC Condition of corresponding systemhealthcheck
    Normal response codes
    200(OK)
    Error response codes
    401(unauthorized), 403(access forbidden), 404(no such instance), 500(internal service error), 501(unimplemented)
    Response format
            {
                "msg": <success-or-error-msg>
            }
                                        
    Examples
  • POST
    /rest/apv/system/SystemHealthCheck/asso2
    Create a CPU Temperature HC Condition for corresponding System Health Check
    Normal response codes
    200(successfully created)
    Error response codes
    401(unauthorized), 403(access forbidden), 500(internal service error), 501(unimplemented)
    Request format
            {
                <param1>:<value1>,
                <param2>:<value2>,
                ...
            }
                                        
    Request parameters
    Parameter Type Description
    temperature int Specifies the temperature threshold for CPU overheat.
    interval int Specifies the interval at which the health check is performed.
    up_check_times uint32 Specifies the number of consecutive health check successes for determining that the health check result is "Up".
    down_check_times uint32 Specifies the number of consecutive health check failures for determining that the health check result is "Down".
    Response format
            {
                "CPUTempratureCondition": {
                    "instance_id":<instance_id>,
                    <param1>:<value1>,
                    <param2>:<value2>,
                    ...
                }
            }
                                        
    Response parameters
    Same as request parameters.
    Examples
  • DELETE
    /rest/apv/system/SystemHealthCheck/asso2/<cputempraturecondition_id>
    Delete a specific CPU Temperature HC Condition of corresponding systemhealthcheck
    Normal response codes
    200(OK)
    Error response codes
    401(unauthorized), 403(access forbidden), 404(no such instance), 500(internal service error), 501(unimplemented)
    Response format
            {
                "msg": <success-or-error-msg>
            }
                                        
    Examples
  • POST
    /rest/apv/system/SystemHealthCheck/asso2
    Create a CPU Utilization HC Condition for corresponding System Health Check
    Normal response codes
    200(successfully created)
    Error response codes
    401(unauthorized), 403(access forbidden), 500(internal service error), 501(unimplemented)
    Request format
            {
                <param1>:<value1>,
                <param2>:<value2>,
                ...
            }
                                        
    Request parameters
    Parameter Type Description
    fatal_percent int Specifies the utilization threshold for the CPU overuse .
    interval int Specifies the interval at which the health check is performed.
    up_check_times uint32 Specifies the number of consecutive health check successes for determining that the health check result is "Up".
    down_check_times uint32 Specifies the number of consecutive health check failures for determining that the health check result is "Down".
    Response format
            {
                "CPUUtilCondition": {
                    "instance_id":<instance_id>,
                    <param1>:<value1>,
                    <param2>:<value2>,
                    ...
                }
            }
                                        
    Response parameters
    Same as request parameters.
    Examples
  • DELETE
    /rest/apv/system/SystemHealthCheck/asso2/<cpuutilcondition_id>
    Delete a specific CPU Utilization HC Condition of corresponding systemhealthcheck
    Normal response codes
    200(OK)
    Error response codes
    401(unauthorized), 403(access forbidden), 404(no such instance), 500(internal service error), 501(unimplemented)
    Response format
            {
                "msg": <success-or-error-msg>
            }
                                        
    Examples