It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can a Statuspage system metric with custom Python data source be a graph with multiple plots?

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?

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Statuspage

Introducing Statuspage Free

Atlassian community, Today is a major day not only for Statuspage, but also for the Atlassian community. Statuspage continues to be the industry leader for incident communication by constantly look...

869 views 2 32
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you