Versions in this module Expand all Collapse all v0 v0.2.7 Dec 1, 2023 v0.2.6 Dec 1, 2023 Changes in this version type Panel + Content *string v0.2.6-alpha1 Dec 1, 2023 v0.2.5 Nov 16, 2023 v0.2.4 Sep 11, 2023 v0.2.3 Sep 8, 2023 v0.2.3-alpha1 Sep 8, 2023 v0.2.2 Sep 5, 2023 v0.2.2-alpha1 Aug 31, 2023 v0.2.1 Aug 16, 2023 Changes in this version type Panel + Format *string v0.2.0 Aug 15, 2023 Changes in this version + type AnnotationContainer struct + List []AnnotationQuery + type AnnotationPanelFilter struct + Exclude *bool + Ids []int + type AnnotationQuery struct + Datasource DataSourceRef + Enable bool + Filter *AnnotationPanelFilter + Hide *bool + IconColor string + Name string + Target *AnnotationTarget + Type *string + type AnnotationTarget struct + Limit int64 + MatchAny bool + Tags []string + Type string + type CursorSync int + const CursorSyncN0 + const CursorSyncN1 + const CursorSyncN2 + type DataSourceRef struct + Type *string + Uid *string + func (ref *DataSourceRef) UnmarshalJSON(data []byte) error + type DataTransformerConfig struct + Disabled *bool + Filter *MatcherConfig + Id string + Options any + type DynamicConfigValue struct + Id string + Value *any + type FieldColor struct + FixedColor *string + Mode string + SeriesBy *FieldColorSeriesByMode + type FieldColorSeriesByMode string + const FieldColorSeriesByModeLast + const FieldColorSeriesByModeMax + const FieldColorSeriesByModeMin + type FieldConfig struct + Color *FieldColor + Custom map[string]any + Decimals *float32 + Description *string + DisplayName *string + DisplayNameFromDS *string + Filterable *bool + Links []any + Mappings []any + Max *float32 + Min *float32 + NoValue *string + Path *string + Thresholds *ThresholdsConfig + Unit *string + Writeable *bool + type FieldConfigSource struct + Defaults FieldConfig + Overrides []struct{ ... } + type GraphPanel struct + Legend ... + Type GraphPanelType + type GraphPanelType string + const GraphPanelTypeGraph + type GridPos struct + H int + Static *bool + W int + X int + Y int + type HeatmapPanel struct + Type HeatmapPanelType + type HeatmapPanelType string + const HeatmapPanelTypeHeatmap + type LibraryPanelRef struct + Name string + Uid string + type Link struct + AsDropdown bool + Icon string + IncludeVars bool + KeepTime bool + Tags []string + TargetBlank bool + Title string + Tooltip string + Type LinkType + Url string + type LinkType string + const LinkTypeDashboards + const LinkTypeLink + type LoadingState string + const LoadingStateDone + const LoadingStateError + const LoadingStateLoading + const LoadingStateNotStarted + const LoadingStateStreaming + type MappingType string + const MappingTypeRange + const MappingTypeRegex + const MappingTypeSpecial + const MappingTypeValue + type MatcherConfig struct + Id string + Options *any + type Panel struct + Datasource ... + Description *string + FieldConfig FieldConfigSource + GridPos *GridPos + Id *int + Interval *string + LibraryPanel *LibraryPanelRef + Links []Link + MaxDataPoints *float32 + Options map[string]any + PluginVersion *string + Repeat *string + RepeatDirection PanelRepeatDirection + RepeatPanelId *int64 + Tags []string + Targets []Target + Thresholds []any + TimeFrom *string + TimeRegions []any + TimeShift *string + Title *string + Transformations []DataTransformerConfig + Transparent bool + Type string + type PanelRepeatDirection string + const PanelRepeatDirectionH + const PanelRepeatDirectionV + type RangeMap struct + Options struct{ ... } + Type RangeMapType + type RangeMapType string + const RangeMapTypeRange + const RangeMapTypeRegex + const RangeMapTypeSpecial + const RangeMapTypeValue + type RegexMap struct + Options struct{ ... } + Type RegexMapType + type RegexMapType string + const RegexMapTypeRange + const RegexMapTypeRegex + const RegexMapTypeSpecial + const RegexMapTypeValue + type RowPanel struct + Collapsed bool + Datasource ... + GridPos *GridPos + Id int + Panels []any + Repeat *string + Title *string + Type RowPanelType + type RowPanelType string + const RowPanelTypeRow + type Snapshot struct + Created time.Time + Expires string + External bool + ExternalUrl string + Id int + Key string + Name string + OrgId int + Updated time.Time + Url *string + UserId int + type Spec struct + Annotations *AnnotationContainer + Description *string + Editable bool + FiscalYearStartMonth *int + GraphTooltip CursorSync + Id *int64 + Links []Link + LiveNow *bool + Panels []any + Refresh *any + Revision *int64 + SchemaVersion int + Snapshot *Snapshot + Style SpecStyle + Tags []string + Templating ... + Time ... + Timepicker ... + Timezone *string + Title *string + Uid *string + Version *int + WeekStart *string + type SpecStyle string + const SpecStyleDark + const SpecStyleLight + type SpecialValueMap struct + Options struct{ ... } + Type SpecialValueMapType + type SpecialValueMapOptionsMatch string + const SpecialValueMapOptionsMatchFalse + const SpecialValueMapOptionsMatchTrue + type SpecialValueMapType string + const SpecialValueMapTypeRange + const SpecialValueMapTypeRegex + const SpecialValueMapTypeSpecial + const SpecialValueMapTypeValue + type Target = map[string]any + type Threshold struct + Color string + Index *int32 + State *string + Value *float32 + type ThresholdsConfig struct + Mode ThresholdsMode + Steps []Threshold + type ThresholdsMode string + const ThresholdsModeAbsolute + const ThresholdsModePercentage + type TypedTarget struct + Datasource any + Expr string + Hide bool + Interval string + LegendFormat string + RefID string + func ParseTargets(values []Target) ([]TypedTarget, error) + type ValueMap struct + Options map[string]ValueMappingResult + Type ValueMapType + type ValueMapType string + const ValueMapTypeRange + const ValueMapTypeRegex + const ValueMapTypeSpecial + const ValueMapTypeValue + type ValueMappingResult struct + Color *string + Icon *string + Index *int32 + Text *string + type VariableHide int + const VariableHideN0 + const VariableHideN1 + const VariableHideN2 + type VariableModel struct + Datasource *DataSourceRef + Description *string + Error map[string]any + Global bool + Hide VariableHide + Id string + Index int + Label *string + Name string + Query *any + RootStateKey *string + SkipUrlSync bool + State LoadingState + Type VariableType + type VariableType string + const VariableTypeAdhoc + const VariableTypeConstant + const VariableTypeCustom + const VariableTypeDatasource + const VariableTypeInterval + const VariableTypeQuery + const VariableTypeSystem + const VariableTypeTextbox