Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChoriaPlugin ¶
func ChoriaPlugin() *plugin.WatcherPlugin
Types ¶
type StateNotification ¶
StateNotification describes the current state of the watcher described by io.choria.machine.watcher.metric.v1.state
func (*StateNotification) CloudEvent ¶
func (s *StateNotification) CloudEvent() cloudevents.Event
CloudEvent creates a CloudEvent from the state notification
func (*StateNotification) JSON ¶
func (s *StateNotification) JSON() ([]byte, error)
JSON creates a JSON representation of the notification
func (*StateNotification) String ¶
func (s *StateNotification) String() string
String is a string representation of the notification suitable for printing
type Watcher ¶
func (*Watcher) CurrentState ¶
Click to show internal directories.
Click to hide internal directories.