Documentation
¶
Index ¶
- type Aggregator
- type AppManager
- func (am *AppManager) GetPolicies() map[string]*models.AppPolicy
- func (am *AppManager) QueryAppMetrics(appID string, metricType string, start int64, end int64, order db.OrderType) ([]*models.AppMetric, error)
- func (am *AppManager) SaveMetricToCache(metric *models.AppMetric) bool
- func (am *AppManager) Start()
- func (am *AppManager) Stop()
- type Consumer
- type GetPoliciesFunc
- type MetricPoller
- type QueryAppMetricsFunc
- type SaveAppMetricToCacheFunc
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
}
func NewAggregator ¶
func NewAggregator(logger lager.Logger, clock clock.Clock, aggregatorExecuteInterval time.Duration, saveInterval time.Duration, appMonitorChan chan *models.AppMonitor, getPolicies GetPoliciesFunc, saveAppMetricToCache SaveAppMetricToCacheFunc, defaultStatWindowSecs int, appMetricChan chan *models.AppMetric, appMetricDB db.AppMetricDB) (*Aggregator, error)
func (*Aggregator) Start ¶
func (a *Aggregator) Start()
func (*Aggregator) Stop ¶
func (a *Aggregator) Stop()
type AppManager ¶
type AppManager struct {
// contains filtered or unexported fields
}
func NewAppManager ¶
func (*AppManager) GetPolicies ¶
func (am *AppManager) GetPolicies() map[string]*models.AppPolicy
func (*AppManager) QueryAppMetrics ¶
func (*AppManager) SaveMetricToCache ¶
func (am *AppManager) SaveMetricToCache(metric *models.AppMetric) bool
func (*AppManager) Start ¶
func (am *AppManager) Start()
func (*AppManager) Stop ¶
func (am *AppManager) Stop()
type GetPoliciesFunc ¶
type MetricPoller ¶
type MetricPoller struct {
// contains filtered or unexported fields
}
func NewMetricPoller ¶
func NewMetricPoller(logger lager.Logger, metricCollectorUrl string, appChan chan *models.AppMonitor, httpClient *http.Client, appMetricChan chan *models.AppMetric) *MetricPoller
func (*MetricPoller) Start ¶
func (m *MetricPoller) Start()
func (*MetricPoller) Stop ¶
func (m *MetricPoller) Stop()
type QueryAppMetricsFunc ¶
Click to show internal directories.
Click to hide internal directories.