Finish implementation for ees *file_csv format

This commit is contained in:
TeoV
2020-06-01 16:55:36 +03:00
committed by Dan Christian Bogos
parent 50511c0eab
commit 31387e2fe2
14 changed files with 612 additions and 291 deletions

View File

@@ -376,6 +376,7 @@ const (
MetaDispatcherHosts = "*dispatcher_hosts"
MetaFilters = "*filters"
MetaCDRs = "*cdrs"
MetaDC = "*dc"
MetaCaches = "*caches"
MetaCache = "*cache"
MetaGuardian = "*guardians"
@@ -2154,6 +2155,23 @@ const (
RoutesOffset = "RoutesOffset"
)
// EventExporter metrics
const (
NumberOfEvents = "NumberOfEvents"
TotalCost = "TotalCost"
PositiveExports = "PositiveExports"
NegativeExports = "NegativeExports"
FirstExpOrderID = "FirstExpOrderID"
LastExpOrderID = "LastExpOrderID"
FirstEventATime = "FirstEventATime"
LastEventATime = "LastEventATime"
TotalDuration = "TotalDuration"
TotalDataUsage = "TotalDataUsage"
TotalSMSUsage = "TotalSMSUsage"
TotalMMSUsage = "TotalMMSUsage"
TotalGenericUsage = "TotalGenericUsage"
)
func buildCacheInstRevPrefixes() {
CachePrefixToInstance = make(map[string]string)
for k, v := range CacheInstanceToPrefix {

View File

@@ -143,7 +143,7 @@ func (onm OrderedNavigableMap) Len() int {
return onm.nm.Len()
}
// FieldAsString returns thevalue from path as string
// FieldAsString returns the value from path as string
func (onm *OrderedNavigableMap) FieldAsString(fldPath []string) (str string, err error) {
var val NMInterface
val, err = onm.nm.Field(NewPathItems(fldPath))