Documentation
¶
Overview ¶
Package aggregator contains the data structures responsible for aggregating payloads recevied by the server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregator ¶
type Aggregator struct {
// contains filtered or unexported fields
}
Aggregator holds all Projects
func (*Aggregator) PrintHealthMetrics ¶
func (a *Aggregator) PrintHealthMetrics()
PrintHealthMetrics renders some simple health metrics
func (*Aggregator) Process ¶
func (a *Aggregator) Process(project string, payload *payload.Payload)
Process aggreates a payload
func (*Aggregator) ProjectNames ¶
func (a *Aggregator) ProjectNames() []string
ProjectNames returns a list of projects that currently exist
func (*Aggregator) SendHourlyMetrics ¶
func (a *Aggregator) SendHourlyMetrics(handler MetricHandler)
SendHourlyMetrics passes all metrics to MetricHandler
func (*Aggregator) SendMetrics ¶
func (a *Aggregator) SendMetrics(handler MetricHandler)
SendMetrics passes all metrics to MetricHandler
type MetricHandler ¶
A MetricHandler takes care of sending metrics to somewhere
Click to show internal directories.
Click to hide internal directories.