View the Events Triggered by an Auto Scaling Policy

get

/paas/api/v1.1/instancemgmt/{identityDomainId}/services/APAAS/instances/{appName}/autoscaling/activities

Returns the events evaluated and the automatic (auto) scaling activities performed on an Oracle Application Container Cloud Service application.

Request

Path Parameters
Header Parameters
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
The response body contains the events and activities triggered by the auto scaling policy.
Root Schema : activites-response
Type: object
The response body contains the events and activities triggered by the auto scaling policy.
Show Source
Nested Schema : items
Type: array
Groups the events triggered by one or more rules defined in the auto scaling policy.
Show Source
Nested Schema : event-details
Type: object
Show Source
Nested Schema : actions
Type: array
Groups the activity messages.
Show Source
Nested Schema : activity-messages
Type: object
Show Source
Back to Top

Examples

The following example shows how to view the activities triggered by the auto scaling policy rules for an Oracle Application Container Cloud Service application instance, by submitting a GET request on the REST resource using cURL.

Note:

  • The command in this example uses the URL structure https://rest_server_url/resource-path, where rest_server_url is the REST server to contact for your identity domain (or Cloud Account). See Send Requests.

  • In the resource path, the service type ../APAAS/.. is case-sensitive.

cURL Command

curl -i -X GET -u username:userPassword1! -H "X-ID-TENANT-NAME:ExampleIdentityDomain" https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/APAAS/instances/ExampleApp/autoscaling/activities

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 200 OK
Date: Thu, 21 Jul 2016 16:17:49 GMT
Content-Length: 954
Content-Type: application/json

Example of Response Body

The following is an example of the response returned in JSON format.

{
    "items":[
    {
        "event":"CPUUtilization <= 10 percent",
        "operation":"scaleIn",
        "receiveTime":"2016-07-21T13:40:00.000+0000",
        "status":"Scaling succeeded.",
        "actions":[
        {
            "message":"Evaluating event.",
            "time":"2016-07-21T13:58:22.522+0000"
        },
        {
            "message":"Scaling in progress.",
            "time":"2016-07-21T14:02:38.597+0000"
        },
        {
            "message":"Scaling succeeded.",
            "time":"2016-07-21T14:17:24.034+0000"
        },
        {
            "message":"Service is in cool down period.",
            "time":"2016-07-21T14:17:24.034+0000"
        },
        {
            "message":"Re-evaluating event.",
            "time":"2016-07-21T14:47:25.767+0000"
        },
        {
            "message":"No action needed. Scaling limit has reached.",
            "time":"2016-07-21T14:47:29.122+0000"
        }
        ]
    },
    {
        "event":"CPUUtilization <= 10 percent",
        "operation":"scaleIn",
        "receiveTime":"2016-07-21T13:40:00.000+0000",
        "status":"No action needed. Rule has changed.",
        "actions":[
        {
            "message":"Evaluating event.",
            "time":"2016-07-21T13:58:22.676+0000"
        },
        {
            "message":"No action needed. Rule has changed.",
            "time":"2016-07-21T14:47:29.136+0000"
        }
        ]
    }
    ]
}
Back to Top