necessary actions (#276)

This commit is contained in:
Michael Quigley 2023-03-23 17:16:35 -04:00
parent 14c299ee80
commit fdc5154873
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

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) {