The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
So generally sending data to a custom metric from Python is something like:
ts = int(time.time()) - (i * 5 * 60)
value = 10
params = {'data[timestamp]': ts, 'data[value]':value}
where from the example, value is an integer or numerical value. I can do this and get a graph with a single line plot.
I need to send data in the form:
ts = int(time.time()) - (i * 5 * 60)
value = {'a':10, 'b':20, 'c': 30}
params = {'data[timestamp]': ts, 'data[value]':value}
where value is a dictionary. The objective is to get 3 different lines in this case.
Obviously the code above gives a response of:
{"error":"data[value] is invalid"}
So how can I achieve this?
Hey Kingsley
Metrics in their current form don't have a way of keeping multiple plots in a single metric.
That being said, it's possible that it could be done using some custom CSS/HTML/JS to overlay a few metrics on a page, but that isn't something that I'd have experience with writing I'm afraid.
Seems like a pretty useful thing to leave out. But thanks. I'll keep digging.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We're excited to announce the release of a long-requested feature on Statuspage. Now visitors to your status page can subscribe to get notified in Slack when you report an incident or maintenance. Th...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.