Our team did some digging into this. You can use the api
<instance>.SigNoz.cloud/api/v1/rules
You need to et an api token from your account and set the header of your request to SIGNOZ-API-KEY as the key and then your token as the value
If you open the chrome network tab when you save a new alerts you can see the api call to this same endpoint and RIP out the JSON there to see the correct formatting for your payload.
👀 1
🔥 2
Ben Mask
07/12/2024, 5:55 PM
Not documented but it works for now. There is also the TF provider in progress as mentioned
c
Chitransh Gupta
07/14/2024, 4:33 AM
Thanks @Darren Smith for sharing out the terraform link.
Really good work decoding the API @Ben Mask 🙌
We recently migrated to a new website and the SigNoz API doc is yet to be migrated (PR here).
Till then. You can use this as a reference for the API - old website API spec doc.