Versions in this module Expand all Collapse all v1 v1.10.2 Oct 20, 2023 v1.10.1 Mar 17, 2023 v1.10.0 Aug 23, 2022 Changes in this version type Annotation + Color string v1.9.4 Mar 22, 2022 Changes in this version type AlertNodes + IsNoRecoveries bool v1.9.3 Jan 25, 2022 v1.9.2 Jan 25, 2022 v1.9.1 Oct 8, 2021 Changes in this version + const ErrAlertNotFound + const ErrAnnotationNotFound + const ErrAuthentication + const ErrCannotDeleteDefaultOrganization + const ErrConfigNotFound + const ErrDashboardInvalid + const ErrDashboardNotFound + const ErrInvalidAxis + const ErrInvalidCellOptionsColumns + const ErrInvalidCellOptionsSort + const ErrInvalidCellOptionsText + const ErrInvalidCellQueryType + const ErrInvalidColor + const ErrInvalidColorType + const ErrInvalidLegend + const ErrInvalidLegendOrient + const ErrInvalidLegendType + const ErrLayoutInvalid + const ErrLayoutNotFound + const ErrMappingNotFound + const ErrOrganizationAlreadyExists + const ErrOrganizationConfigNotFound + const ErrOrganizationNotFound + const ErrProtoboardInvalid + const ErrProtoboardNotFound + const ErrServerInvalid + const ErrServerNotFound + const ErrSourceInvalid + const ErrSourceNotFound + const ErrUninitialized + const ErrUpstreamTimeout + const ErrUserAlreadyExists + const ErrUserNotFound + const InfluxDB + const InfluxDBv2 + const InfluxEnterprise + const InfluxRelay + const MappingWildcard + func ValidateAnnotationTagKey(tagKey string) error + type AlertNodes struct + Alerta []*Alerta + BigPanda []*BigPanda + Email []*Email + Exec []*Exec + IsStateChangesOnly bool + Kafka []*Kafka + Log []*Log + OpsGenie []*OpsGenie + OpsGenie2 []*OpsGenie + PagerDuty []*PagerDuty + PagerDuty2 []*PagerDuty + Posts []*Post + Pushover []*Pushover + Sensu []*Sensu + ServiceNow []*ServiceNow + Slack []*Slack + TCPs []*TCP + Talk []*Talk + Teams []*Teams + Telegram []*Telegram + UseFlapping bool + VictorOps []*VictorOps + Zenoss []*Zenoss + func (n *AlertNodes) MarshalJSON() ([]byte, error) + type AlertRule struct + AlertNodes AlertNodes + Created time.Time + DBRPs []DBRP + Details string + Error string + Every string + Executing bool + ID string + LastEnabled time.Time + Message string + Modified time.Time + Name string + Query *QueryConfig + Status string + TICKScript TICKScript + TemplateID string + Trigger string + TriggerValues TriggerValues + Type string + Vars map[string]client.Var + type Alerta struct + Environment string + Event string + Group string + Origin string + Resource string + Service []string + Token string + Value string + type Allowances []string + type Annotation struct + EndTime time.Time + ID string + StartTime time.Time + Tags AnnotationTags + Text string + type AnnotationStore interface + Add func(context.Context, *Annotation) (*Annotation, error) + All func(ctx context.Context, start, stop time.Time, filters []*AnnotationTagFilter) ([]Annotation, error) + Delete func(ctx context.Context, id string) error + Get func(ctx context.Context, id string) (*Annotation, error) + Update func(context.Context, *Annotation) error + type AnnotationTagFilter struct + Comparator string + Key string + Value string + func (f *AnnotationTagFilter) String() string + type AnnotationTags map[string]string + func (t AnnotationTags) Valid() error + type Assets interface + Handler func() http.Handler + type AuthConfig struct + SuperAdminNewUsers bool + type Axis struct + Base string + Bounds []string + Label string + LegacyBounds [2]int64 + Prefix string + Scale string + Suffix string + type BigPanda struct + AppKey string + PrimaryProperty string + SecondaryProperty string + type BuildInfo struct + Commit string + Version string + type BuildStore interface + Get func(context.Context) (BuildInfo, error) + Update func(context.Context, BuildInfo) error + type Cell struct + Axes map[string]Axis + CellColors []CellColor + H int32 + I string + Name string + Queries []Query + Type string + W int32 + X int32 + Y int32 + type CellColor struct + Hex string + ID string + Name string + Type string + Value string + type ColumnEncoding struct + Name string + Type string + Value string + type Config struct + Auth AuthConfig + type ConfigStore interface + Get func(context.Context) (*Config, error) + Update func(context.Context, *Config) error + type DBRP struct + DB string + RP string + type Dashboard struct + Cells []DashboardCell + ID DashboardID + Name string + Organization string + Templates []Template + func (d *Dashboard) UnmarshalJSON(data []byte) error + type DashboardCell struct + Axes map[string]Axis + CellColors []CellColor + DecimalPlaces DecimalPlaces + FieldOptions []RenamableField + H int32 + ID string + Legend Legend + Name string + Note string + NoteVisibility string + Queries []DashboardQuery + TableOptions TableOptions + TimeFormat string + Type string + W int32 + X int32 + Y int32 + type DashboardID int + type DashboardQuery struct + Command string + Label string + QueryConfig QueryConfig + Range *Range + Shifts []TimeShift + Source string + Type string + type DashboardsStore interface + Add func(context.Context, Dashboard) (Dashboard, error) + All func(context.Context) ([]Dashboard, error) + Delete func(context.Context, Dashboard) error + Get func(ctx context.Context, id DashboardID) (Dashboard, error) + Update func(context.Context, Dashboard) error + type Database struct + Duration string + Name string + Replication int32 + ShardDuration string + type Databases interface + AllDB func(context.Context) ([]Database, error) + AllRP func(context.Context, string) ([]RetentionPolicy, error) + Connect func(context.Context, *Source) error + CreateDB func(context.Context, *Database) (*Database, error) + CreateRP func(context.Context, string, *RetentionPolicy) (*RetentionPolicy, error) + DropDB func(context.Context, string) error + DropRP func(context.Context, string, string) error + GetMeasurements func(ctx context.Context, db string, limit, offset int) ([]Measurement, error) + UpdateRP func(context.Context, string, string, *RetentionPolicy) (*RetentionPolicy, error) + type DecimalPlaces struct + Digits int32 + IsEnforced bool + type DurationRange struct + Lower string + Upper string + type Email struct + To []string + type Environment struct + CustomAutoRefresh string + HostPageDisabled bool + TelegrafSystemInterval time.Duration + type Error string + func (e Error) Error() string + type Exec struct + Command []string + type Field struct + Alias string + Args []Field + Type string + Value interface{} + type GroupBy struct + Tags []string + Time string + type ID interface + Generate func() (string, error) + type KVClient interface + ConfigStore func() ConfigStore + DashboardsStore func() DashboardsStore + MappingsStore func() MappingsStore + OrganizationConfigStore func() OrganizationConfigStore + OrganizationsStore func() OrganizationsStore + ServersStore func() ServersStore + SourcesStore func() SourcesStore + UsersStore func() UsersStore + type Kafka struct + Cluster string + Template string + Topic string + type KapacitorNode struct + Args []string + Name string + Properties []KapacitorProperty + type KapacitorProperty struct + Args []string + Name string + type Layout struct + Application string + Autoflow bool + Cells []Cell + ID string + Measurement string + type LayoutsStore interface + All func(context.Context) ([]Layout, error) + Get func(ctx context.Context, ID string) (Layout, error) + type Legend struct + Orientation string + Type string + type Log struct + FilePath string + type LogViewerColumn struct + Encodings []ColumnEncoding + Name string + Position int32 + type LogViewerConfig struct + Columns []LogViewerColumn + type Logger interface + Debug func(...interface{}) + Error func(...interface{}) + Info func(...interface{}) + WithField func(string, interface{}) Logger + Writer func() *io.PipeWriter + type Mapping struct + ID string + Organization string + Provider string + ProviderOrganization string + Scheme string + type MappingsStore interface + Add func(context.Context, *Mapping) (*Mapping, error) + All func(context.Context) ([]Mapping, error) + Delete func(context.Context, *Mapping) error + Get func(context.Context, string) (*Mapping, error) + Update func(context.Context, *Mapping) error + type Measurement struct + Name string + type OpsGenie struct + Recipients []string + Teams []string + type Organization struct + DefaultRole string + ID string + Name string + type OrganizationConfig struct + LogViewer LogViewerConfig + OrganizationID string + type OrganizationConfigStore interface + All func(ctx context.Context) ([]OrganizationConfig, error) + FindOrCreate func(ctx context.Context, orgID string) (*OrganizationConfig, error) + Put func(context.Context, *OrganizationConfig) error + type OrganizationQuery struct + ID *string + Name *string + type OrganizationsStore interface + Add func(context.Context, *Organization) (*Organization, error) + All func(context.Context) ([]Organization, error) + CreateDefault func(ctx context.Context) error + DefaultOrganization func(ctx context.Context) (*Organization, error) + Delete func(context.Context, *Organization) error + Get func(context.Context, OrganizationQuery) (*Organization, error) + Update func(context.Context, *Organization) error + type PagerDuty struct + ServiceKey string + type Permission struct + Allowed Allowances + Name string + Scope Scope + type Permissions []Permission + type Point struct + Database string + Fields map[string]interface{} + Measurement string + RetentionPolicy string + Tags map[string]string + Time int64 + type Post struct + Headers map[string]string + URL string + type Protoboard struct + Data ProtoboardData + ID string + Meta ProtoboardMeta + type ProtoboardCell struct + Axes map[string]Axis + CellColors []CellColor + DecimalPlaces DecimalPlaces + FieldOptions []RenamableField + H int32 + Legend Legend + Name string + Note string + NoteVisibility string + Queries []DashboardQuery + TableOptions TableOptions + TimeFormat string + Type string + W int32 + X int32 + Y int32 + type ProtoboardData struct + Cells []ProtoboardCell + Templates []Template + type ProtoboardMeta struct + Author string + DashboardVersion string + Description string + Icon string + License string + Measurements []string + Name string + URL string + Version string + type ProtoboardsStore interface + All func(context.Context) ([]Protoboard, error) + Get func(ctx context.Context, ID string) (Protoboard, error) + type Pushover struct + Device string + Sound string + Title string + URL string + URLTitle string + UserKey string + type Query struct + Command string + DB string + Epoch string + GroupBys []string + Label string + RP string + Range *Range + UUID string + Wheres []string + type QueryConfig struct + AreTagsAccepted bool + Database string + Fields []Field + Fill string + GroupBy GroupBy + ID string + Measurement string + Range *DurationRange + RawText *string + RetentionPolicy string + Shifts []TimeShift + Tags map[string][]string + type Range struct + Lower int64 + Upper int64 + type RenamableField struct + DisplayName string + InternalName string + Visible bool + type Response interface + MarshalJSON func() ([]byte, error) + type RetentionPolicy struct + Default bool + Duration string + Name string + Replication int32 + ShardDuration string + type Role struct + Name string + Organization string + Permissions Permissions + Users []User + type RolesStore interface + Add func(context.Context, *Role) (*Role, error) + All func(context.Context) ([]Role, error) + Delete func(context.Context, *Role) error + Get func(ctx context.Context, name string) (*Role, error) + Update func(context.Context, *Role) error + type Router interface + DELETE func(string, http.HandlerFunc) + GET func(string, http.HandlerFunc) + Handler func(string, string, http.Handler) + PATCH func(string, http.HandlerFunc) + POST func(string, http.HandlerFunc) + PUT func(string, http.HandlerFunc) + type Scope string + const AllScope + const DBScope + type Sensu struct + Handlers []string + Source string + type Server struct + Active bool + ID int + InsecureSkipVerify bool + Metadata map[string]interface{} + Name string + Organization string + Password string + SrcID int + Type string + URL string + Username string + type ServersStore interface + Add func(context.Context, Server) (Server, error) + All func(context.Context) ([]Server, error) + Delete func(context.Context, Server) error + Get func(ctx context.Context, ID int) (Server, error) + Update func(context.Context, Server) error + type ServiceNow struct + MessageKey string + MetricName string + Node string + Resource string + Source string + Type string + type Slack struct + Channel string + IconEmoji string + Username string + Workspace string + type Source struct + Default bool + DefaultRP string + ID int + InsecureSkipVerify bool + MetaURL string + Name string + Organization string + Password string + Role string + SharedSecret string + Telegraf string + Type string + URL string + Username string + Version string + type SourcesStore interface + Add func(context.Context, Source) (Source, error) + All func(context.Context) ([]Source, error) + Delete func(context.Context, Source) error + Get func(ctx context.Context, ID int) (Source, error) + Update func(context.Context, Source) error + type TCP struct + Address string + type TICKScript string + type TSDBStatus interface + Connect func(ctx context.Context, src *Source) error + Ping func(context.Context) error + Type func(context.Context) (string, error) + Version func(context.Context) (string, error) + type TableOptions struct + FixFirstColumn bool + SortBy RenamableField + VerticalTimeAxis bool + Wrapping string + type Talk struct + type Teams struct + ChannelURL string + type Telegram struct + ChatID string + DisableNotification bool + DisableWebPagePreview bool + ParseMode string + type Template struct + ID TemplateID + Label string + Query *TemplateQuery + SourceID string + Type string + type TemplateID string + type TemplateQuery struct + Command string + DB string + FieldKey string + Flux string + Measurement string + RP string + TagKey string + type TemplateValue struct + Key string + Selected bool + Type string + Value string + type TemplateVar struct + Values []TemplateValue + Var string + type Ticker interface + Generate func(AlertRule) (TICKScript, error) + type TimeSeries interface + Connect func(context.Context, *Source) error + Permissions func(context.Context) Permissions + Query func(context.Context, Query) (Response, error) + Roles func(context.Context) (RolesStore, error) + Users func(context.Context) UsersStore + Write func(context.Context, []Point) error + type TimeShift struct + Label string + Quantity string + Unit string + type TriggerValues struct + Change string + Operator string + Period string + RangeValue string + Shift string + Value string + type User struct + ID uint64 + Name string + Passwd string + Permissions Permissions + Provider string + Roles []Role + Scheme string + SuperAdmin bool + type UserQuery struct + ID *uint64 + Name *string + Provider *string + Scheme *string + type UsersStore interface + Add func(context.Context, *User) (*User, error) + All func(context.Context) ([]User, error) + Delete func(context.Context, *User) error + Get func(ctx context.Context, q UserQuery) (*User, error) + Num func(context.Context) (int, error) + Update func(context.Context, *User) error + type VictorOps struct + RoutingKey string + type Zenoss struct + Action string + Component string + Device string + EventClass string + EventClassKey string + Method string + TID int64 + Type string