Documentation ¶
Index ¶
- type Client
- func (c *Client) Explore(ctx context.Context, f Filter, tenantID string, start, end time.Time) ([]string, error)
- func (c *Client) ExportPipe(ctx context.Context, url string, f Filter) (io.ReadCloser, error)
- func (c *Client) GetSourceTenants(ctx context.Context, f Filter) ([]string, error)
- func (c *Client) ImportPipe(ctx context.Context, dstURL string, pr *io.PipeReader) error
- type Filter
- type LabelValues
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { AuthCfg *auth.Config Addr string ExtraLabels []string HTTPClient *http.Client }
Client is an HTTP client for exporting and importing time series via native protocol.
func (*Client) Explore ¶
func (c *Client) Explore(ctx context.Context, f Filter, tenantID string, start, end time.Time) ([]string, error)
Explore finds metric names by provided filter from api/v1/label/__name__/values
func (*Client) ExportPipe ¶
ExportPipe makes request by provided filter and return io.ReadCloser which can be used to get data
func (*Client) GetSourceTenants ¶
GetSourceTenants discovers tenants by provided filter
func (*Client) ImportPipe ¶
ImportPipe uses pipe reader in request to process data
type LabelValues ¶
LabelValues represents series from api/v1/series response
Click to show internal directories.
Click to hide internal directories.