Get Performance Data Details for a Grid Display
get
/api/metric/PerformanceData/readDetails
Gets performance data details for a grid display. You can specify any of the following combinations:
- DeviceID and MetricID
/api/metric/PerformanceData/readDetails?DeviceID=123&MetricID=456&TimeRange=now-24h..now
- DeviceName, DeviceZoneName, MetricType, and Instance
/api/metric/PerformanceData/readDetails?DeviceName=router.example.com&DeviceZoneName=MyZoneName&MetricType=Latency&InstanceName=Device&TimeRange=now-24h..now
- Serialized DeviceName, MetricType, and Instance
/api/metric/PerformanceData/readDetails?DeviceName=router.example.com;z1&MetricType=Latency&InstanceName=Device&TimeRange=now-24h..now
Request
Query Parameters
-
Delimiter: string
The single character used to separate names in string values of the DeviceName, Instance, MetricType, and DeviceZoneName parameters.
-
DeviceID:
Match All
-
string
Device ID (or multiple, comma-separated Device IDs)Example:
40
-
string
-
DeviceName:
Match All
-
string
The serialized device name (or multiple, comma-separated serialized device names). The device name may be serialized (include the zone id) or just the name if the zone is included separately.Example:
router.example.com OR router.example.com;z1
-
string
-
DeviceZoneID: integer
The ID of the device zone to get performance data for. Deprecated. Use serialized device name instead.Example:
1
-
DeviceZoneName: string
The name of the device zone to get performance data for. Deprecated. Use serialized device name instead.Example:
Default First Zone
-
Instance:
Match All
-
string
Metric Instance Name (or multiple, comma-separated Metric Instance Names)Example:
Device
-
string
-
MetricID:
Match All
-
string
Metric ID (or multiple, comma-separated Metric IDs)Example:
154
-
string
-
MetricType:
Match All
-
string
Metric Type Name (or multiple, comma-separated Metric Type Names)Example:
Latency
-
string
-
ShowMetricGroup:
Match All
-
boolean
Show all Metrics in Metric Type Group based on single MetricIDExample:
1
-
boolean
-
TimeRange:
Match All
-
string
Shorthand string that encompasses the start and end times in RFC3339 format or relative time literal format. It will take precedence over StartTime if both are passed in.Example:
now-24h..now
-
string
-
limit: integer(int32)
The number of records to limit results by. If you do not also set the start parameter, records start at 0.Example:
100
-
start: integer(int32)
The page of results to start from. This parameter is ignored if you do not also set the limit parameter.Default Value:
0
Example:1
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Successful operation
Root Schema : schema
Match All
Show Source
-
object
SuccessfulGetOperation
The response body for a successful get operation.
-
object
type
Nested Schema : SuccessfulGetOperation
Type:
object
The response body for a successful get operation.
Show Source
-
message: string
The response message.Example:
Loaded 1 entries
-
success: boolean
Whether the operation was a success (true) or a failure (false).Example:
true
Nested Schema : type
Type:
Show Source
object
-
data: array
data
The data contents are dynamic based on the data to be gathered. It will always contain Time and EpochTime. Every other column will depend on the data. The values are the string "Value_" concatenated with the metric ID.
-
metaData: array
metaData
A description of the data.
-
total: integer
The total number of results regardless of paging.Example:
1
Nested Schema : data
Type:
array
The data contents are dynamic based on the data to be gathered. It will always contain Time and EpochTime. Every other column will depend on the data. The values are the string "Value_" concatenated with the metric ID.
Show Source
Nested Schema : metricPerformanceDataReadDetails
Type:
Show Source
object
-
EpochTime: integer
Epoch TimeExample:
1696324800000
-
Time: string
Date and time formatted for human readabilityExample:
2023-10-03 04:20:00
-
Value_157: integer
Value of the metric type. Here 157 is metric type IDExample:
0.000508975982666016
-
Value_158: integer
Value of the metric type. Here 158 is metric type IDExample:
0
-
Value_159: integer
Value of the metric type. Here 159 is metric type IDExample:
0.000560310151841905
Nested Schema : items
Type:
Show Source
object
-
columns: array
columns
A description of the columns the data should be displayed in.
-
fields: array
fields
The data index to link data to the columns.
-
GraphTitle: string
The title for the display.
-
root: string
The name of the root data element.
Nested Schema : columns
Type:
array
A description of the columns the data should be displayed in.
Show Source
Nested Schema : items
Type:
Show Source
object
-
dataIndex: string
The data index containing the data for this column.
-
flex: integer
The flex value if the column should use a dynamic width. If more than 1 column has a flex value, higher values indicates the column will get more space based on the flex ratios.
-
minWidth: integer
The minimum width for the column in pixels.
-
test: string
The title for the column.
-
width: integer
The column width in pixels.
Default Response
Failed operation
Root Schema : schema
Type:
Show Source
object
-
errors: array
errors
The list of errors reported. Validation errors will be keyed by record field.
-
message: string
The response message.Example:
Exception thrown
-
success: boolean
Whether the operation was a success (true) or a failure (false).Example:
false
Nested Schema : errors
Type:
array
The list of errors reported. Validation errors will be keyed by record field.
Show Source
-
Array of:
object items
An error.
Nested Schema : items
Type:
object
An error.
Examples
The following examples show how to use query parameters in Get Performance Data Details for a Grid Display requests using different combinations of parameters to specify the device and metric.
You can submit requests using cURL, an API client, or your browser.
To use DeviceID for the device and MetricID for the metric:
http://hostFQDN/api/metric/PerformanceData/readDetails?DeviceID=123&MetricID=456&TimeRange=now-24h..now
To use DeviceName, DeviceZoneName, and InstanceName for the device and MetricType for the metric:
http://hostFQDN/api/metric/PerformanceData/readDetails?DeviceName=router.example.com&DeviceZoneName=MyZoneName&MetricType=Latency&InstanceName=Device&TimeRange=now-24h..now
To use a serialized DeviceName for the device:
http://hostFQDN/api/metric/PerformanceData/readDetails?DeviceName=router.example.com;z1&MetricType=Latency&InstanceName=Device&TimeRange=now-24h..now
Example of the Response Body
The following example shows the contents of the response body in JSON format:
{ "success": "true", "message": "Loaded 1 entries", "total": "1", "data": [ { "Time": "2023-10-03 04:20:00", "EpochTime": 1696324800000, "Value_157": 0.000508975982666016, "Value_158": 0, "Value_159": 0.000560310151841905 } ], "metaData": [ { "GraphTitle": "string", "root": "string", "columns": [ { "dataIndex": "string", "minWidth": 0, "test": "string", "width": 0, "flex": 0 } ], "fields": [ "string" ] } ] }