mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-14 12:49:54 +05:00
Add event from SessionS to ThresholdS
This commit is contained in:
committed by
Dan Christian Bogos
parent
9c5b611ea9
commit
eb8bcd7508
@@ -399,7 +399,7 @@ func (fsev FSEvent) V1AuthorizeArgs() (args *sessions.V1AuthorizeArgs) {
|
||||
args.GetAttributes = true
|
||||
}
|
||||
if strings.Index(subsystems, utils.MetaThresholds) != -1 {
|
||||
args.ProcessThreshold = utils.BoolPointer(true)
|
||||
*args.ProcessThreshold = true
|
||||
}
|
||||
return
|
||||
}
|
||||
@@ -434,7 +434,7 @@ func (fsev FSEvent) V1InitSessionArgs() (args *sessions.V1InitSessionArgs) {
|
||||
args.GetAttributes = true
|
||||
}
|
||||
if strings.Index(subsystems, utils.MetaThresholds) != -1 {
|
||||
args.ProcessThreshold = utils.BoolPointer(true)
|
||||
*args.ProcessThreshold = true
|
||||
}
|
||||
return
|
||||
}
|
||||
@@ -466,7 +466,7 @@ func (fsev FSEvent) V1TerminateSessionArgs() (args *sessions.V1TerminateSessionA
|
||||
args.ReleaseResources = true
|
||||
}
|
||||
if strings.Index(subsystems, utils.MetaThresholds) != -1 {
|
||||
args.ProcessThreshold = utils.BoolPointer(true)
|
||||
*args.ProcessThreshold = true
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user