Documentation
¶
Index ¶
- func IsSelectorValid(selector string) bool
- type Client
- func (c *Client) GetStep(from, to timeseries.Time) (timeseries.Duration, error)
- func (c *Client) Ping(ctx context.Context) error
- func (c *Client) Proxy(r *http.Request, w http.ResponseWriter)
- func (c *Client) QueryRange(ctx context.Context, query string, from, to timeseries.Time, ...) ([]model.MetricValues, error)
- type ClientConfig
- type Querier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSelectorValid ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(config ClientConfig) (*Client, error)
func (*Client) GetStep ¶
func (c *Client) GetStep(from, to timeseries.Time) (timeseries.Duration, error)
func (*Client) QueryRange ¶
func (c *Client) QueryRange(ctx context.Context, query string, from, to timeseries.Time, step timeseries.Duration) ([]model.MetricValues, error)
type ClientConfig ¶
type ClientConfig struct {
Url string
BasicAuth *utils.BasicAuth
TlsSkipVerify bool
ExtraSelector string
CustomHeaders []utils.Header
Step timeseries.Duration
Transport *http.Transport
}
func NewClientConfig ¶
func NewClientConfig(url string, step timeseries.Duration) ClientConfig
type Querier ¶
type Querier interface {
QueryRange(ctx context.Context, query string, from, to timeseries.Time, step timeseries.Duration) ([]model.MetricValues, error)
GetStep(from, to timeseries.Time) (timeseries.Duration, error)
}
Click to show internal directories.
Click to hide internal directories.