Allow templating of additional variables to alert messages #3

Closed
opened 2018-04-10 00:41:07 +00:00 by iamthefij · 2 comments
Owner

It's handy to get the monitor name via {monitor_name}, however other stuff might be useful too!

How about:

  • Monitor.total_failure_acount as {failure_count}
  • Monitor.alert_count as {alert_count}
  • Tracking a new datetime to allow {failing_since}
  • The command output as {command_stdout}
  • Update Readme
It's handy to get the monitor name via `{monitor_name}`, however other stuff might be useful too! How about: - [x] `Monitor.total_failure_acount` as `{failure_count}` - [x] `Monitor.alert_count` as `{alert_count}` - [x] Tracking a new datetime to allow `{failing_since}` - [x] The command output as `{command_stdout}` - [x] Update Readme
Author
Owner

Some handy docs on how we might capture stdout or stderr: https://docs.python.org/3/library/contextlib.html#contextlib.redirect_stdout

Some handy docs on how we might capture `stdout` or `stderr`: https://docs.python.org/3/library/contextlib.html#contextlib.redirect_stdout
Author
Owner

Just kidding. Only partially fixed.

Just kidding. Only partially fixed.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: iamthefij/minitor#3
No description provided.