updown

package
v1.0.71 Latest Latest
Warning

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

Go to latest
Published: May 6, 2019 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 (
	UpdownEnableCheckAnnotation = "updown.monitor.stakater.com/enable"
	UpdownPeriodAnnotation      = "updown.monitor.stakater.com/period"
	UpdownPublishPageAnnotation = "updown.monitor.stakater.com/publish-page"
	// this annotation is not enabled
	UpdownRequestHeadersAnnotation = "updown.monitor.stakater.com/request-headers"

	// Default value for annotations
	UpdownPeriodAnnotationDefaultValue    = 15
	UpdownPublishedAnnotationDefaultValue = true
	UpdownEnableAnnotationDefaultValue    = 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)

Jump to

Keyboard shortcuts

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