Documentation ¶
Index ¶
- func NewQueryVectorResponseMock(seriesCount int) interface{}
- func NewSeriesResponseMock(seriesCount int) interface{}
- type Client
- func (s *Client) ClearSourceTenants()
- func (s *Client) DumpCache()
- func (s *Client) Labels(sourceTenants []string) ([]string, error)
- func (s *Client) Query(query string, sourceTenants []string) ([]*model.Sample, int, time.Duration, error)
- func (s *Client) QueryStats(query string, sourceTenants []string) (int, time.Duration, error)
- func (s *Client) SelectorMatch(selector string, sourceTenants []string) ([]model.LabelSet, error)
- func (s *Client) SelectorMatchingSeries(selector string, sourceTenants []string) (int, error)
- func (s *Client) SetSourceTenants(sourceTenants []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQueryVectorResponseMock ¶
func NewQueryVectorResponseMock(seriesCount int) interface{}
func NewSeriesResponseMock ¶
func NewSeriesResponseMock(seriesCount int) interface{}
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClientMock ¶
func NewClientWithRoundTripper ¶
func NewClientWithRoundTripper(promConfig config.PrometheusConfig, tripper http.RoundTripper) (*Client, error)
func (*Client) ClearSourceTenants ¶
func (s *Client) ClearSourceTenants()
func (*Client) QueryStats ¶
func (*Client) SelectorMatch ¶
func (*Client) SelectorMatchingSeries ¶
func (*Client) SetSourceTenants ¶
Click to show internal directories.
Click to hide internal directories.