Documentation ¶
Index ¶
- type API
- func (_m *API) AlertManagers(ctx context.Context) (v1.AlertManagersResult, error)
- func (_m *API) Alerts(ctx context.Context) (v1.AlertsResult, error)
- func (_m *API) CleanTombstones(ctx context.Context) error
- func (_m *API) Config(ctx context.Context) (v1.ConfigResult, error)
- func (_m *API) DeleteSeries(ctx context.Context, matches []string, startTime time.Time, endTime time.Time) error
- func (_m *API) Flags(ctx context.Context) (v1.FlagsResult, error)
- func (_m *API) LabelNames(ctx context.Context) ([]string, v1.Warnings, error)
- func (_m *API) LabelValues(ctx context.Context, label string) (model.LabelValues, v1.Warnings, error)
- func (_m *API) Metadata(ctx context.Context, metric string, limit string) (map[string][]v1.Metadata, error)
- func (_m *API) Query(ctx context.Context, query string, ts time.Time) (model.Value, v1.Warnings, error)
- func (_m *API) QueryRange(ctx context.Context, query string, r v1.Range) (model.Value, v1.Warnings, error)
- func (_m *API) Rules(ctx context.Context) (v1.RulesResult, error)
- func (_m *API) Series(ctx context.Context, matches []string, startTime time.Time, endTime time.Time) ([]model.LabelSet, v1.Warnings, error)
- func (_m *API) Snapshot(ctx context.Context, skipHead bool) (v1.SnapshotResult, error)
- func (_m *API) Targets(ctx context.Context) (v1.TargetsResult, error)
- func (_m *API) TargetsMetadata(ctx context.Context, matchTarget string, metric string, limit string) ([]v1.MetricMetadata, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
API is an autogenerated mock type for the API type
func (*API) AlertManagers ¶
AlertManagers provides a mock function with given fields: ctx
func (*API) CleanTombstones ¶
CleanTombstones provides a mock function with given fields: ctx
func (*API) DeleteSeries ¶
func (_m *API) DeleteSeries(ctx context.Context, matches []string, startTime time.Time, endTime time.Time) error
DeleteSeries provides a mock function with given fields: ctx, matches, startTime, endTime
func (*API) LabelNames ¶
LabelNames provides a mock function with given fields: ctx
func (*API) LabelValues ¶
func (_m *API) LabelValues(ctx context.Context, label string) (model.LabelValues, v1.Warnings, error)
LabelValues provides a mock function with given fields: ctx, label
func (*API) Metadata ¶
func (_m *API) Metadata(ctx context.Context, metric string, limit string) (map[string][]v1.Metadata, error)
Metadata provides a mock function with given fields: ctx, metric, limit
func (*API) Query ¶
func (_m *API) Query(ctx context.Context, query string, ts time.Time) (model.Value, v1.Warnings, error)
Query provides a mock function with given fields: ctx, query, ts
func (*API) QueryRange ¶
func (_m *API) QueryRange(ctx context.Context, query string, r v1.Range) (model.Value, v1.Warnings, error)
QueryRange provides a mock function with given fields: ctx, query, r
func (*API) Series ¶
func (_m *API) Series(ctx context.Context, matches []string, startTime time.Time, endTime time.Time) ([]model.LabelSet, v1.Warnings, error)
Series provides a mock function with given fields: ctx, matches, startTime, endTime