mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 08:22:20 +08:00
Alerting: New feature toggle for enabling standalone alerts (#25984)
* Add feature toggle for standalone alerts * Add IsStandaloneAlertsEnabled exported func
This commit is contained in:

committed by
GitHub

parent
c5bdea5cec
commit
20b603ee1a
@ -309,6 +309,11 @@ func (c Cfg) IsExpressionsEnabled() bool {
|
||||
return c.FeatureToggles["expressions"]
|
||||
}
|
||||
|
||||
// IsStandaloneAlertsEnabled returns whether the standalone alerts feature is enabled.
|
||||
func (c Cfg) IsStandaloneAlertsEnabled() bool {
|
||||
return c.FeatureToggles["standaloneAlerts"]
|
||||
}
|
||||
|
||||
type CommandLineArgs struct {
|
||||
Config string
|
||||
HomePath string
|
||||
|
Reference in New Issue
Block a user