Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CurrentValue ¶ added in v0.50.0
type CurrentValue struct {
Value *variable.DefaultValue `json:"value,omitempty"`
}
type GrisPosition ¶ added in v0.50.0
type Migration ¶
type Migration interface {
Migrate(grafanaDashboard *SimplifiedDashboard) (*v1.Dashboard, error)
}
type Panel ¶ added in v0.50.0
type Panel struct {
Type string `json:"type"`
Title string `json:"title"`
Description string `json:"description"`
Collapsed bool `json:"collapsed"`
Panels []Panel `json:"panels"`
GridPosition GrisPosition `json:"gridPos"`
Targets []json.RawMessage `json:"targets"`
json.RawMessage
}
func (*Panel) UnmarshalJSON ¶ added in v0.50.0
type SimplifiedDashboard ¶ added in v0.50.0
type SimplifiedDashboard struct {
UID string `json:"uid,omitempty"`
Title string `json:"title"`
Panels []Panel `json:"panels"`
Templating struct {
List []TemplateVar `json:"list"`
} `json:"templating"`
}
func (*SimplifiedDashboard) UnmarshalJSON ¶ added in v0.50.0
func (d *SimplifiedDashboard) UnmarshalJSON(data []byte) error
type TemplateVar ¶ added in v0.50.0
type TemplateVar struct {
Name string `json:"name"`
Type string `json:"type"`
Description string `json:"description"`
Label string `json:"label"`
Hide int `json:"hide"`
Sort *int `json:"sort,omitempty"`
IncludeAll bool `json:"includeAll"`
AllValue string `json:"allValue"`
Multi bool `json:"multi"`
Current *CurrentValue `json:"current,omitempty"`
Query json.RawMessage `json:"query"`
json.RawMessage
}
func (*TemplateVar) UnmarshalJSON ¶ added in v0.50.0
func (v *TemplateVar) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.