Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct { Name string `json:"name"` State AlertState `json:"state"` URL string `json:"url"` }
type AlertState ¶
type AlertState int
const ( Alerting AlertState = iota Pending NoData Paused Ok )
func (AlertState) MarshalJSON ¶
func (s AlertState) MarshalJSON() ([]byte, error)
MarshalJSON marshals the enum as a quoted json string
func (*AlertState) UnmarshalJSON ¶
func (s *AlertState) UnmarshalJSON(b []byte) error
UnmarshalJSON unmashals a quoted json string to the enum value
Click to show internal directories.
Click to hide internal directories.