added *min/*max ddc triggers

fixes #266
This commit is contained in:
Radu Ioan Fericean
2015-11-09 19:00:09 +02:00
parent d871a37ffa
commit 39e34453a2
2 changed files with 3 additions and 1 deletions

View File

@@ -32,7 +32,7 @@ import (
type ActionTrigger struct {
Id string // for visual identification
ThresholdType string //*min_counter, *max_counter, *min_balance, *max_balance
// stats: *min_asr, *max_asr, *min_acd, *max_acd, *min_tcd, *max_tcd, *min_acc, *max_acc, *min_tcc, *max_tcc
// stats: *min_asr, *max_asr, *min_acd, *max_acd, *min_tcd, *max_tcd, *min_acc, *max_acc, *min_tcc, *max_tcc, *min_ddc, *max_ddc
ThresholdValue float64
Recurrent bool // reset eexcuted flag each run
MinSleep time.Duration // Minimum duration between two executions in case of recurrent triggers

View File

@@ -48,6 +48,8 @@ var METRIC_TRIGGER_MAP = map[string]string{
"*max_acc": ACC,
"*min_tcc": TCC,
"*max_tcc": TCC,
"*min_ddc": DDC,
"*max_ddc": DDC,
}
// Simplified cdr structure containing only the necessary info