Documentation ¶
Index ¶
Constants ¶
View Source
const DatasourceID = -1
DatasourceID is the fake datasource id used in requests to identify it as a Grafana DS command.
View Source
const DatasourceName = "-- Grafana --"
DatasourceName is the string constant used as the datasource name in requests to identify it as a Grafana DS command.
View Source
const DatasourceUID = "grafana"
DatasourceUID is the fake datasource uid used in requests to identify it as a Grafana DS command.
Variables ¶
This section is empty.
Functions ¶
func DataSourceModel ¶
func DataSourceModel(orgId int64) *models.DataSource
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service exists regardless of user settings
func ProvideService ¶
func ProvideService(cfg *setting.Cfg, registrar plugins.CoreBackendRegistrar) *Service
func (*Service) CheckHealth ¶
func (s *Service) CheckHealth(_ context.Context, _ *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
func (*Service) QueryData ¶
func (s *Service) QueryData(_ context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
Click to show internal directories.
Click to hide internal directories.