necessary actions (#276)

This commit is contained in:
Michael Quigley 2023-03-23 17:16:35 -04:00 committed by Kenneth Bingham
parent fdefa11db4
commit baa6c4e7dd
No known key found for this signature in database
GPG Key ID: 31709281860130B6

View File

@ -13,13 +13,22 @@ import (
)
type Agent struct {
cfg *Config
ifx *influxReader
zCfg *zrokEdgeSdk.Config
str *store.Store
queue chan *metrics.Usage
close chan struct{}
join chan struct{}
cfg *Config
ifx *influxReader
zCfg *zrokEdgeSdk.Config
str *store.Store
queue chan *metrics.Usage
acctWarningEnforce []AccountAction
acctLimitEnforce []AccountAction
acctLimitRelax []AccountAction
envWarningEnforce []EnvironmentAction
envLimitEnforce []EnvironmentAction
envLimitRelax []EnvironmentAction
shrWarningEnforce []ShareAction
shrLimitEnforce []ShareAction
shrLimitRelax []ShareAction
close chan struct{}
join chan struct{}
}
func NewAgent(cfg *Config, ifxCfg *metrics.InfluxConfig, zCfg *zrokEdgeSdk.Config, str *store.Store) (*Agent, error) {