Documentation ¶
Index ¶
- type AuditLog
- type AuditLogEntry
- type Client
- func (client Client) ActivateChanges() error
- func (client Client) AddHost(hostname string, folder string) (bool, error)
- func (client Client) AuditLog() (AuditLog, error)
- func (client Client) GetDowntimesForHost(host string) (Downtimes, error)
- func (client Client) IsAuthenticated() (bool, error)
- func (client Client) RemoveHost(hostname string) error
- func (client Client) ScheduleHostDowntime(host string, minutes int, comment string) error
- type DowntimeEntry
- type Downtimes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditLog ¶
type AuditLog []*AuditLogEntry
AuditLog is a slice of audit log entries
func (*AuditLog) FindEntriesByDescription ¶
func (auditLog *AuditLog) FindEntriesByDescription(description string) []*AuditLogEntry
FindEntriesByDescription returns audit log entries based on a matching description
func (*AuditLog) FindEntriesByUsername ¶
func (auditLog *AuditLog) FindEntriesByUsername(username string) []*AuditLogEntry
FindEntriesByUsername returns audit log entries based on a matching username
type AuditLogEntry ¶
AuditLogEntry represents a row in the audit log
type Client ¶
type Client struct { URL string Username string Password string HTTPClient *http.Client // contains filtered or unexported fields }
Client struct for check mk
func (Client) ActivateChanges ¶
ActivateChanges activates any pending changes in check_mk
func (Client) GetDowntimesForHost ¶
GetDowntimesForHost returns downtime entries for a given host
func (Client) IsAuthenticated ¶
IsAuthenticated checks if the client is successfully authenticated
func (Client) RemoveHost ¶
RemoveHost removes a host from check mk
type DowntimeEntry ¶
type DowntimeEntry struct { Origin string Author string Entry string Start string End string Mode string FlexibleDuration string Recurring string Comment string }
DowntimeEntry represents a row in the downtimes view
Click to show internal directories.
Click to hide internal directories.