Documentation ¶
Index ¶
- Constants
- type GrafanaMonitorService
- func (service *GrafanaMonitorService) Add(monitor models.Monitor)
- func (service *GrafanaMonitorService) CreateSyntheticCheck(monitor models.Monitor, tenantID int64) (*synthetic_monitoring.Check, error)
- func (service *GrafanaMonitorService) Equal(oldMonitor models.Monitor, newMonitor models.Monitor) bool
- func (service *GrafanaMonitorService) GetAll() (monitors []models.Monitor)
- func (service *GrafanaMonitorService) GetByName(name string) (*models.Monitor, error)
- func (service *GrafanaMonitorService) Remove(monitor models.Monitor)
- func (service *GrafanaMonitorService) Setup(provider config.Provider)
- func (service *GrafanaMonitorService) Update(monitor models.Monitor)
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) 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)
Click to show internal directories.
Click to hide internal directories.