updown

package
v2.1.57 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package UpdownMonitor adds updown website monitoring tool's support in IngressMonitorController

Index

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) Equal

func (monitor *UpdownMonitorService) Equal(oldMonitor models.Monitor, newMonitor models.Monitor) bool

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL