Skip to content

Instantly share code, notes, and snippets.

@justinwinslow
Created May 29, 2013 20:54
Show Gist options
  • Save justinwinslow/5673769 to your computer and use it in GitHub Desktop.
Save justinwinslow/5673769 to your computer and use it in GitHub Desktop.
Timeseries format
{
device_legend: [device1, device2],
data_legend: [[dataType1, dataType2], [device2_dataType1]],
data: [
{
x: timestamp,
y: [
[
dataType1_value,
dataType2_value
],
[
dataType1_value
]
]
}
]
}
Could be query string or post body
/api/timelinedata?devices=[device1, device2]&dataTypes=[[dataType1, dataType2], [device2_dataType1]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment