Get latest values for the metrics in the group

get

http://EM_HOST:EM_CONSOLE_HTTPS_PORT/em/api/targets/{targetId}/metricGroups/{metricGroupName}/latestData

Get the latest collected values from EM repository for the metrics in the target's metric group. For a metric group having no keys, a single row of data could be returned. For a metric group having keys, multiple rows of data could be returned.

Request

Path Parameters
Query Parameters
  • Optional parameter. When the metric has associated keys, query parameter having name of the form key_<name> can be used to filter for specific keys
    Example:
    key_mountPoint=/scratch&key_mountPoint=/
  • Minimum Value: 1
    Maximum Value: 500
    Limits the number of items returned in current call. Use the self/previous/next links from the response to fetch additional items.
    Default Value: 50
  • Maximum Length: 64
    Optional parameter, name of the metric.
    Example:
    size
  • Identifies the set of items to be fetched; "href" element from "links" list of the response provides encoded value for this parameter. "href" element value should be used "as is" for fetching respective set of items.
    Example:
    MQ%3D%3D
  • Maximum Length: 256
    Sort the results by one or more key columns. Column order should be specified as <key_column>:<sortDirection>. 'key_column' should be a valid key column for the metric in the query. 'sortDirection' can be 'ASC' (i.e., ascending order) or 'DESC' (i.e., descending order), and it defaults to 'ASC' if not specified. To sort over multiple columns, provide order for multiple columns separated by comma (i.e., ',').
    Example:
    mountPoint:DESC

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

OK
Body ()
Root Schema : MetricGroupLatestData
Type: object
Latest collected data for the metrics in the target's metric group.
Show Source
Nested Schema : items
Type: array
Provides rows of metric data corresponding to latest upload for the metric group. For a metric group having no keys, single row of data could be returned. For a metric group having key(s), multiple rows of data could be returned. Rows are identified by key values. When no data exists, it would be empty.
Show Source
  • MetricRowData
    Additional Properties Allowed: additionalProperties
    Represents one row of metric data corresponding to the metric group. Row is a comma separated name/value pairs, where name identifies metric or key, and value is numeric or string type.
Example:
[
    {
        "mountPoint":"/",
        "available":29004.7,
        "fileSystem":"/dev/vda1",
        "pctAvailable":60.82,
        "size":50267.62
    },
    {
        "mountPoint":"/scratch",
        "available":65508.38,
        "fileSystem":"/dev/vdb",
        "pctAvailable":28.55,
        "size":241776.06
    }
]
Nested Schema : MetricRowData
Type: object
Additional Properties Allowed
Show Source
Represents one row of metric data corresponding to the metric group. Row is a comma separated name/value pairs, where name identifies metric or key, and value is numeric or string type.
Example:
{
    "mountPoint":"/",
    "available":29004.7,
    "fileSystem":"/dev/vda1",
    "pctAvailable":60.82,
    "size":50267.62
}
Examples

400 Response

Bad Request. The payload is null or missing some parameters
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

401 Response

Unauthorized. The user does not have permissions to perform the requested operation
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

404 Response

Not Found. The requested REST API URL is not found.
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

500 Response

Internal Server Error. Exception in execution of REST API.
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

503 Response

Service Unavailable. The server is unable to process the request.
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source
Back to Top