The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Data is invalid

Riyazudeen Asmath Basha
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 30, 2024

Hi,

I am trying to push data from Splunk to StatusPage using PowerShell but I am getting below error. I am new to Statuspage and not sure what should be expected data in Statuspage. I am sending in JSON format already.

OUTPUT:

value : 595
metricId fkyrb18y62b8
updateResponse
StatusPageURL: https://api.statuspage.io/v1/pages/w0jrf19mz1hn/metrics/fkyrb18y62b8/data
Body {
"data": [
{
"timestamp": "1717083400",
"value": "595",
"metric_id": "fkyrb18y62b8"
}
]
}
Write-Error: An error occurred:
{
"error": "data is invalid"
}

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Jesse Klein
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 31, 2024

Hello Riyazudeen,

Thanks for reaching out about adding metric data. It looks like you're using the "Add data to a Metric" endpoint. This only requires the timestamp and the value since the metric ID is already in the endpoint. If you remove the metric_id element from the body of the JSON, that should fix the issue as long as the metric ID is valid. Please also check out the example in the docs here:

https://developer.statuspage.io/#operation/postPagesPageIdMetricsMetricIdData

Regards,
Jesse

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events