Get Summary Performance Information
get
/api/metric/PerformanceData/readSummary
Gets summary, or legend, performance information. You can specify either of the following combinations:
- DeviceID and MetricID
/api/metric/PerformanceData/readSummary?DeviceID=123&MetricID=456&TimeRange=now-24h..now
- DeviceName, DeviceZoneName, MetricType, and InstanceName
/api/metric/PerformanceData/readSummary?DeviceName=router.example.com&DeviceZoneName=MyZoneName&MetricType=Latency&InstanceName=Device&TimeRange=now-24h..now
Request
Query Parameters
-
DeviceID:
The ID of the device to get performance information for (or multiple, comma-separated device IDs).Match All
-
string
Device ID (or multiple, comma-separated Device IDs)Example:
40
-
string
-
DeviceName:
The name of the device to get performance information for (or multiple, comma-separated device names).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
-
DeviceZoneName: string
The name of the device zone to get performance information for. Deprecated. Use serialized device name instead.
-
InstanceName: string
The name of the metric instance to get performance information for.
-
MetricID:
The ID of the metric to get performance information for (or multiple, comma-separated metric IDs).Match All
-
string
Metric ID (or multiple, comma-separated Metric IDs)Example:
154
-
string
-
MetricType: string
The name of the metric type to get performance information for.
-
StartTime:
The start time in epoch time seconds.Match All
-
integer
StartTime in epoch time secondsExample:
now
-
integer
- StopTime:
-
TimeRange:
A shorthand string that encompasses the start and end times in RFC3339 format or relative time literal format. Takes precedence over StartTime if both are passed in.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
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 performance data summary that matches the query parameters.
Nested Schema : data
Type:
array
The performance data summary that matches the query parameters.
Show Source
Nested Schema : metricPerformanceDataReadSummary
Type:
Show Source
object
-
Abbr: string
Unit abbreviationExample:
b
-
AverageAvailability: number
Average AvailabilityExample:
1
-
AverageUtilization: number
Average (mean) utilizationExample:
50
-
AverageValue: number
Average (mean) valueExample:
1000
-
Factor: integer
Factor to change units into rawExample:
8
-
InstanceName: string
Metric Instance NameExample:
Device
-
LastAvailability: number
Last AvailabilityExample:
1
-
LastUtilization: number
Last utilization reportedExample:
60
-
LastValue: number
Last value reportedExample:
1500
-
Maximum: integer
Metric Maximum (0 for no max)Example:
0
-
MaximumAvailability: number
Maximum AvailabilityExample:
1
-
MaximumUtilization: number
Maximum utilizationExample:
100
-
MaximumValue: number
Maximum valueExample:
5000
-
Measurement: string
InfluxDB measurement name (or multiple, comma-separated measurements).Example:
metrictype_Latency
-
MetricInstanceName: string
Metric Display (custom) Instance NameExample:
Device
-
MetricTypeName: string
Metric Type NameExample:
Latency
-
MinimumAvailability: number
Minimum AvailabilityExample:
1
-
MinimumUtilization: number
Minimum utilizationExample:
0
-
MinimumValue: number
Minimum valueExample:
0
-
PollTime: integer
Poll TimeExample:
300
-
SumValue: number
Sum of values over the time range. Not valid for all metrics.Example:
300000
-
Unit: string
Value unitExample:
bits
-
UnitDivision: integer
Unit division factorExample:
1024
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 Summary Performance Information requests.
You can submit requests using cURL, an API client, or your browser.
To use the DeviceID and MetricID parameters:
http://hostFQDN/api/metric/PerformanceData/readSummary?DeviceID=123&MetricID=456&TimeRange=now-24h..now
To use the DeviceName, DeviceZoneName, MetricType, and InstanceName parameters:
http://hostFQDN/api/metric/PerformanceData/readSummary?DeviceName=router.example.com&DeviceZoneName=MyZoneName&MetricType=Latency&InstanceName=Device&TimeRange=now-24h..now
If you specify a combination of name and ID parameters (for example, both DeviceName and DeviceID), the value in the ID is used.
Example of the Response Body
The following example shows the contents of the response body in JSON format:
{ "success": "true", "message": "Loaded 1 entries", "data": [ { "MetricInstanceName": "Device", "Maximum": "0", "InstanceName": "Device", "MetricTypeName": "Latency", "Measurement": "metrictype_Latency", "Unit": "bits", "Abbr": "b", "UnitDivision": "1024", "Factor": "8", "PollTime": "300", "AverageValue": "1000", "MinimumValue": "0", "MaximumValue": "5000", "SumValue": "300000", "LastValue": "1500", "AverageAvailability": "1", "MinimumAvailability": "1", "MaximumAvailability": "1", "LastAvailability": "1", "AverageUtilization": "50", "MinimumUtilization": "0", "MaximumUtilization": "100", "LastUtilization": "60" } ] }