Documentation
¶
Index ¶
Constants ¶
View Source
const (
StepUndefined timeseries.Duration = 0
)
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() timeseries.Duration
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)
}
Click to show internal directories.
Click to hide internal directories.