Versions in this module Expand all Collapse all v0 v0.12.5 Jul 8, 2025 Changes in this version + const AlertlistType + const BarGaugeType + const CustomType + const DashlistType + const GaugeType + const GraphType + const HeatmapType + const LogsType + const MixedSource + const PluginlistType + const RowType + const SinglestatType + const StatType + const TableType + const TemplatingHideLabel + const TemplatingHideNone + const TemplatingHideVariable + const TextType + const TimeseriesType + type Alert struct + Interval string + Name string + Rules []AlertRule + type AlertCondition struct + Evaluator AlertEvaluator + Operator AlertOperator + Query AlertConditionQueryRef + Reducer AlertReducer + Type string + type AlertConditionQueryRef struct + Params []string + type AlertDatasourceRef struct + Type string + UID string + type AlertEvaluator struct + Params []float64 + Type string + type AlertManager struct + Config AlertManagerConfig + TemplateFiles MessageTemplate + type AlertManagerConfig struct + Receivers []ContactPoint + Route NotificationPolicies + Templates []string + type AlertModel struct + Conditions []AlertCondition + Datasource AlertDatasourceRef + Expr string + Format string + Hide *bool + Interval string + IntervalMs int + LegendFormat string + MetricQuery *StackdriverAlertQuery + QueryType string + RefID string + Target string + Type string + type AlertObjectMatcher [3]string + type AlertOperator struct + Type string + type AlertQuery struct + DatasourceUID string + Model AlertModel + QueryType string + RefID string + RelativeTimeRange *AlertRelativeTimeRange + type AlertReducer struct + Params []string + Type string + type AlertRelativeTimeRange struct + From int + To int + type AlertRule struct + Annotations map[string]string + For string + GrafanaAlert *GrafanaAlert + Labels map[string]string + type AlertlistPanel struct + DashboardTags []string + Limit int + NameFilter string + OnlyAlertsOnDashboard bool + Show string + SortOrder int + StateFilter []string + type Annotation struct + Datasource *DatasourceRef + Enable bool + Expr string + IconColor string + IconSize uint + LineColor string + Name string + Query string + ShowLine bool + Step string + TagKeys string + Tags []string + TagsField string + TextField string + TextFormat string + TitleFormat string + Type string + type Axis struct + Decimals int + Format string + Label string + LogBase int + Max *FloatString + Min *FloatString + Show bool + type BarGaugePanel struct + FieldConfig FieldConfig + Options Options + Targets []Target + type Board struct + Annotations struct{ ... } + Editable bool + GraphTooltip int + HideControls bool + ID uint + Links []Link + OriginalTitle string + Panels []*Panel + Refresh *BoolString + Rows []*Row + SchemaVersion uint + SharedCrosshair bool + Slug string + Style string + Tags []string + Templating Templating + Time Time + Timepicker Timepicker + Timezone string + Title string + UID string + Version uint + func NewBoard(title string) *Board + func (b *Board) AddLink(link Link) + func (b *Board) AddRow(title string) *Row + func (b *Board) AddTags(tags ...string) + func (b *Board) HasTag(tag string) bool + func (b *Board) RemoveTags(tags ...string) + func (b *Board) UpdateSlug() string + type BoolInt struct + Flag bool + Value *int64 + func (s *BoolInt) UnmarshalJSON(raw []byte) error + func (s BoolInt) MarshalJSON() ([]byte, error) + type BoolString struct + Flag bool + Value string + func (s *BoolString) UnmarshalJSON(raw []byte) error + func (s BoolString) MarshalJSON() ([]byte, error) + type Column struct + TextType string + Value string + type ColumnStyle struct + Alias *string + ColorMode *string + Colors *[]string + DateFormat *string + Decimals *int + Link bool + LinkTargetBlank bool + LinkTooltip *string + LinkUrl *string + MappingType int + Pattern string + Thresholds *[]string + Type string + Unit *string + ValueMaps []ValueMap + type CommonPanel struct + Datasource *DatasourceRef + Description *string + Editable bool + Error bool + GridPos struct{ ... } + Height interface{} + HideTimeOverride *bool + ID uint + IsNew bool + Links []Link + MinSpan *float32 + OfType panelType + Renderer *string + Repeat *string + RepeatDirection *RepeatDirection + RepeatPanelID *uint + ScopedVars map[string]struct{ ... } + Span float32 + Title string + Transparent bool + Type string + type ContactPoint struct + GrafanaManagedReceivers []ContactPointType + Name string + type ContactPointType struct + DisableResolveMessage bool + Name string + SecureSettings map[string]interface{} + Settings map[string]interface{} + Type string + UID string + type Current struct + Tags []*string + Text *StringSliceString + Value interface{} + type CustomPanel map[string]interface + type DashlistPanel struct + FolderID int + Headings bool + Limit int + Mode string + Query string + Recent bool + Search bool + Starred bool + Tags []string + type Datasource struct + Access string + BasicAuth *bool + BasicAuthPassword *string + BasicAuthUser *string + Database *string + ID uint + IsDefault bool + JSONData interface{} + Name string + OrgID uint + Password *string + SecureJSONData interface{} + Type string + URL string + User *string + WithCredentials bool + type DatasourceRef struct + LegacyName string + Type string + UID string + func (ref *DatasourceRef) UnmarshalJSON(data []byte) error + func (ref DatasourceRef) MarshalJSON() ([]byte, error) + type DatasourceType struct + Metrics bool + Module string + Name string + Partials struct{ ... } + PluginType string + ServiceName string + Type string + type FieldConfig struct + Defaults FieldConfigDefaults + Overrides []FieldConfigOverride + type FieldConfigColor struct + FixedColor string + Mode string + SeriesBy string + type FieldConfigCustom struct + AxisLabel string + AxisPlacement string + AxisSoftMax *int + AxisSoftMin *int + BarAlignment int + DrawStyle string + FillOpacity int + GradientMode string + HideFrom struct{ ... } + LineInterpolation string + LineStyle struct{ ... } + LineWidth int + PointSize int + ScaleDistribution struct{ ... } + ShowPoints string + SpanNulls bool + Stacking struct{ ... } + ThresholdsStyle struct{ ... } + type FieldConfigDefaults struct + Color FieldConfigColor + Custom FieldConfigCustom + Decimals *int + Links []Link + Max *float64 + Min *float64 + NoValue string + Thresholds Thresholds + Unit string + type FieldConfigOverride struct + Matcher struct{ ... } + Properties []FieldConfigOverrideProperty + type FieldConfigOverrideProperty struct + ID string + Value interface{} + type FloatString struct + Valid bool + Value float64 + func NewFloatString(i float64) *FloatString + func (v *FloatString) MarshalJSON() ([]byte, error) + func (v *FloatString) UnmarshalJSON(raw []byte) error + type Gauge struct + MaxValue float32 + MinValue float32 + Show bool + ThresholdLabels bool + ThresholdMarkers bool + type GaugePanel struct + FieldConfig FieldConfig + Options StatOptions + Targets []Target + type GrafanaAlert struct + Condition string + Data []AlertQuery + ExecutionErrorState string + NoDataState string + Title string + type GraphPanel struct + AliasColors interface{} + Bars bool + DashLength *uint + Dashes *bool + Decimals *int + FieldConfig *FieldConfig + Fill int + LeftYAxisLabel *string + Legend Legend + Lines bool + Linewidth uint + NullPointMode string + Percentage bool + Pointradius float32 + Points bool + RightYAxisLabel *string + SeriesOverrides []SeriesOverride + SpaceLength *uint + Stack bool + SteppedLine bool + Targets []Target + Thresholds []Threshold + TimeFrom *string + TimeShift *string + Tooltip Tooltip + XAxis bool + Xaxis Axis + YAxis bool + YFormats []string + Yaxes []Axis + type HeatmapPanel struct + Cards struct{ ... } + Color struct{ ... } + DataFormat string + HideZeroBuckets bool + HighlightCards bool + Legend struct{ ... } + ReverseYBuckets bool + Targets []Target + Tooltip struct{ ... } + TooltipDecimals int + XAxis struct{ ... } + XBucketNumber *float64 + XBucketSize *string + YAxis struct{ ... } + YBucketBound string + YBucketNumber *float64 + YBucketSize *float64 + type Height string + func (h *Height) UnmarshalJSON(raw []byte) error + type IntString struct + Valid bool + Value int64 + func NewIntString(i int64) *IntString + func (v *IntString) MarshalJSON() ([]byte, error) + func (v *IntString) UnmarshalJSON(raw []byte) error + type Legend struct + AlignAsTable bool + Avg bool + Current bool + HideEmpty bool + HideZero bool + Max bool + Min bool + RightSide bool + Show bool + SideWidth *uint + Total bool + Values bool + type Link struct + AsDropdown *bool + DashURI *string + Dashboard *string + Icon *string + IncludeVars bool + KeepTime *bool + Params *string + Tags []string + TargetBlank *bool + Title string + Tooltip *string + Type string + URL *string + type LogsOptions struct + DedupStrategy string + EnableLogDetails bool + PrettifyLogMessage bool + ShowCommonLabels bool + ShowLabels bool + ShowTime bool + SortOrder string + WrapLogMessage bool + type LogsPanel struct + Options LogsOptions + Targets []Target + type MapType struct + Name *string + Value *int + type MessageTemplate map[string]string + type NotificationPolicies struct + GroupBy []string + GroupInterval string + GroupWait string + Receiver string + RepeatInterval string + Routes []NotificationRoutingPolicy + type NotificationRoutingPolicy struct + GroupInterval string + GroupWait string + ObjectMatchers []AlertObjectMatcher + Receiver string + RepeatInterval string + type Option struct + Selected bool + Text string + Value string + type Options struct + ColorMode string + Content string + DisplayMode string + GraphMode string + JustifyMode string + Mode string + Orientation string + ReduceOptions ReduceOptions + Text *TextOptions + TextMode string + type Panel struct + func NewAlertlist(title string) *Panel + func NewCustom(title string) *Panel + func NewDashlist(title string) *Panel + func NewGauge(title string) *Panel + func NewGraph(title string) *Panel + func NewHeatmap(title string) *Panel + func NewLogs(title string) *Panel + func NewPluginlist(title string) *Panel + func NewSinglestat(title string) *Panel + func NewStat(title string) *Panel + func NewTable(title string) *Panel + func NewText(title string) *Panel + func NewTimeseries(title string) *Panel + func (p *Panel) AddTarget(t *Target) + func (p *Panel) GetTargets() *[]Target + func (p *Panel) MarshalJSON() ([]byte, error) + func (p *Panel) RepeatDatasourcesForEachTarget(dsNames ...string) + func (p *Panel) RepeatTargetsForDatasources(dsNames ...string) + func (p *Panel) ResetTargets() + func (p *Panel) SetTarget(t *Target) + func (p *Panel) UnmarshalJSON(b []byte) error + type PluginlistPanel struct + Limit int + type RangeMap struct + From *string + Text *string + To *string + type ReduceOptions struct + Calcs []string + Fields string + Values bool + type RepeatDirection string + const RepeatDirectionHorizontal + const RepeatDirectionVertical + type Row struct + Collapse bool + Editable bool + Height Height + Panels []Panel + Repeat *string + ShowTitle bool + Title string + func (r *Row) Add(panel *Panel) + func (r *Row) AddCustom(data *CustomPanel) + func (r *Row) AddDashlist(data *DashlistPanel) + func (r *Row) AddGraph(data *GraphPanel) + func (r *Row) AddSinglestat(data *SinglestatPanel) + func (r *Row) AddStat(data *StatPanel) + func (r *Row) AddTable(data *TablePanel) + func (r *Row) AddText(data *TextPanel) + type RowPanel struct + Collapsed bool + Panels []Panel + type SeriesOverride struct + Alias string + Bars *bool + Color *string + Dashes *bool + Fill *int + FillBelowTo *string + Legend *bool + LineWidth *int + Lines *bool + NullPointMode *string + Stack *BoolString + Transform *string + YAxis *int + ZIndex *int + type SinglestatPanel struct + ColorBackground bool + ColorValue bool + Colors []string + Decimals int + Format string + Gauge Gauge + MappingType *uint + MappingTypes []*MapType + MaxDataPoints *IntString + NullPointMode string + Postfix *string + PostfixFontSize *string + Prefix *string + PrefixFontSize *string + RangeMaps []*RangeMap + SparkLine SparkLine + Targets []Target + Thresholds string + ValueFontSize string + ValueMaps []ValueMap + ValueName string + type Sort struct + Col int + Desc bool + type SparkLine struct + FillColor *string + Full bool + LineColor *string + Show bool + YMax *float64 + YMin *float64 + type StackdriverAlertQuery struct + AliasBy string + AlignOptions []StackdriverAlignOptions + AlignmentPeriod string + CrossSeriesReducer string + Filters []string + GroupBys []string + MetricKind string + MetricType string + PerSeriesAligner string + Preprocessor string + ProjectName string + ValueType string + type StackdriverAlignOption struct + Label string + MetricKinds []string + Text string + Value string + ValueTypes []string + type StackdriverAlignOptions struct + Expanded bool + Label string + Options []StackdriverAlignOption + type StatOptions struct + ColorMode string + GraphMode string + JustifyMode string + Orientation string + ReduceOptions ReduceOptions + Text *TextOptions + TextMode string + type StatPanel struct + FieldConfig FieldConfig + Options StatOptions + Targets []Target + type StringSliceString struct + Valid bool + Value []string + func (v *StringSliceString) MarshalJSON() ([]byte, error) + func (v *StringSliceString) UnmarshalJSON(raw []byte) error + type TablePanel struct + Columns []Column + Scroll bool + Sort *Sort + Styles []ColumnStyle + Targets []Target + Transform string + type Target struct + Alias string + AliasBy string + AlignOptions []StackdriverAlignOptions + AlignmentPeriod string + BucketAggs []struct{ ... } + CrossSeriesReducer string + Datasource *DatasourceRef + Dimensions map[string]string + DsType *string + Exemplar bool + Expr string + Filters []string + Format string + Group []struct{ ... } + GroupBys []string + Hide bool + Instant bool + Interval string + IntervalFactor int + LegendFormat string + Measurement string + MetricColumn string + MetricKind string + MetricName string + MetricType string + Metrics []struct{ ... } + Namespace string + PerSeriesAligner string + Period string + Preprocessor string + ProjectName string + Query string + RawQuery bool + RawSql string + RefID string + Region string + Select [][]struct{ ... } + Statistics []string + Step int + Table string + Tags []struct{ ... } + Target string + TimeColumn string + TimeField string + ValueType string + Where []struct{ ... } + type TemplateVar struct + AllFormat string + AllValue string + Auto bool + AutoCount *int + Current Current + Datasource *DatasourceRef + Hide uint8 + IncludeAll bool + Label string + Multi bool + MultiFormat string + Name string + Options []Option + Query interface{} + Refresh BoolInt + Regex string + Sort int + Type string + type Templating struct + List []TemplateVar + type TextOptions struct + TitleSize int + ValueSize int + type TextPanel struct + Content string + FieldConfig FieldConfig + Mode string + Options struct{ ... } + PageSize uint + Scroll bool + ShowHeader bool + Sort Sort + Styles []ColumnStyle + type Threshold struct + ColorMode string + Fill bool + FillColor string + Line bool + LineColor string + Op string + Value float32 + Yaxis string + type ThresholdStep struct + Color string + Value *float64 + type Thresholds struct + Mode string + Steps []ThresholdStep + type Time struct + From string + To string + type Timepicker struct + Now *bool + RefreshIntervals []string + TimeOptions []string + type TimeseriesLegendOptions struct + Calcs []string + DisplayMode string + Placement string + Show *bool + type TimeseriesOptions struct + Legend TimeseriesLegendOptions + Tooltip TimeseriesTooltipOptions + type TimeseriesPanel struct + FieldConfig FieldConfig + Options TimeseriesOptions + Targets []Target + type TimeseriesTooltipOptions struct + Mode string + type Tooltip struct + MsResolution bool + Shared bool + Sort int + ValueType string + type ValueMap struct + Op string + TextType string + Value string