Get data points for numeric metric(s) over time
get
http://EM_HOST:EM_CONSOLE_HTTPS_PORT/em/api/metricTimeSeries
Gets the data points for a numeric metric over specified time span. Provides single time series for a metric that does not have keys. Provides multiple time series for a metric having keys. If time span is part of raw metric data retention period (which defaults to last week), returned time series have raw data points. If time span does not fall into raw metric data retention period, but is part of hourly rollup metric data retention time period (which defaults to one month), returned time series have hourly average data points. If time span does not fall into hourly rollup metric data retention time period, returned time series have daily average data points.
For each time series, relevant current threshold settings information is also included, if the optional query parameter include=currentThresholdSettings is passed in
Request
Query Parameters
-
include: string[]
Maximum Length:
32Optional parameter. If include=currentThresholdSettings query parameter is specified, response will include current threshold settings information.-
Allowed Values:
[ "currentThresholdSettings" ]
Example:currentThresholdSettings -
-
key_<name>: string
Optional parameter. When the metric has associated keys, query parameter having name of the form key_<name> can be used to filter for specific keysExample:
key_mountPoint=/scratch&key_mountPoint=/ -
limit: integer(int32)
Minimum Value:
1Maximum Value:10Maximum number of time series returned in one response. Allowed values are 1 through 10, and the default is 10. Values above 10 are rejected with HTTP 400 and the LimitExceeded error code. This limit applies to time series, not the number of data points within each series. Additional time series are available through the pagination links in the response.Default Value:10 -
metricGroupName(required): string
Maximum Length:
64Metric group nameExample:Filesystems -
metricName(required): string
Maximum Length:
64Metric nameExample:size -
page: string
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 -
sort: string
Maximum Length:
256Orders the time series in the returned list by the values of one or more valid key columns that identify each series. Specify each sort expression as key_column or key_column:direction, where direction must be ASC or DESC and must follow a colon (:), as in mountPoint:DESC. If direction is omitted, it defaults to ASC. Separate multiple expressions with commas (,). No other separator characters are allowed.Example:mountPoint:DESC -
targetId: string
Maximum Length:
32Target ID (.i.e, Target GUID). Target scope must be specified via either targetName/targetTypeName query parameters or targetId query parameter.Example:CF99A10F233254B78ED96ED1B5C15140 -
targetName: string
Maximum Length:
256Target Name. Target scope must be specified via either targetName/targetTypeName query parameters or targetId query parameter.Example:myhost.mydomain.com -
targetTypeName: string
Maximum Length:
64Target Type. Target scope must be specified via either targetName/targetTypeName query parameters or targetId query parameter.Example:host -
timeCollectedGreaterThanOrEqualTo(required): string(date-time)
Lower bound for the collected time of data points to be returned in time series in UTC, having yyyy-MM-dd'T'HH:mm:ss.SSS'Z' format.Example:
2021-07-18T18:00:00.000Z -
timeCollectedLessThan(required): string(date-time)
Upper bound for the collected time of data points to be returned in time series in UTC, having yyyy-MM-dd'T'HH:mm:ss.SSS'Z' format.Example:
2021-07-23T23:00:00.000Z
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
OK
Root Schema : MetricTimeSeriesCollection
Type:
objectList of metric time series objects. Empty when no data exists.
Show Source
-
count(required): integer
Number of time series present in returned items listExample:
1 -
items(required): array
items
Provides collection of time series corresponding to the specified metric. If the metric has identifying key(s), result can have multiple time series. When no data exists for the specified time span, it would be empty.
-
links(required): object
links
Navigations links. Use previous and next links for paginating, when more data exists.
Nested Schema : items
Type:
arrayProvides collection of time series corresponding to the specified metric. If the metric has identifying key(s), result can have multiple time series. When no data exists for the specified time span, it would be empty.
Show Source
-
Array of:
object MetricTimeSeries
Metric time series data from EM repository.
Nested Schema : links
Type:
objectNavigations links. Use previous and next links for paginating, when more data exists.
Show Source
Example:
{
"self":{
"href":"/em/api/metricTimeSeries?metricGroup=Filesystems&targetName=myhost.mydomain.com&metric=size&targetType=host&timeCollectedGreaterThanOrEqualTo=2021-08-25T09:00:00.000Z&timeCollectedLessThan=2021-08-25T23:00:00.000Z&page=MQ%3D%3D"
},
"next":{
"href":"/em/api/metricTimeSeries?metricGroup=Filesystems&targetName=myhost.mydomain.com&metric=size&targetType=host&timeCollectedGreaterThanOrEqualTo=2021-08-25T09:00:00.000Z&timeCollectedLessThan=2021-08-25T23:00:00.000Z&page=Mg%3D%3D"
},
"previous":{
"href":"/em/api/metricTimeSeries?metricGroup=Filesystems&targetName=myhost.mydomain.com&metric=size&targetType=host&timeCollectedGreaterThanOrEqualTo=2021-08-25T09:00:00.000Z&timeCollectedLessThan=2021-08-25T23:00:00.000Z&page=MA%3D%3D"
}
}Nested Schema : MetricTimeSeries
Type:
objectMetric time series data from EM repository.
Show Source
-
currentThresholdSettings: object
currentThresholdSettings
Optional parameter. If include=currentThresholdSettings query parameter is specified, response will include current threshold settings information.
-
datapoints(required): array
datapoints
The list of data points in the time series. Each data point is a list of timeCollected/value attributes.
-
displayName(required): string
Display name for the time seriesExample:
Filesystem Size (MB): / -
keyValues: array
keyValues
List of key values for the time series
-
metricDisplayName(required): string
Metric Display NameExample:
Size -
metricGroupDisplayName(required): string
Metric Group Display NameExample:
File Systems -
metricGroupName(required): string
Maximum Length:
64Metric Group NameExample:Filesystems -
metricName(required): string
Maximum Length:
64Metric NameExample:size -
targetId: string
Maximum Length:
32Target IDExample:CF99A10F233254B78ED96ED1B5C15140 -
targetName(required): string
Maximum Length:
256Target NameExample:myhost.mydomain.com -
targetTypeDisplayName(required): string
Target Type Display NameExample:
Host -
targetTypeName(required): string
Maximum Length:
64Target Type NameExample:host
Nested Schema : currentThresholdSettings
Type:
objectOptional parameter. If include=currentThresholdSettings query parameter is specified, response will include current threshold settings information.
Show Source
-
Array of:
object NumericThresholdSettings
Threshold settings for a numeric metric.
Example:
{
"warningThreshold":"80",
"criticalThreshold":"90",
"operator":">",
"numOfOccurrences":2
}Nested Schema : datapoints
Type:
arrayThe list of data points in the time series. Each data point is a list of timeCollected/value attributes.
Show Source
Nested Schema : keyValues
Type:
arrayList of key values for the time series
Show Source
-
Array of:
object MetricKeyValue
Metric key value
Example:
[
{
"name":"mountPoint",
"displayName":"Mount Point",
"value":"/"
}
]Nested Schema : NumericThresholdSettings
Type:
objectThreshold settings for a numeric metric.
Show Source
-
criticalThreshold(required): string
Provides value of critical threshold setting. Defaults to UNDEFINED, if it is not defined.Example:
90 -
occurrenceCount: integer
Consecutive number of times the metric value has to cross the threshold for the event to be triggered.Example:
2 -
operator(required): string
Provides value of condition operator. Operator to be used for evaluating the condition. Defaults to UNDEFINED, if it is not defined.Example:
> -
warningThreshold(required): string
Provides value of warning threshold setting. Defaults to UNDEFINED, if it is not defined.Example:
80
Nested Schema : items
Type:
Show Source
array-
Array of:
object items
List of timeCollected and value attributes. timeCollected is in UTC, and it has yyyy-MM-dd'T'HH:mm:ss.SSS'Z' format.
Nested Schema : items
Type:
objectList of timeCollected and value attributes. timeCollected is in UTC, and it has yyyy-MM-dd'T'HH:mm:ss.SSS'Z' format.
Example:
[
[
"2021-08-25T09:35:55.000Z",
241776.06
],
[
"2021-08-25T15:35:55.000Z",
241776.06
],
[
"2021-08-25T21:35:55.000Z",
241776.06
]
]Nested Schema : MetricKeyValue
Type:
objectMetric key value
Show Source
-
displayName(required): string
Key display nameExample:
Mount Point -
name(required): string
Maximum Length:
64Key nameExample:mountPoint -
value(required): string
Key valueExample:
/
Nested Schema : Link
Type:
objectA link referencing to another api
Show Source
-
href: string
the reference
Examples
400 Response
Bad Request
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error
Show Source
-
code: string
The status code of the errorExample:
IllegalArgument -
message: string
A descriptive error messageExample:
The argument given is not supported
401 Response
Unauthorized
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error
Show Source
-
code: string
The status code of the errorExample:
IllegalArgument -
message: string
A descriptive error messageExample:
The argument given is not supported
500 Response
Internal Server Error
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error
Show Source
-
code: string
The status code of the errorExample:
IllegalArgument -
message: string
A descriptive error messageExample:
The argument given is not supported
503 Response
Service Unavailable
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error
Show Source
-
code: string
The status code of the errorExample:
IllegalArgument -
message: string
A descriptive error messageExample:
The argument given is not supported