From baa6c4e7dd12828d06b2eafaeced899752c470e9 Mon Sep 17 00:00:00 2001 From: Michael Quigley Date: Thu, 23 Mar 2023 17:16:35 -0400 Subject: [PATCH] necessary actions (#276) --- controller/limits/agent.go | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/controller/limits/agent.go b/controller/limits/agent.go index 0237ca99..ec2186e5 100644 --- a/controller/limits/agent.go +++ b/controller/limits/agent.go @@ -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) {