Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
documentation:api-data-types [2014-01-15 12:30] – created nkukarddocumentation:api-data-types [2014-01-15 13:30] (current) nkukard
Line 5: Line 5:
 ===== Type: OTSJsonStats ===== ===== Type: OTSJsonStats =====
  
-See below example of the json format for this type.+See below example of the JSON format for this type.
  
 ==== Structure definition ==== ==== Structure definition ====
 +  - $tag is the tag given to the statistical item when specifying it as a parameter
   - $identifier can be one of the following   - $identifier can be one of the following
     - 'tx.cir', 'tx.limit', 'tx.rate', 'tx.pps', 'rx.cir', 'rx.limit', 'rx.pps', $counter     - 'tx.cir', 'tx.limit', 'tx.rate', 'tx.pps', 'rx.cir', 'rx.limit', 'rx.pps', $counter
Line 20: Line 21:
 <code> <code>
 { {
-  $identifier: { +  $tag: { 
-    label: $label, +    $identifier:
-    data: [ +      label: $label, 
-      [$timestamp, $value], +      data: [ 
-      ... +        [$timestamp, $value], 
-    +        ... 
-  }, +      
-  ...+    }, 
 +    ... 
 +   }, 
 +   ...
 } }
 </code> </code>
-