Documentation ¶
Index ¶
Constants ¶
View Source
const AlertRolesGroup = "Alerting"
Variables ¶
This section is empty.
Functions ¶
func DeclareFixedRoles ¶
func DeclareFixedRoles(service accesscontrol.Service) error
Types ¶
type AlertNG ¶
type AlertNG struct { Cfg *setting.Cfg FeatureToggles featuremgmt.FeatureToggles DataSourceCache datasources.CacheService DataSourceService datasources.DataSourceService RouteRegister routing.RouteRegister SQLStore *sqlstore.SQLStore KVStore kvstore.KVStore ExpressionService *expr.Service DataProxy *datasourceproxy.DataSourceProxyService QuotaService quota.Service SecretsService secrets.Service Metrics *metrics.NGAlert NotificationService notifications.Service Log log.Logger // Alerting notification services MultiOrgAlertmanager *notifier.MultiOrgAlertmanager AlertsRouter *sender.AlertsRouter // contains filtered or unexported fields }
AlertNG is the service for evaluating the condition of an alert definition.
func ProvideService ¶
func ProvideService( cfg *setting.Cfg, featureToggles featuremgmt.FeatureToggles, dataSourceCache datasources.CacheService, dataSourceService datasources.DataSourceService, routeRegister routing.RouteRegister, sqlStore *sqlstore.SQLStore, kvStore kvstore.KVStore, expressionService *expr.Service, dataProxy *datasourceproxy.DataSourceProxyService, quotaService quota.Service, secretsService secrets.Service, notificationService notifications.Service, m *metrics.NGAlert, folderService dashboards.FolderService, ac accesscontrol.AccessControl, dashboardService dashboards.DashboardService, renderService rendering.Service, bus bus.Bus, accesscontrolService accesscontrol.Service, annotationsRepo annotations.Repository, ) (*AlertNG, error)
func (*AlertNG) IsDisabled ¶
IsDisabled returns true if the alerting service is disable for this instance.
Directories ¶
Path | Synopsis |
---|---|
Package api contains base API implementation of unified alerting
|
Package api contains base API implementation of unified alerting |
tooling/definitions
Grafana Alerting API.
|
Grafana Alerting API. |
Package eval executes the condition for an alert definition, evaluates the condition results, and returns the alert instance states.
|
Package eval executes the condition for an alert definition, evaluates the condition results, and returns the alert instance states. |
Click to show internal directories.
Click to hide internal directories.