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 db.DB
KVStore kvstore.KVStore
ExpressionService *expr.Service
DataProxy *datasourceproxy.DataSourceProxyService
QuotaService quota.Service
SecretsService secrets.Service
Metrics *metrics.NGAlert
NotificationService notifications.Service
Log log.Logger
ImageService image.ImageService
// 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 db.DB, kvStore kvstore.KVStore, expressionService *expr.Service, dataProxy *datasourceproxy.DataSourceProxyService, quotaService quota.Service, secretsService secrets.Service, notificationService notifications.Service, m *metrics.NGAlert, folderService folder.Service, ac accesscontrol.AccessControl, dashboardService dashboards.DashboardService, renderService rendering.Service, bus bus.Bus, accesscontrolService accesscontrol.Service, annotationsRepo annotations.Repository, pluginsStore plugins.Store, tracer tracing.Tracer, ruleStore *store.DBstore, ) (*AlertNG, error)
func (*AlertNG) GetHooks ¶
GetHooks returns a facility for replacing handlers for paths. The handler hook for a path is invoked after all other middleware is invoked (authentication, instrumentation).
func (*AlertNG) IsDisabled ¶
IsDisabled returns true if the alerting service is disabled 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/cmd/clean-swagger
command
|
|
|
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. |
|
Package image is a generated GoMock package.
|
Package image is a generated GoMock package. |
|
nolint
|
nolint |
|
Package state is a generated GoMock package.
|
Package state is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.