Return Cache Metrics

get

/ccs/{cacheName}

Returns the server-side metrics for the specified cache.

Request

Path Parameters
cacheName
Type: string
Required: true
Name of cache

Response

Supported Media Types
  • application/json
200 Response
Successful response
Body
Root Schema : ServerCacheMetrics
Type: object
Title: ServerCacheMetrics

Examples

The following example shows how to retrieve metrics from an Oracle Application Cloud Service cache by submitting a GET request on the REST resource using Java code. For the full application, see Sample Application.

Response getMetricsResponse = target
        .path(CACHE_NAME)
        .request()
        .get();

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 200 OK 
Content-Type: application/json 
Date: Wed, 04 Jan 2017 16:48:51 GMT 
Content-Length: 21

Example of Response Body

The following shows an example of the response body in JSON format. The count field is the number of entities in the cache. The size field is the actual memory footprint size of the cache in bytes.

{"count":1,"size":72}