anchor.diff: -= Byteport API v1.2
  -Byteport API documentation.
  += Byteport API v1.3
   v1.2, 2016-02-15
   :library: Asciidoctor
   :idprefix:
  -:numbered:
  +//:numbered:
   :imagesdir: images
   :toc: manual
   :toc-title: pass:[<h2>Table of Contents</h2>]
  
positive.code:     registered_devices: [ ],
      unregistered_devices: [
          [
              "spaceland",
              "antnas-gw-0",
              "2016-02-22T12:55:33.165"
          ]
      ]
  }
  
negative.code: 
  |===
  
  === Get time series data statistics
  Use this service to get statistics and calculated metrics for your time series data.
  
  The elements in the list called *daily_activity* are *day*, *values stored* and
  *values in percent of most active day*.
  
  The calendar structured is only returned if parameter *build_calendar* is set to True.
  The calendar structure is made for visualizing a classic calendar, week by week.
  It is returned as an hierarchical structured into year -> month -> week -> Day.
  All weeks have 7 elements, but since the start and end of the first and last week may
  lie in the previous or next month, those days are represented with *null* elements as
  seen in the example output, ie. 2015-12-01 is a Tuesday, hence it place in that particular
  week is the second element and the element with index 0 (Monday) before is simply null.
  
  The data returned in the calendar structure is the same as the elements of the
  list called *daily_activity*.
  
  
  [cols="h,5a"]
  |===
  
  | URL
  | /api/v1/timeseries/statistics/[namespace]/[uid]/[field name]/
  
  | Method
  | GET
  
  | Cookie
  | csrftoken, sessionid
  
  | Parameter(s)
  |
  build_calendar::
   True / False
  
  | Content type
  | application/json
  
  | Response Body
  |
  ....
  {
      values_in_way_past: 0,
      values_in_future: 0,
      meta: {
          uid: "mrsandman",
          name: "sstables",
          namespace_name: "dreamspace"
      },
      daily_activity: [
          [
              "2015-12-01",
              1439,
              99
          ],
          [
              "2015-12-02",
              1440,
              100
          ],
          [
              "2015-12-03",
              1440,
              100
          ],
      ],
      calendar: {
                  2015: {
                      2015-12: [
                          [
                              [
                                  0,
                                  null
                              ],
                              [
                                  1,
                                  [
                                      "2015-12-01",
                                      1439,
                                      99
                                  ]
                              ],
                              [
                                  2,
                                  [
                                      "2015-12-02",
                                      1440,
                                      100
                                  ]
                              ],
                              [
                                  3,
                                  [
                                      "2015-12-03",
                                      1440,
                                      100
                                  ]
                              ]
                          ]
                      ]
                  }
              }
      }
  ....
  |===
  == Byteport asynchronous storage API v0.7
  Byteport also supports an asynchronous high performance method of storing data. This is facilitated through an enterprise level
  message broker and the protocols we support is:
  