Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
John2020-cyber committed Jan 15, 2024
1 parent 8d4bc68 commit 714fe91
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pkg/monitors/grafana/grafana-monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ func (service *GrafanaMonitorService) Setup(provider config.Provider) {
service.smClient = client
service.tenant = tenant
//CHECK if freq is set
if provider.GrafanaConfig.Frequency > 0 {
service.frequency = provider.GrafanaConfig.Frequency
} else {
service.frequency = FrequencyDefaultValue
}
}

func (service *GrafanaMonitorService) GetAll() (monitors []models.Monitor) {
Expand All @@ -65,9 +60,6 @@ func (service *GrafanaMonitorService) GetAll() (monitors []models.Monitor) {
Name: check.Job,
URL: check.Target,
ID: fmt.Sprintf("%v", check.Id),
Config: &endpointmonitorv1alpha1.GrafanaConfig{
TenantId: check.TenantId,
},
})
}
return monitors
Expand All @@ -92,7 +84,6 @@ func (service *GrafanaMonitorService) CreateSyntheticCheck(monitor models.Monito
}
checkId = idResult
}
grafanaConfig, _ := monitor.Config.(*endpointmonitorv1alpha1.GrafanaConfig)
// Creating a new Check object
return &synthetic_monitoring.Check{
Id: checkId,
Expand Down

0 comments on commit 714fe91

Please sign in to comment.