Documentation
¶
Overview ¶
Host definition
Service definition
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Host ¶
type Host struct {
Hostname string
Displayname string
HostGroups []string
Address string
Parents *[]Host
}
func NewHostFromEnv ¶
type Notification ¶
type Notification struct {
Host Host
Service Service
Type string
Recipients []string
HostState string
HostStateHard bool
HostStateDuration time.Duration
ServiceState string
ServiceStateHard bool
ServiceStateDuration time.Duration
IsHost bool
IsService bool
}
Notification types:
*
func NewNotification ¶
func NewNotification() Notification
func NewNotificationFromEnv ¶
func NewNotificationFromEnv() (Notification, error)
type Service ¶
type Service struct {
Hostname string
Description string
DisplayName string
ServiceGroups []string // list of service groups this service belongs to
Volatile bool
Contacts []string // list of service contacts
ContactGroups []string // list of service contact groups
}
func NewService ¶
func NewService() Service
func NewServiceFromEnv ¶
Click to show internal directories.
Click to hide internal directories.