mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
dsfix: include routes in plugin model
This commit is contained in:
parent
9bafb108f7
commit
2789c4f1e1
@ -8,15 +8,14 @@ import (
|
|||||||
|
|
||||||
type DataSourcePlugin struct {
|
type DataSourcePlugin struct {
|
||||||
FrontendPluginBase
|
FrontendPluginBase
|
||||||
Annotations bool `json:"annotations"`
|
Annotations bool `json:"annotations"`
|
||||||
Metrics bool `json:"metrics"`
|
Metrics bool `json:"metrics"`
|
||||||
Alerting bool `json:"alerting"`
|
Alerting bool `json:"alerting"`
|
||||||
QueryOptions map[string]bool `json:"queryOptions,omitempty"`
|
QueryOptions map[string]bool `json:"queryOptions,omitempty"`
|
||||||
BuiltIn bool `json:"builtIn,omitempty"`
|
BuiltIn bool `json:"builtIn,omitempty"`
|
||||||
Mixed bool `json:"mixed,omitempty"`
|
Mixed bool `json:"mixed,omitempty"`
|
||||||
HasQueryHelp bool `json:"hasQueryHelp,omitempty"`
|
HasQueryHelp bool `json:"hasQueryHelp,omitempty"`
|
||||||
|
Routes []*AppPluginRoute `json:"routes"`
|
||||||
Routes []*AppPluginRoute `json:"-"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *DataSourcePlugin) Load(decoder *json.Decoder, pluginDir string) error {
|
func (p *DataSourcePlugin) Load(decoder *json.Decoder, pluginDir string) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user