mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
19 lines
400 B
Go
19 lines
400 B
Go
package api
|
|
|
|
import (
|
|
"github.com/grafana/grafana/pkg/infra/metrics"
|
|
"github.com/grafana/grafana/pkg/models"
|
|
)
|
|
|
|
func SetPublicDashboardFlag() func(c *models.ReqContext) {
|
|
return func(c *models.ReqContext) {
|
|
c.IsPublicDashboardView = true
|
|
}
|
|
}
|
|
|
|
func CountPublicDashboardRequest() func(c *models.ReqContext) {
|
|
return func(c *models.ReqContext) {
|
|
metrics.MPublicDashboardRequestCount.Inc()
|
|
}
|
|
}
|