Retrieve MTS API
API for for retrieving metric timeseries (MTS) for a given time window
Retrieves MTS for a specified time window
Retrieves datapoints from the MTS specified by text search or a time window or both. The request uses the following query parameters:
query
: A query that searches metrics, dimensions, custom properties, and tags. The query language lets you use wildcards for names and values.startMS
: The starting point of a time window for the datapoints in the MTS.endMS
: The end point of a time window for the datapoints in the MTS.
Another query parameter,resolution
, specifies the resolution that the API should use when returning datapoints. Because SignalFx stores MTS for a specified length of time according to resolution, it can return datapoints at a resolution of 1 second, 1 minute, 5 minutes, and 1 hour, regardless of the incoming data resolution.
query Parameters
query | string Search criteria that specifies the MTS that you want the API to return. You can search for the following:
|
startMs | integer <int64> Example: startMs=1557264630000 Starting time of the time window within which the API should search for matching MTS. Specify the value in Unix time. |
endMS | integer <int64> Example: endMS=1557271830000 End point of the time window within which the API should search for matching MTS. Specify the value in Unix time. |
resolution | integer <int32> Resolution that the API should use for datapoints it returns. |
header Parameters
X-SF-Token required | string Authentication token. |
Responses
Content-Type | string Format of the response payload |
Response Schema: application/json
object The datapoints for the MTS that match the search criteria and have timestamps within the specified time window. The number of datapoints is controlled by the resolution you request. | |
errors | Array of strings Errors associated with the request |
Response samples
- 200
{- "data": {
- "property1": {
- "property1": [
- 0
], - "property2": [
- 0
]
}, - "property2": {
- "property1": [
- 0
], - "property2": [
- 0
]
}
}, - "errors": [
- "string"
]
}
© Copyright 2020 Splunk, Inc.
Third-party license information