Get the Number of Asynchronous Invocations
get
/console/admin/api/v2/dashboard/statistics/proxyAsyncInvocation
This endpoint is used to get the number of asynchronous invocations on the specified proxy if you specify nodeID, or on all proxies if not specified.
Request
Supported Media Types
- application/json
Query Parameters
-
endTime: string
The end time of a time range in the format 'yyyyMMddhhmmss'
-
nodeID: string
Node ID of a specific proxy
-
startTime: string
The start time of a time range in the format 'yyyyMMddhhmmss'
Response
Supported Media Types
- application/json
200 Response
Response with a series of asynchronous invocations by restriction
400 Response
Invalid arguments
Default Response
Unexpected error
Examples
This endpoint is used to get the number of asynchronous invocations on the specified proxy if you specify nodeID
, or on all proxies if not specified. The result is a JSON file including the total number of asynchronous invocations for the specified scope in the specified time range.
The following example shows how to generate the asynchronous invocation metrics by submitting a GET request on the REST resource using cURL.
curl -X GET -u username:password -k "http://<rest_server_url>:port/console/admin/api/v2/dashboard/statistics/proxyAsyncInvocation?nodeID=<nodeID>&startTime=<yyyymmddhhmmss>&endTime=<yyyymmddhhmmss>"
For example,
curl -X GET -u myname@oracle.com:mypswd -k "http://server.oracle.com:10000/console/admin/api/v2/dashboard/proxyAsyncInvocation?nodeID=restproxy1&startTime=20210224030000&endTime=20210224050000"
Example of the Response Body
The following example shows the contents of the response body in JSON format:
{ "data": [ { "nodeID": "restproxy1", "startTime": "Sun, 24 Feb 2021 03:00:00 GMT", "endTime": "Sun, 24 Feb 2021 05:00:00 GMT", "asyncInvocation": 1 } ] } }