{"_id":"57fcc4870312b20e00ac651e","version":{"_id":"57fcc4860312b20e00ac64c0","project":"5435687035740020002a1c04","__v":1,"createdAt":"2016-10-11T10:52:54.637Z","releaseDate":"2016-10-11T10:52:54.637Z","categories":["57fcc4860312b20e00ac64c1","57fcc4860312b20e00ac64c2","57fcc4860312b20e00ac64c3","57fcc4860312b20e00ac64c4","57fcc4860312b20e00ac64c5","57fcc4860312b20e00ac64c6","57fcc4860312b20e00ac64c7","57fcc4860312b20e00ac64c8","57fcc4860312b20e00ac64c9","57fcc4860312b20e00ac64ca","57fcc4860312b20e00ac64cb"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"[APP-1265], [APP-1035]","version_clean":"5.2.0","version":"5.2"},"parentDoc":null,"project":"5435687035740020002a1c04","__v":0,"user":"5553f1c2b450630d00041ccf","category":{"_id":"57fcc4860312b20e00ac64ca","version":"57fcc4860312b20e00ac64c0","__v":0,"project":"5435687035740020002a1c04","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-10-30T22:39:02.374Z","from_sync":false,"order":9,"slug":"flow-data-structures","title":"Flow Data Structures"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-05-19T03:33:03.963Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"output.values = array({1,2,3,4,5,6,7,8,9})\noutput.label = \"Hello\"\noutput.value = 9\noutput.color = \"red\"","language":"lua","name":"Agent Lua"}]},"method":"post","results":{"codes":[{"code":"{\n    \"errors\": [\n    ],\n    \"skipped\": [\n    ],\n    \"updated\": [\n    \t\"your_flow_tag\"\n    ]\n}","language":"json","status":200,"name":""},{"status":400,"name":"","code":"{\n    \"errors\": [\n        \"error description\"\n    ],\n    \"skipped\": [\n    \t\"your_flow_tag\"\n    ],\n    \"updated\": [\n    ]\n}","language":"json"}]},"settings":"","auth":"required","params":[{"_id":"567b270317368a0d009a6e36","ref":"","in":"path","required":true,"desc":"The flow tag","default":"","type":"string","name":"sparkline_flow_tag"},{"_id":"567b270317368a0d009a6e35","ref":"","in":"body","required":true,"desc":"The values for the sparkline","default":"","type":"array_double","name":"values"},{"_id":"567b270317368a0d009a6e34","ref":"","in":"body","required":false,"desc":"The current value of the flow.","default":"","type":"double","name":"value"},{"_id":"567b270317368a0d009a6e33","ref":"","in":"body","required":false,"desc":"A text label to show under the value. Keep it short so it will fit nicely.","default":"","type":"string","name":"label"},{"_id":"567b270317368a0d009a6e32","ref":"","in":"body","required":false,"desc":"The CSS color of the sparkline.","default":"","type":"string","name":"color"}],"url":"/flows/:sparkline_flow_tag/metrics"},"isReference":false,"order":15,"body":"[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/1C0xLkGUSyOKx7omFcrZ_sparkline.png\",\n        \"sparkline.png\",\n        \"350\",\n        \"200\",\n        \"#42aae2\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]","excerpt":"A sparkline is a much simpler line chart that has a graph as well as a value, label, and color.","slug":"sparkline","type":"endpoint","title":"Sparkline"}

postSparkline

A sparkline is a much simpler line chart that has a graph as well as a value, label, and color.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

sparkline_flow_tag:
required
string
The flow tag

Body Params

values:
required
array of doubles
The values for the sparkline
value:
double
The current value of the flow.
label:
string
A text label to show under the value. Keep it short so it will fit nicely.
color:
string
The CSS color of the sparkline.

Examples


Result Format


Documentation

[block:image] { "images": [ { "image": [ "https://files.readme.io/1C0xLkGUSyOKx7omFcrZ_sparkline.png", "sparkline.png", "350", "200", "#42aae2", "" ] } ] } [/block]

User Information

Try It Out

post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}