Versions in this module Expand all Collapse all v0 v0.2.0 Nov 30, 2020 Changes in this version type Dashboard + func ConvertTemplate(file string) (dashboard Dashboard, err error) + func (db *Dashboard) AddRow(row Row) + func (db *Dashboard) SetTimeFrame(from time.Time, to time.Time) + type DataSourcePlugin struct + Annotations struct{ ... } + Module string + Name string + Partials PluginPartial + PluginType string + ServiceName string + Type string + type DataSourcePlugins map[string]DataSourcePlugin type GTime + func NewGTime() GTime + type GroupBy struct + Interval string + Params []string + Type string + func NewGroupBy() []GroupBy + type Legend struct + AlignAsTable bool + Avg bool + Current bool + Max bool + Min bool + Show bool + Total bool + Values bool + func NewLegend() Legend + type Metric struct + Alias []string + Fields []string + Hosts []string + Measurement string type Panel + Bars bool + DataSource string + Fill int + LeftYAxisLabel string + Legend Legend + Lines bool + Linewidth int + Metrics []Metric + NullPointMode string + PageSize int + Percentage bool + Pointradius int + Points bool + RightYAxisLabel string + SeriesOverrides []SeriesOverride + Stack bool + SteppedLine bool + TimeFrom interface{} + TimeShift interface{} + Tooltip Tooltip + ValueName string + func NewPanel() Panel + func (panel *Panel) AddTarget(target Target) + type Plugin struct + Enabled bool + HasUpdate bool + ID string + Info struct{ ... } + LatestVersion string + Name string + Pinned bool + Type string + type PluginPartial struct + Annotations string + Config string + type Plugins []Plugin type Row + func NewRow() Row + func (row *Row) AddPanel(panel Panel) + type Select struct + Params []string + Type string + type Selects []Select + type SeriesOverride struct + Alias string + Fill int + Stack bool + Transform string + func NewSeriesOverride(alias string) SeriesOverride type Session + func (s *Session) GetDataSourcePlugins() (plugins DataSourcePlugins, err error) + func (s *Session) GetPlugins(pluginType string) (plugins Plugins, err error) + type Tag struct + Condition string + Key string + Value string type Target + DsType string + GroupBy []GroupBy + Measurement string + Select []Selects + Tags []Tag + Transform string + func NewTarget() Target + func (target *Target) FilterByTag(name string, value string) + func (target *Target) GroupByTag(tag string) + func (target *Target) TagKeys() []string type Template + AllFormat string + Current struct{ ... } + Datasource string + IncludeAll bool + Multi bool + MultiFormat string + Name string + Options []struct{ ... } + Query string + Refresh string + RefreshOnLoad bool + Regex string + Type string + func NewTemplate() Template + type Templates []Template + type Templating struct + List Templates + type Tooltip struct + ValueType string v0.1.0 Jun 6, 2015 Changes in this version + type Annotation struct + Enable bool + List []interface{} + type Dashboard struct + Annotations Annotation + Editable bool + GTime GTime + HideControls bool + ID int + OriginalTitle string + Refresh bool + Rows []Row + SchemaVersion int + SharedCrosshair bool + Style string + Tags []interface{} + Templating Template + Timezone string + Title string + Version int + type DashboardResult struct + Meta Meta + Model Dashboard + type DashboardUploader struct + Dashboard Dashboard + Overwrite bool + type DataSource struct + Access string + BasicAuth bool + BasicAuthPassword string + BasicAuthUser string + Database string + ID int + IsDefault bool + Name string + OrgID int + Password string + Type string + URL string + User string + type GTime struct + From string + Now bool + To string + type GrafanaError struct + Code int + Description string + func (h GrafanaError) Error() string + type GrafanaMessage struct + Message string + type Login struct + Email string + Password string + User string + type Meta struct + Created string + Expires string + IsHome bool + IsSnapshot bool + IsStarred bool + Slug string + type Panel struct + Content string + Editable bool + Error bool + ID int + Mode string + Span int + Style struct{} + Targets []Target + Title string + Type string + type Row struct + Collapse bool + Editable bool + Height string + Panels []Panel + Title string + type Session struct + Password string + User string + func NewSession(user string, password string, url string) *Session + func (s *Session) CreateDataSource(ds DataSource) (err error) + func (s *Session) DeleteDashboard(name string) (err error) + func (s *Session) DeleteDataSource(ds DataSource) (err error) + func (s *Session) DoLogon() (err error) + func (s *Session) GetDashboard(name string) (dashboard DashboardResult, err error) + func (s *Session) GetDataSource(name string) (ds DataSource, err error) + func (s *Session) GetDataSourceList() (ds []DataSource, err error) + func (s *Session) UploadDashboard(dashboard Dashboard, overwrite bool) (err error) + func (s *Session) UploadDashboardString(dashboard string, overwrite bool) (err error) + type Target struct + Alias string + Column string + Function string + Hide bool + Query string + RawQuery bool + Series string + type Template struct + List []interface{}