Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface { // GetSingleMetric will get one single metric value at a point in time. GetSingleMetric(ctx context.Context, query model.Query, t time.Time) (*model.Metric, error) // GetSingleInstantMetric will get one single metric value in real time. GetSingleInstantMetric(ctx context.Context, query model.Query) (*model.Metric, error) // GetRangeMetrics will get N metrics based in a time range. GetRangeMetrics(ctx context.Context, query model.Query, start, end time.Time, step time.Duration) ([]model.MetricSeries, error) }
Controller is what has the domain logic, the one that can translate from the views to the models.
func NewController ¶
func NewController(gatherer metric.Gatherer) Controller
NewController returns a new controller.
Click to show internal directories.
Click to hide internal directories.