Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrSetStepTimeout = errors.New("unexpected error, setStep timeout")
var ReadUvarint = clickhouse.ReadUvarint
ReadUvarint reads unsigned int with variable length
Functions ¶
This section is empty.
Types ¶
type CHResponse ¶
CHResponse contains the parsed Data and From/Until timestamps
func (*CHResponse) ToMultiFetchResponseV2 ¶
func (c *CHResponse) ToMultiFetchResponseV2() (*v2pb.MultiFetchResponse, error)
ToMultiFetchResponseV2 returns protobuf v2pb.MultiFetchResponse message for given CHResponse
func (*CHResponse) ToMultiFetchResponseV3 ¶
func (c *CHResponse) ToMultiFetchResponseV3() (*v3pb.MultiFetchResponse, error)
ToMultiFetchResponseV3 returns protobuf v3pb.MultiFetchResponse message for given CHResponse
type CHResponses ¶
type CHResponses []CHResponse
CHResponses is a slice of CHResponse
func EmptyResponse ¶
func EmptyResponse() CHResponses
EmptyResponse returns an CHResponses with one element containing emptyData for the following encoding
func (*CHResponses) ToMultiFetchResponseV2 ¶
func (cc *CHResponses) ToMultiFetchResponseV2() (*v2pb.MultiFetchResponse, error)
ToMultiFetchResponseV2 returns protobuf v2pb.MultiFetchResponse message for given CHResponses
func (*CHResponses) ToMultiFetchResponseV3 ¶
func (cc *CHResponses) ToMultiFetchResponseV3() (*v3pb.MultiFetchResponse, error)
ToMultiFetchResponseV3 returns protobuf v3pb.MultiFetchResponse message for given CHResponses
type Data ¶
Data stores parsed response from ClickHouse server
func (*Data) GetAggregation ¶
GetAggregation returns the generic whisper compatible name for an aggregation of metric with ID id
type MultiTarget ¶
MultiTarget is a map of TimeFrame keys and targets slice of strings values
func MFRToMultiTarget ¶
func MFRToMultiTarget(v3Request *v3pb.MultiFetchRequest) MultiTarget
func (*MultiTarget) Fetch ¶
func (m *MultiTarget) Fetch(ctx context.Context, cfg *config.Config, chContext string) (CHResponses, error)
Fetch fetches the parsed ClickHouse data returns CHResponses