mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
18 lines
465 B
Go
18 lines
465 B
Go
package features
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/grafana/grafana-plugin-sdk-go/backend"
|
|
)
|
|
|
|
const (
|
|
FlagCloudWatchCrossAccountQuerying = "cloudWatchCrossAccountQuerying"
|
|
FlagCloudWatchWildCardDimensionValues = "cloudWatchWildCardDimensionValues"
|
|
FlagCloudWatchBatchQueries = "cloudWatchBatchQueries"
|
|
)
|
|
|
|
func IsEnabled(ctx context.Context, feature string) bool {
|
|
return backend.GrafanaConfigFromContext(ctx).FeatureToggles().IsEnabled(feature)
|
|
}
|