msgbyte / tianji

Tianji: Insight into everything, Website Analytics + Uptime Monitor + Server Status. not only another GA alternatives
https://tianji.msgbyte.com/
Apache License 2.0
1.44k stars 83 forks source link

is possible to send custom alerts with the color green or red #79

Closed simo222 closed 1 month ago

simo222 commented 3 months ago

I have a custom bash script with an if statement.

if the script fails I would like to send an alert with a red color. otherwise send green color .

is it possible to send alerts using a custom bash script which uses for example curl to send alerts ?

I was not able to find this in the documentation.

moonrailgun commented 2 months ago

Sure, we have custom webhook notification.

i think it has been released in v1.11.4

simo222 commented 2 months ago

Hi

Do you have an example to to send alert to server with color?. For example using api

moonrailgun commented 2 months ago

Sure, here is a document about custom webhook notification .

let me know if you need more context.

https://tianji.msgbyte.com/docs/notification/webhook

simo222 commented 1 month ago

Thanks

simo222 commented 1 month ago

Thanks