Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datasource ¶
type Datasource interface { QueryTimeSeries(query *datasourcetypes.Query, start time.Time, end time.Time, step time.Duration) (*datasourcetypes.TimeSeries, error) ConvertMetricToQuery(metric datasourcetypes.Metric) (*datasourcetypes.Query, error) }
type DatasourceType ¶
type DatasourceType string
const (
PrometheusDatasource DatasourceType = "Prometheus"
)
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func (*Proxy) QueryTimeSeries ¶
func (p *Proxy) QueryTimeSeries(DatasourceName DatasourceType, metric datasourcetypes.Metric, start time.Time, end time.Time, step time.Duration) (*datasourcetypes.TimeSeries, error)
func (*Proxy) RegisterDatasource ¶
func (p *Proxy) RegisterDatasource(name DatasourceType, datasource Datasource)
Click to show internal directories.
Click to hide internal directories.