psm accs check-health

Use this command to view health monitoring data, including percent memory usage and absolute memory, for an Oracle Application Container Cloud Service application.

Note:

Health monitoring metrics are updated hourly. Metrics retrieved between hourly refreshes may not be quite current.

Syntax

psm accs check-health 
-n|--app-name name 
[-of|--output-format json|html|short]

Parameters

All parameters are required unless otherwise noted.

Parameter Description
-n, --app-name Name of the application.

-of|--output-format json|html|short

(Optional) Specifies the output format of the command’s response:

  • json—output is formatted as a JSON array.

  • html—output is formatted as HTML

  • short—output is formatted as a brief summary.

The default output format is the one you specified when using the psm setup command to configure the psm CLI.

Examples

$ psm accs check-health -n employees-app -of json
{
    "identity_domain":"ExampleDomain",
    "service_components":[
        {
            "component":"ENV-JAVA",
            "vms":[]
        },
        {
            "component":"METRIC",
            "summary":{
                "status":"UP",
                "status_time":"2017-03-23T20:53:50.854+00:00",
                "sub_status":"calculated"
            },
            "vms":[
                {
                    "health_data":[
                        {
                            "displayName":"Actual Memory Utilized",
                            "name":"memory",
                            "unit":"MB",
                            "value":"624.6"
                        },
                        {
                            "displayName":"Memory Utilization Percent",
                            "name":"memoryUsed",
                            "unit":"%",
                            "value":"58.17"
                        }
                    ],
                    "servers":[],
                    "summary":{
                        "status":"UP",
                        "status_time":"2017-03-23T20:53:35.035+00:00"
                    },
                    "vm":"web.1"
                }
            ]
        }
    ],
    "service_name":"employees-app",
    "summary":{
        "status":"UP",
        "status_time":"2017-03-23T20:53:50.853+00:00"
    }
}

More Information

Viewing Service Metrics for an Application in Using Oracle Application Container Cloud Service