You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
400 B
16 lines
400 B
package notifier
|
|
|
|
import (
|
|
apimodels "github.com/grafana/grafana/pkg/services/ngalert/api/tooling/definitions"
|
|
)
|
|
|
|
func (am *Alertmanager) GetStatus() apimodels.GettableStatus {
|
|
am.reloadConfigMtx.RLock()
|
|
defer am.reloadConfigMtx.RUnlock()
|
|
|
|
config := apimodels.PostableApiAlertingConfig{}
|
|
if am.ready() {
|
|
config = am.config.AlertmanagerConfig
|
|
}
|
|
return *apimodels.NewGettableStatus(&config)
|
|
}
|
|
|