View the Events Triggered by an Auto Scaling Policy
/paas/api/v1.1/instancemgmt/{identityDomainId}/services/JaaS/instances/{serviceId}/autoscaling/activities
Returns the events evaluated and the automatic (auto) scaling activities performed on an Oracle Java Cloud Service instance.
Request
-
identityDomainId: string
Identity domain ID for the Oracle Java Cloud Service account.
-
serviceId: string
Name of the Oracle Java Cloud Service instance.
-
Authorization: string
Base64 encoded user name and password separated by a colon or OAuth access token obtained from Oracle Identity Cloud Service. See Authenticate.
-
X-ID-TENANT-NAME: string
Identity domain ID for the Oracle Java Cloud Service account.
Response
- application/json
200 Response
See Status Codes for information about other possible HTTP status codes.
object
-
items(optional):
array items
Groups the events triggered by one or more rules defined in the auto scaling policy.
array
object
-
actions(optional):
array actions
Groups the activity messages.
-
event(optional):
string
The event triggered by a rule. For example:
CPUUtilization <= 10 percent< code>=>
-
operation(optional):
string
Name of the operation performed, either
scaleIn
orscaleOut
. -
receiveTime(optional):
string
Date and time the event was received.
-
status(optional):
string
Status of the event. For example:
Scaling succeeded
object
-
message(optional):
string
Activity message.
-
time(optional):
string
Date and time of the activity.
Examples
The following example shows how to view the activities triggered by the auto scaling policy rules for an Oracle Java Cloud Service 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
, whererest_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
../JaaS/..
is case-sensitive.
cURL Command
curl -i -X GET -u username:password -H "X-ID-TENANT-NAME:ExampleIdentityDomain" https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/JaaS/instances/ExampleInstance/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"
}
]
}
]
}