Skip to content

Instantly share code, notes, and snippets.

@miton18
Last active April 25, 2017 13:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miton18/d1a0e78cbc479be73807db49fafecc86 to your computer and use it in GitHub Desktop.
Save miton18/d1a0e78cbc479be73807db49fafecc86 to your computer and use it in GitHub Desktop.
An example of dashboard you can use in myboard.ovh
{
"endpoint": "https://warp.cityzendata.net",
"tiles": [
[
{
"title": "Time",
"description": "current timestamp",
"refresh": 1,
"warpScript": "NOW",
"type": "Number",
"size": 3
}, {
"title": "Random GTS",
"description":"This is a GTS",
"refresh": 2,
"warpScript":"[ NEWGTS NOW NaN NaN NaN RAND 10 * ADDVALUE NOW 10000000000 - NaN NaN NaN RAND 10 * ADDVALUE NOW 100000000000 - NaN NaN NaN RAND 10 * ADDVALUE 'metric' RENAME { 'test' 'a' } RELABEL { 'myboardLegend' 'ma custom metric' } SETATTRIBUTES NEWGTS 'test' RENAME NOW NaN NaN NaN 10 ADDVALUE NOW 1000000 - NaN NaN NaN -10 ADDVALUE { 'myboardLegend' 'otherone' } SETATTRIBUTES ]",
"type": "ChartLine",
"size": 8
}
], [
{
"title": "Random GTS",
"description":"This is a GTS",
"refresh": 2,
"warpScript":"NEWGTS NOW NaN NaN NaN RAND 10 * ADDVALUE NOW 10000000000 - NaN NaN NaN RAND 10 * ADDVALUE NOW 100000000000 - NaN NaN NaN RAND 10 * ADDVALUE",
"annotation": "'THIS IS :' NOW HUMANDURATION ' ' 2 JOIN",
"type": "ChartLine"
}
], [
{
"title": "Pie",
"description":"A Pie chart",
"refresh": 5,
"warpScript":"'X-TILE-STATUS' 'ok' HEADER { 'series' [ RAND RAND RAND RAND RAND ] 'labels' [ 'a' 'b' 'c' 'd' 'e' ] } ",
"type": "ChartPie"
}, {
"title": "Bars",
"description":"A Bar chart",
"refresh": 7,
"warpScript":"'X-TILE-STATUS' 'warning' HEADER { 'series' [ [ RAND RAND RAND RAND RAND ] ] 'labels' [ 'a' 'b' 'c' 'd' 'e' ] }",
"type": "ChartBar"
}
], [
{
"title": "Chart&bard",
"description": "A Bar chart with info",
"refresh": 5,
"warpScript": "'X-TILE-STATUS' 'danger' HEADER { 'series' [ [ RAND RAND RAND RAND RAND ] ] 'labels' [ 'a' 'b' 'c' 'd' 'e' ] }",
"type": "ChartBar"
}
]
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment