Get TopN Overview Data
get
/api/metric/TopNData
Gets the TopN overview data for the objects specified in the query parameters.
Request
Query Parameters
-
DeviceGroup(required): string
The device group to get TopN overview data for.Example:
//Root//Oracle Lab - test -
MetricGroupID(required): integer
The ID of the metric group to get TopN overview data for.Example:
0 -
MetricTypeID(required): integer
The ID of the metric type to get TopN overview data for.Example:
0 -
PageSize(required): integer
The number of records to include per page.Example:
10 -
StartTime(required): string
Start TimeExample:
now - 24h -
StopTime(required): string
Stop TimeExample:
now -
TimeRange(required): string
A shorthand string that encompasses StartTime and StopTime. Overwrites any value set for Start and StopTime.Example:
now-24h..now
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Successful operation
Nested Schema : SuccessfulGetOperation
Type:
Show Source
object-
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
Each element is a different data set described by the title.
-
total: integer
The total number of results regardless of pagingExample:
1
Nested Schema : data
Type:
arrayEach element is a different data set described by the title.
Show Source
Nested Schema : metricTopNDataRead
Type:
Show Source
object-
ShardID: integer
Shard IDExample:
2 -
StoreData: object
StoreData
-
Title: string
TitleExample:
Latency {{{ Average Value }}}
Nested Schema : StoreData
Type:
Show Source
object-
items: array
items
Each record is a row of TopN data.
Nested Schema : items
Type:
Show Source
object-
abbr: string
Metric unit abbreviationExample:
s -
device: string
Device nameExample:
router.example.com -
deviceZoneID: integer
Device zone ID.Example:
9 -
instance: string
Metric instance name.Example:
device -
measurement: string
InfluxDB measurement nameExample:
metrictype_Latency -
metrictype: string
Metric type nameExample:
Latency -
rank: integer
TopN rankExample:
1 -
reportValue: number
Value being scoredExample:
0.0019034508784004527 -
topnScope: integer
ID of the TopN scope type: Allowed Values: 0=Disabled, 1=Utilization, 2=Value, 3=BothExample:
3 -
unitDivision: integer
Unit division. Allowed Values: - 0 => None - 60 => Time - 1000 => SI (1000) - 1024 => Binary/IEC (1024)Example:
60 -
zone: string
Device zone name.Example:
Oracle Lab - test
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:
arrayThe list of errors reported. Validation errors will be keyed by record field.
Show Source
Nested Schema : items
Type:
object