Differences

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

Link to this comparison view

Both sides previous revision Previous revision
documentation:api-data-types [2014-01-15 12:35]
nkukard [Structure definition]
documentation:api-data-types [2014-01-15 13:30] (current)
nkukard
Line 8: Line 8:
  
 ==== 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 16: Line 17:
    
 It must be noted there may be multiple identifiers and multiple timestamp/​value pairs. It must be noted there may be multiple identifiers and multiple timestamp/​value pairs.
- 
-==== Example ==== 
-<​code>​ 
-{ 
-  $identifier:​ { 
-    label: $label, 
-    data: [ 
-      [$timestamp,​ $value], 
-      ... 
-    ] 
-  }, 
-  ... 
-} 
-</​code>​ 
- 
-===== Type: OTSStreamedJsonStats ===== 
- 
-See below example of the JSON format for this type. This type builds on the OTSJsonStats above by allowing tagging of stats to accomplish streaming of multiple items at unknown time intervals. 
- 
-==== Structure definition ==== 
- 
-All definitions hold true as with OTSJsonStats,​ with the addition of the following... 
- 
-  - $tag is the tag given to the statistical item reported during the subscription process 
-  
-It must be noted there may be multiple tags depending on what data is subscribed to. 
  
 ==== Example ==== ==== Example ====
Line 59: Line 34:
 } }
 </​code>​ </​code>​
-