Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
func NewSSHAdapter ¶
type Alert ¶
type Alert struct { ID string `json:"id"` Severity SeverityLevel `json:"severity"` Title string `json:"title"` Summary string `json:"summary"` CreatedAt int64 `json:"created_at"` }
type MonitAdapter ¶
type MonitAdapter interface { IsIgnorable() bool Alert() (Alert, error) Severity() (severity SeverityLevel, found bool) }
func NewMonitAdapter ¶
func NewMonitAdapter(monitAlert MonitAlert, settingsService boshsettings.Service, timeService clock.Clock) MonitAdapter
type MonitAlert ¶
type SeverityLevel ¶
type SeverityLevel int
const ( SeverityAlert SeverityLevel = 1 SeverityCritical SeverityLevel = 2 SeverityError SeverityLevel = 3 SeverityWarning SeverityLevel = 4 SeverityIgnored SeverityLevel = -1 SeverityDefault SeverityLevel = SeverityCritical )
Click to show internal directories.
Click to hide internal directories.