From 4af3af33c5b40110d27a9910054f67adaa77d761 Mon Sep 17 00:00:00 2001 From: DanB Date: Thu, 5 Jun 2014 12:58:44 +0200 Subject: [PATCH] Initial CdrStatsConfig sample --- config/cdrstatsconfig.go | 41 ++++++++++++++++++++++++++++++++++++++++ config/config.go | 1 + 2 files changed, 42 insertions(+) create mode 100644 config/cdrstatsconfig.go diff --git a/config/cdrstatsconfig.go b/config/cdrstatsconfig.go new file mode 100644 index 000000000..9561b8b6d --- /dev/null +++ b/config/cdrstatsconfig.go @@ -0,0 +1,41 @@ +/* +Real-time Charging System for Telecom & ISP environments +Copyright (C) 2012-2014 ITsysCOM GmbH + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see +*/ + +package config + +import ( + "time" +) + +type CdrStatsConfig struct { + QueuedItems int64 // Number of items in the stats buffer + SetupInterval []time.Time // 2 or less items (>= start interval,< stop_interval) + TOR []string + CdrHost []string + CdrSource []string + ReqType []string + Direction []string + Tenant []string + Category []string + Account []string + Subject []string + DestinationPrefix []string + UsageInterval []time.Duration // 2 or less items (>= Usage, =Cost, + CdrStatsConfigs []*CdrStatsConfig // Active cdr stats configuration instances CdreDefaultInstance *CdreConfig // Will be used in the case no specific one selected by API CdrcEnabled bool // Enable CDR client functionality CdrcCdrs string // Address where to reach CDR server