Versions in this module Expand all Collapse all v0 v0.9.1 Nov 3, 2018 Changes in this version + const ErrClient + const ErrServer type Error + Detail string v0.9.0 Oct 15, 2018 Changes in this version + const ErrBadData + const ErrBadResponse + const ErrCanceled + const ErrExec + const ErrTimeout + const HealthBad + const HealthGood + const HealthUnknown + type API interface + AlertManagers func(ctx context.Context) (AlertManagersResult, error) + CleanTombstones func(ctx context.Context) error + Config func(ctx context.Context) (ConfigResult, error) + DeleteSeries func(ctx context.Context, matches []string, startTime time.Time, endTime time.Time) error + Flags func(ctx context.Context) (FlagsResult, error) + LabelValues func(ctx context.Context, label string) (model.LabelValues, error) + Query func(ctx context.Context, query string, ts time.Time) (model.Value, error) + QueryRange func(ctx context.Context, query string, r Range) (model.Value, error) + Series func(ctx context.Context, matches []string, startTime time.Time, endTime time.Time) ([]model.LabelSet, error) + Snapshot func(ctx context.Context, skipHead bool) (SnapshotResult, error) + Targets func(ctx context.Context) (TargetsResult, error) + func NewAPI(c api.Client) API + type ActiveTarget struct + DiscoveredLabels model.LabelSet + Health HealthStatus + Labels model.LabelSet + LastError string + LastScrape time.Time + ScrapeURL string + type AlertManager struct + URL string + type AlertManagersResult struct + Active []AlertManager + Dropped []AlertManager + type ConfigResult struct + YAML string + type DroppedTarget struct + DiscoveredLabels model.LabelSet + type Error struct + Msg string + Type ErrorType + func (e *Error) Error() string + type ErrorType string + type FlagsResult map[string]string + type HealthStatus string + type Range struct + End time.Time + Start time.Time + Step time.Duration + type SnapshotResult struct + Name string + type TargetsResult struct + Active []ActiveTarget + Dropped []DroppedTarget v0.9.0-pre1 Aug 31, 2017