Documentation ¶
Index ¶
- type FakePrometheusClient
- func (c *FakePrometheusClient) Query(_ context.Context, t pmodel.Time, query prom.Selector) (prom.QueryResult, error)
- func (c *FakePrometheusClient) QueryRange(_ context.Context, r prom.Range, query prom.Selector) (prom.QueryResult, error)
- func (c *FakePrometheusClient) Series(_ context.Context, interval pmodel.Interval, selectors ...prom.Selector) ([]prom.Series, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakePrometheusClient ¶
type FakePrometheusClient struct { // AcceptableInterval is the interval in which to return queries AcceptableInterval pmodel.Interval // ErrQueries are queries that result in an error (whether from Query or Series) ErrQueries map[prom.Selector]error // Series are non-error responses to partial Series calls SeriesResults map[prom.Selector][]prom.Series // QueryResults are non-error responses to Query QueryResults map[prom.Selector]prom.QueryResult }
FakePrometheusClient is a fake instance of prom.Client
func (*FakePrometheusClient) Query ¶
func (c *FakePrometheusClient) Query(_ context.Context, t pmodel.Time, query prom.Selector) (prom.QueryResult, error)
func (*FakePrometheusClient) QueryRange ¶
func (c *FakePrometheusClient) QueryRange(_ context.Context, r prom.Range, query prom.Selector) (prom.QueryResult, error)
Click to show internal directories.
Click to hide internal directories.