Data Types
The following datatypes are used by the OpenTrafficShaper API.
Type: OTSJsonStats
See below example of the JSON format for this type.
Structure definition
- $tag is the tag given to the statistical item when specifying it as a parameter
- $identifier can be one of the following
- 'tx.cir', 'tx.limit', 'tx.rate', 'tx.pps', 'rx.cir', 'rx.limit', 'rx.pps', $counter
- $counter is a basic counter name
- $label is a text label for this entry, like "RX Limit"
- $timestamp is the timestamp of this $value
- $value holds the value of the data
It must be noted there may be multiple identifiers and multiple timestamp/value pairs.
Example
{ $tag: { $identifier: { label: $label, data: [ [$timestamp, $value], ... ] }, ... }, ... }