mtakaki / cachet-url-monitor

URL monitor plugin for cachethq.io
MIT License
125 stars 49 forks source link

How can I customize status and incident? #72

Closed LucaTheHacker closed 4 years ago

LucaTheHacker commented 4 years ago

Hi, I'm trying to edit my configuration, how can I edit the incident and the status?

mtakaki commented 4 years ago

You want to customize the incident and the status?

LucaTheHacker commented 4 years ago

Yes, like the incident message and maybe setting major outage and not partial

mtakaki commented 4 years ago

That's actually not configurable in the config.yml... In that case this would be a new feature request for both things: configuring the incident message and controlling the kind of status it would trigger.

mtakaki commented 4 years ago

I just published version 0.5 that includes this feature, to override the incident status. Unfortunately, customizing the message could be cumbersome. For example, the HTTP_STATUS expectation shows the status it got, while REGEX doesn't have any parameter in the string. Unless we let it be customizable, but remove the ability to pass parameters.