Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AlarmAddedEvent ¶
AlarmAddedEvent will be sent when an alarm has been added
type AlarmRemovedEvent ¶
AlarmRemovedEvent will be sent when an alarm has been manually removed. It will not be sent if an alarm has been removed by the configuration as loaded on startup
type AlarmStateChangedEvent ¶
type AlarmStateChangedEvent struct { Alarm model.Alarm `json:"alarm"` Previous string `json:"previous"` Current string `json:"current"` }
AlarmStateChangedEvent will be sent when an alarm has changed state
type Event ¶
type Event struct { Ts int64 `json:"ts"` Type string `json:"type"` ServiceAddedEvent *ServiceAddedEvent `json:"service_added,omitempty"` ServiceStateChangedEvent *ServiceStateChangedEvent `json:"service_state_changed,omitempty"` ServiceRemovedEvent *ServiceRemovedEvent `json:"service_removed,omitempty"` AlarmAddedEvent *AlarmAddedEvent `json:"alarm_added,omitempty"` AlarmStateChanged *AlarmStateChangedEvent `json:"alarm_state_changed,omitempty"` AlarmRemovedEvent *AlarmRemovedEvent `json:"alarm_removed,omitempty"` }
type ServiceAddedEvent ¶
ServiceAddedEvent will be sent when a service has been added
type ServiceRemovedEvent ¶
ServiceRemovedEvent will be sent when a service has been removed
type ServiceStateChangedEvent ¶
type ServiceStateChangedEvent struct { Service model.Service `json:"service"` Previous string `json:"previous"` Current string `json:"current"` }
ServiceStateChangedEvent will be sent when a service has changed state
type UpdateEvent ¶
Click to show internal directories.
Click to hide internal directories.