Documentation ¶
Overview ¶
Package UpdownMonitor adds updown website monitoring tool's support in IngressMonitorController
Index ¶
- Constants
- type UpdownMonitorService
- func (service *UpdownMonitorService) Add(updownMonitor models.Monitor)
- func (monitor *UpdownMonitorService) Equal(oldMonitor models.Monitor, newMonitor models.Monitor) bool
- func (updownService *UpdownMonitorService) GetAll() []models.Monitor
- func (updownService *UpdownMonitorService) GetByName(monitorName string) (*models.Monitor, error)
- func (updownService *UpdownMonitorService) Remove(updownMonitor models.Monitor)
- func (updownService *UpdownMonitorService) Setup(confProvider config.Provider)
- func (service *UpdownMonitorService) Update(updownMonitor models.Monitor)
Constants ¶
View Source
const ( // Default value for updown monitor UpdownPeriodDefaultValue = 15 UpdownPublishedDefaultValue = true UpdownEnableDefaultValue = true )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UpdownMonitorService ¶
type UpdownMonitorService struct {
// contains filtered or unexported fields
}
UpdownMonitorService struct contains parameters required by updown go client
func (*UpdownMonitorService) Add ¶
func (service *UpdownMonitorService) Add(updownMonitor models.Monitor)
Add function method will add a monitor (updown check)
func (*UpdownMonitorService) GetAll ¶
func (updownService *UpdownMonitorService) GetAll() []models.Monitor
GetAll function will return all monitors (updown checks) object in an array
func (*UpdownMonitorService) GetByName ¶
func (updownService *UpdownMonitorService) GetByName(monitorName string) (*models.Monitor, error)
GetByName function will return a monitor(updown check) object based on the name provided
func (*UpdownMonitorService) Remove ¶
func (updownService *UpdownMonitorService) Remove(updownMonitor models.Monitor)
Remove method will remove a monitor (updown check)
func (*UpdownMonitorService) Setup ¶
func (updownService *UpdownMonitorService) Setup(confProvider config.Provider)
Setup method will initialize a updown's go client object by using the configuration parameters
func (*UpdownMonitorService) Update ¶
func (service *UpdownMonitorService) Update(updownMonitor models.Monitor)
Update method will update a monitor (updown check)
Click to show internal directories.
Click to hide internal directories.