Versions in this module Expand all Collapse all v0 v0.5.8 Jan 7, 2021 v0.5.7 Jan 7, 2021 v0.5.6 Nov 17, 2020 v0.5.5 Nov 13, 2020 v0.5.4 Nov 11, 2020 v0.5.3 Nov 5, 2020 v0.5.2 Nov 5, 2020 v0.5.1 Nov 3, 2020 v0.5.0 Oct 6, 2020 Changes in this version + type AdvancedQueries struct + DisplayInfo DisplayInfo + Enabled bool + Format Format + ID int + ParentPanel *Panels + Query string + func NewPromqlQuery(query string, parentPanel *Panels) *AdvancedQueries + func (q *AdvancedQueries) Enable(val bool) *AdvancedQueries + func (q *AdvancedQueries) WithDataFormat() *AdvancedQueries + func (q *AdvancedQueries) WithDataRateFormat() *AdvancedQueries + func (q *AdvancedQueries) WithNumberFormat() *AdvancedQueries + func (q *AdvancedQueries) WithNumberRateFormat() *AdvancedQueries + func (q *AdvancedQueries) WithPercentFormat() *AdvancedQueries + func (q *AdvancedQueries) WithTimeFormat() *AdvancedQueries + type AxesConfiguration struct + Bottom Bottom + Left Left + Right Right + type Base struct + DisplayText string + Severity string + type Bottom struct + Enabled bool + type Dashboard struct + AutoCreated bool + CreatedOn int64 + CreatedOnDate string + CustomerID interface{} + Description string + EventDisplaySettings EventDisplaySettings + Favorite bool + ID int + Layout []*Layout + ModifiedOn int64 + ModifiedOnDate string + Name string + Panels []*Panels + Public bool + PublicToken string + Schema int + ScopeExpressionList interface{} + Shared bool + SharingSettings []interface{} + TeamID int + TeamScope interface{} + TeamScopeExpressionList []interface{} + TeamSharingOptions TeamSharingOptions + Username string + Version int + func DashboardFromJSON(body []byte) *Dashboard + func NewDashboard(name, description string) *Dashboard + func (db *Dashboard) AddPanels(panels ...*Panels) + func (db *Dashboard) AsPublic(value bool) *Dashboard + func (db *Dashboard) ToJSON() io.Reader + type DisplayInfo struct + Color string + DisplayName string + LineWidth int + TimeSeriesDisplayNameTemplate string + Type string + type EventDisplaySettings struct + Enabled bool + QueryParams QueryParams + type Format struct + Decimals interface{} + DisplayFormat string + InputFormat string + Unit FormatUnit + YAxis string + type FormatUnit string + const FormatUnitData + const FormatUnitDataRate + const FormatUnitNumber + const FormatUnitNumberRate + const FormatUnitPercentage + const FormatUnitTime + type Layout struct + H int + PanelID int + W int + X int + Y int + type Left struct + Decimals interface{} + DisplayFormat string + DisplayName interface{} + Enabled bool + MaxInputFormat string + MaxValue interface{} + MinInputFormat string + MinValue int + Scale string + Unit string + type LegendConfiguration struct + Enabled bool + Height interface{} + Layout string + Position string + ShowCurrent bool + Width interface{} + type NumberThresholds struct + Base Base + Values []interface{} + type PanelType string + const PanelTypeNumber + const PanelTypeTimechart + type Panels struct + AdvancedQueries []*AdvancedQueries + ApplyScopeToAll bool + ApplySegmentationToAll bool + AxesConfiguration AxesConfiguration + Description string + ID int + Layout *Layout + LegendConfiguration LegendConfiguration + MarkdownSource interface{} + Name string + NumberThresholds NumberThresholds + PanelTitleVisible bool + TextAutosized bool + TransparentBackground bool + Type PanelType + func NewPanel(name, description string, panelType PanelType) *Panels + func (p *Panels) AddQueries(queries ...*AdvancedQueries) (*Panels, error) + func (p *Panels) WithLayout(xPos, yPos, width, height int) (*Panels, error) + type QueryParams struct + AlertStatuses []interface{} + Categories []interface{} + Filter string + Severities []interface{} + TeamScope bool + type Right struct + Decimals interface{} + DisplayFormat string + DisplayName interface{} + Enabled bool + MaxInputFormat string + MaxValue interface{} + MinInputFormat string + MinValue int + Scale string + Unit string + type TeamSharingOptions struct + SelectedTeams []interface{} + Type string + UserTeamsRole string