grafana/pkg/models
Sofia Papagiannaki 540f110220
[Alerting]: Extend quota service to optionally set limits on alerts (#33283)
* Quota: Extend service to set limit on alerts

* Add test for applying quota to alert rules

* Apply suggestions from code review

Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>

* Get used alert quota only if naglert is enabled

* Set alert limit to zero if nglalert is not enabled
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2021-05-04 19:16:28 +03:00
..
address.go feat(organization): added update org address to http api and to org details settings view, closes #2672 2015-09-08 14:22:44 +02:00
alert_notifications.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
alert_test.go Chore: Rewrite models alert test to standard library (#30021) 2021-01-01 13:18:47 +01:00
alert.go PluginManager: Make Plugins, Renderer and DataSources non-global (#31866) 2021-03-17 16:06:10 +01:00
apikey.go Return 404 when deleting non-existing API key (#33346) 2021-04-28 13:30:09 +02:00
context_test.go Alerting: Various fixes for the alerts endpoint (#33182) 2021-04-21 06:34:42 -04:00
context.go Alerting: Various fixes for the alerts endpoint (#33182) 2021-04-21 06:34:42 -04:00
dashboard_acl_test.go Chore: Rewrite models dashboard acl test to standard library (#30022) 2021-01-01 13:22:48 +01:00
dashboard_acl.go PluginManager: Make Plugins, Renderer and DataSources non-global (#31866) 2021-03-17 16:06:10 +01:00
dashboard_snapshot.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
dashboard_version.go Chore: Fix staticcheck issues (#28860) 2020-11-05 13:07:06 +01:00
dashboards_test.go Chore: Rewrite models dashboards test to standard library (#30023) 2021-01-01 13:29:40 +01:00
dashboards.go new endpoint to post/get trimmed dashboard json (#33465) 2021-04-28 19:38:33 +08:00
datasource_cache_test.go Add timeout option to datasource config (#31871) 2021-04-07 10:46:19 -04:00
datasource_cache.go Add timeout option to datasource config (#31871) 2021-04-07 10:46:19 -04:00
datasource.go Chore: Collect elasticsearch version usage stats (#31787) 2021-03-17 09:14:53 +00:00
folders.go PluginManager: Make Plugins, Renderer and DataSources non-global (#31866) 2021-03-17 16:06:10 +01:00
health.go feat: added api health endpoint that does not require auth and never creates sessions, returns db status as well. #3302 2017-04-25 17:17:45 +02:00
helpflags.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
jwt.go Auth: support JWT Authentication (#29995) 2021-03-31 08:40:44 -07:00
licensing.go CDN: Adds support for serving assets over a CDN (#30691) 2021-02-01 10:13:09 +01:00
live.go Live: persisting last message in cache for broadcast scope (#32938) 2021-04-30 11:06:33 -07:00
login_attempt.go login: uses epochs for login throtting. 2018-02-16 17:25:46 +01:00
models.go Okta OAuth provider (team sync support) (#22972) 2020-04-02 17:35:48 +03:00
notifications.go Chore: Fix staticcheck issues (#28860) 2020-11-05 13:07:06 +01:00
org_user.go Access control: Basic structure and functionality behind feature toggle (#31893) 2021-03-22 13:22:48 +01:00
org.go Chore: Fix staticcheck issues (#28860) 2020-11-05 13:07:06 +01:00
playlist.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
plugin_setting_cache_test.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
plugin_setting_cache.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
plugin_settings.go PluginManager: Make Plugins, Renderer and DataSources non-global (#31866) 2021-03-17 16:06:10 +01:00
preferences.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
quotas.go [Alerting]: Extend quota service to optionally set limits on alerts (#33283) 2021-05-04 19:16:28 +03:00
shorturl.go Short URL: Cleanup unvisited/stale short URLs (#28867) 2020-11-09 18:08:16 +01:00
star.go Chore: Fix staticcheck issues (#28860) 2020-11-05 13:07:06 +01:00
stats.go Usage Stats: Remove unused method for getting user stats (#30074) 2021-01-26 14:13:25 +01:00
tags_test.go Chore: Rewrite models tags test to standard library (#30041) 2021-01-05 17:20:41 +01:00
tags.go Create annotations (#8197) 2017-10-07 10:31:39 +02:00
team_member.go UserTableView: Show user name in table view (#18108) 2019-11-21 12:44:46 +02:00
team.go Add an option to hide certain users in the UI (#28942) 2020-11-24 12:10:32 +01:00
temp_user.go Users: Expire old user invites (#27361) 2020-10-13 12:30:09 +02:00
test_data.go Chore: Fix SQL related Go variable naming (#28887) 2020-11-11 06:21:08 +01:00
user_auth.go Auth: add expired token error and update CreateToken function (#30203) 2021-01-19 17:55:53 +01:00
user_token.go Auth: Allow soft token revocation (#31601) 2021-03-16 17:44:02 +01:00
user.go Live: support a dashboard gitops channel (#33291) 2021-04-23 21:55:31 +02:00
validations.go Plugins: Requests validator (#30445) 2021-02-03 20:47:45 +01:00