Versions in this module Expand all Collapse all v0 v0.3.0 May 6, 2022 Changes in this version + type ClientAuth struct + BearerToken string + Password string + Username string + func (auth *ClientAuth) Apply(req *http.Request) + type ClientProfile struct + Debug bool + DefaultLanguage string + DefaultLimit int64 + DefaultTimeoutSeconds int + DomainSuffix string + Region string + Scheme string + type Credentials struct + AppId string + ClusterId string + SecretId string + SecretKey string + type DataSourceType string + const MetricServerDataSource + const MockDataSource + const PrometheusDataSource + const QCloudMonitorDataSource + type History interface + QueryTimeSeries func(ctx context.Context, metricNamer metricnaming.MetricNamer, startTime time.Time, ...) ([]*common.TimeSeries, error) + type HistoryDataProxy struct + func NewHistoryDataProxy(historyProviders map[DataSourceType]History) *HistoryDataProxy + func (h *HistoryDataProxy) DeleteHistoryProvider(name DataSourceType) + func (h *HistoryDataProxy) QueryTimeSeries(ctx context.Context, metricNamer metricnaming.MetricNamer, startTime time.Time, ...) ([]*common.TimeSeries, error) + func (h *HistoryDataProxy) RegisterHistoryProvider(name DataSourceType, provider History) + type Interface interface + type LabelConverter interface + LabelConverter func(label string) string + type MockConfig struct + SeedFile string + type PromConfig struct + Address string + Auth ClientAuth + BRateLimit bool + FederatedClusterScope bool + InsecureSkipVerify bool + KeepAlive time.Duration + MaxPointsLimitPerTimeSeries int + QueryConcurrency int + ThanosDedup bool + ThanosPartial bool + Timeout time.Duration + type QCloudMonitorConfig struct + type RealTime interface + QueryLatestTimeSeries func(ctx context.Context, metricNamer metricnaming.MetricNamer) ([]*common.TimeSeries, error) + type RealTimeDataProxy struct + func NewRealTimeDataProxy(realtimeProviders map[DataSourceType]RealTime) *RealTimeDataProxy + func (r *RealTimeDataProxy) DeleteRealTimeProvider(name DataSourceType) + func (r *RealTimeDataProxy) QueryLatestTimeSeries(ctx context.Context, metricNamer metricnaming.MetricNamer) ([]*common.TimeSeries, error) + func (r *RealTimeDataProxy) RegisterRealTimeProvider(name DataSourceType, provider RealTime)