API Metric Data List

From unroole CMS wiki
Revision as of 14:39, 27 July 2012 by Ilia.golod (Talk | contribs)

Jump to: navigation, search

URI

https://api.unroole.com/metered_data

HTTP Method

GET

Paramaters

Paramater Default Maximum Length Accepted Values Description
token API Persistence Token that identifies this user and its permissions.
type storage storage, bandwidth
zoom daily hourly, daily, weekly, monthly
start_date 1 year ago dateformat yyyy-mm-dd
end_date current date dateformat yyyy-mm-dd

Paramaters accepted by the controller:

Json Structure:

[ { "name": "Line Name", "data": [ [ 'Year/Month/Day', "Value" ],... ] },... ]

Sample Json: