7 lines
318 B
Nim
7 lines
318 B
Nim
import ../model/state_type
|
|
import ../model/notifier_types
|
|
|
|
proc notify*(notifiers: Notifiers, state: State, runtime: int = 0, msg: string = ""): int {.discardable.} =
|
|
if notifiers.uptimekuma.base_url != "" and
|
|
state in notifiers.uptimekuma.states:
|
|
notifiers.uptimekuma.send_notify(state, runtime, msg)
|