grafana/pkg/api
lfroment 72628c8ea0
Dashboard: Adds support for a global minimum dashboard refresh interval (#19416)
This feature would provide a way for administrators to limit the minimum 
dashboard refresh interval globally.
Filters out the refresh intervals available in the time picker that are lower 
than the set minimum refresh interval in the configuration .ini file
Adds the minimum refresh interval as available in the time picker.
If the user tries to enter a refresh interval that is lower than the minimum 
in the URL, defaults to the minimum interval.
When trying to update the JSON via the API, rejects the update if the 
dashboard's refresh interval is lower than the minimum.
When trying to update a dashboard via provisioning having a lower 
refresh interval than the minimum, defaults to the minimum interval 
and logs a warning. 

Fixes #3356

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2020-02-28 14:32:01 +01:00
..
avatar use https for fetch gravatar by default (#20964) 2019-12-10 08:59:11 +01:00
dtos chore: avoid alias for models in plugins (#22483) 2020-02-28 12:51:21 +01:00
live pkg/api: Check errors (#19657) 2019-10-08 18:57:53 +02:00
pluginproxy pkg/api/pluginproxy: Access token provider should handle access tokens without ExpiresOn field (#19928) 2020-02-26 15:59:02 +01:00
routing removes unused return object 2018-06-26 09:22:31 +02:00
static pkg: fix codespell issues 2018-04-13 20:31:29 +02:00
admin_provisioning.go Provisioning: Add API endpoint to reload provisioning configs (#16579) 2019-04-25 09:06:44 +02:00
admin_users_test.go ApiUser: Fix response when enabling, disabling or deleting a nonexistent user (#21391) 2020-01-10 11:43:44 +01:00
admin_users.go ApiUser: Fix response when enabling, disabling or deleting a nonexistent user (#21391) 2020-01-10 11:43:44 +01:00
admin.go Initial Baby Step to refactoring settings from global vars to instance (#11777) 2018-04-30 16:21:04 +02:00
alerting_test.go API: Restrict anonymous user information access (#18422) 2019-08-12 20:03:48 +02:00
alerting.go API: Added alert state validation before changing its state (#21375) 2020-01-09 11:18:51 +01:00
annotations_test.go Annotations: use a single row to represent a region (#17673) 2019-08-16 10:49:30 +02:00
annotations.go Annotations: use a single row to represent a region (#17673) 2019-08-16 10:49:30 +02:00
api.go Backend plugins: Implement support for resources (#21805) 2020-01-31 11:15:50 +01:00
apikey.go API: Optionally list expired keys (#20468) 2019-11-20 13:14:57 +02:00
app_routes.go move log package to /infra (#17023) 2019-05-13 08:45:54 +02:00
basic_auth_test.go Re-organize packages and add basic auth test 2018-11-19 13:54:13 -05:00
basic_auth.go Re-organize packages and add basic auth test 2018-11-19 13:54:13 -05:00
common_test.go Rendering: Store render key in remote cache (#22031) 2020-02-19 19:47:39 +01:00
common.go pkg/api: Check errors (#19657) 2019-10-08 18:57:53 +02:00
dashboard_permission_test.go test: fixed usage of wrap in tests. 2018-07-02 17:13:59 +02:00
dashboard_permission.go permission: generate team avatar url with default 2018-04-04 15:50:45 +02:00
dashboard_snapshot_test.go pkg/api: Check errors (#19657) 2019-10-08 18:57:53 +02:00
dashboard_snapshot.go pkg/util: Check errors (#19832) 2019-10-23 10:40:12 +02:00
dashboard_test.go Provisioning: fix for cannot save provisioned dashboard (#20218) 2019-11-07 10:49:24 +01:00
dashboard.go Dashboard: Adds support for a global minimum dashboard refresh interval (#19416) 2020-02-28 14:32:01 +01:00
dataproxy_test.go dataproxy should forward a trailing slash to proxy 2018-10-03 12:55:01 +02:00
dataproxy.go Metrics: use consistent naming for exported variables (#18134) 2019-07-16 16:58:46 +02:00
datasources_test.go Return a 404 when deleting a datasource through the API if it doesn't exist and add a test for it to confirm #12313 2018-06-22 21:15:36 -05:00
datasources.go Backend Plugins: Provide proper plugin config to plugins (#21985) 2020-02-19 19:17:05 +01:00
folder_permission_test.go test: fixed usage of wrap in tests. 2018-07-02 17:13:59 +02:00
folder_permission.go permissions: return user and team avatar in folder permissions api 2018-04-04 15:51:19 +02:00
folder_test.go Search: Fixes search limits and adds a page parameter (#16458) 2019-04-17 13:07:50 +02:00
folder.go API: Minor fix for nil pointer when trying to log error during creating new dashboard via the API (#18003) 2019-07-11 09:45:29 +03:00
frontendsettings.go Dashboard: Adds support for a global minimum dashboard refresh interval (#19416) 2020-02-28 14:32:01 +01:00
grafana_com_proxy.go http: remove dualstack since its deprecated (#16940) 2019-05-08 10:37:48 +02:00
http_server_test.go Re-organize packages and add basic auth test 2018-11-19 13:54:13 -05:00
http_server.go Rendering: Store render key in remote cache (#22031) 2020-02-19 19:47:39 +01:00
index.go App Plugins: support react pages in nav (#22428) 2020-02-27 09:10:21 -08:00
ldap_debug_test.go LDAP: Fixing sync issues (#19446) 2019-11-07 14:31:44 +01:00
ldap_debug.go Quota: Makes sure we provide the request context to the quota service (#21949) 2020-02-06 08:49:58 +02:00
login_oauth.go OAuth: Enforce auto_assign_org_id setting when role mapping enabled using Generic OAuth (#22268) 2020-02-19 17:38:53 +01:00
login_test.go API: Fix redirect issue when configured to use a subpath (#21652) 2020-02-14 14:51:35 +01:00
login.go API: Fix redirect issue when configured to use a subpath (#21652) 2020-02-14 14:51:35 +01:00
metrics.go GEL: include the expression count in the request (#20114) 2019-10-31 16:22:00 -07:00
org_invite.go Server: Return 404 when non-pending invite is requested (#20863) 2019-12-04 13:01:37 +01:00
org_users.go API: Restrict anonymous user information access (#18422) 2019-08-12 20:03:48 +02:00
org.go Metrics: use consistent naming for exported variables (#18134) 2019-07-16 16:58:46 +02:00
password.go pkg/util: Check errors (#19832) 2019-10-23 10:40:12 +02:00
playlist_play.go move log package to /infra (#17023) 2019-05-13 08:45:54 +02:00
playlist.go Codestyle: Fix some goconst issues (#17530) 2019-06-12 07:27:47 +02:00
plugins.go Backend Plugins: Provide proper plugin config to plugins (#21985) 2020-02-19 19:17:05 +01:00
preferences.go feat: team preferences 2018-11-12 20:01:53 +01:00
quota.go Make golint happier 2018-03-22 22:38:44 +01:00
render.go Reporting: Handle timeouts in rendering (#20415) 2019-11-18 16:58:15 +01:00
search.go Metrics: use consistent naming for exported variables (#18134) 2019-07-16 16:58:46 +02:00
signup.go pkg/util: Check errors (#19832) 2019-10-23 10:40:12 +02:00
stars.go Make golint happier 2018-03-22 22:38:44 +01:00
team_members.go Licensing service (#19903) 2019-11-01 14:56:12 +01:00
team_test.go API: Minor fix for team creation endpoint when using API key (#18252) 2019-08-08 11:27:47 +03:00
team.go API: Minor fix for team creation endpoint when using API key (#18252) 2019-08-08 11:27:47 +03:00
user_test.go Admin: New Admin User page (#20498) 2020-01-13 17:10:19 +01:00
user_token_test.go Api: Fix auth tokens returning wrong seenAt value (#17980) 2019-07-08 14:30:02 +02:00
user_token.go Api: Fix auth tokens returning wrong seenAt value (#17980) 2019-07-08 14:30:02 +02:00
user.go Auth: Azure AD OAuth (#20030) 2020-02-13 12:12:25 +03:00