grafana

package
v2.1.52 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Default value for monitor configuration
	FrequencyDefaultValue = 10000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GrafanaMonitorService

type GrafanaMonitorService struct {
	// contains filtered or unexported fields
}

func (*GrafanaMonitorService) Add

func (service *GrafanaMonitorService) Add(monitor models.Monitor)

Add adds a new monitor to Grafana Synthetic Monitoring service

func (*GrafanaMonitorService) CreateSyntheticCheck

func (service *GrafanaMonitorService) CreateSyntheticCheck(monitor models.Monitor, tenantID int64) (*synthetic_monitoring.Check, error)

func (*GrafanaMonitorService) Equal

func (service *GrafanaMonitorService) Equal(oldMonitor models.Monitor, newMonitor models.Monitor) bool

func (*GrafanaMonitorService) GetAll

func (service *GrafanaMonitorService) GetAll() (monitors []models.Monitor)

func (*GrafanaMonitorService) GetByName

func (service *GrafanaMonitorService) GetByName(name string) (*models.Monitor, error)

func (*GrafanaMonitorService) Remove

func (service *GrafanaMonitorService) Remove(monitor models.Monitor)

func (*GrafanaMonitorService) Setup

func (service *GrafanaMonitorService) Setup(provider config.Provider)

func (*GrafanaMonitorService) Update

func (service *GrafanaMonitorService) Update(monitor models.Monitor)

Jump to

Keyboard shortcuts

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