From b26040ccfe38c2a9548844813363af74260dc756 Mon Sep 17 00:00:00 2001 From: DanB Date: Mon, 27 Nov 2017 15:17:12 +0100 Subject: [PATCH] Destination in APierV1.GetCost --- apier/v1/costs.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/apier/v1/costs.go b/apier/v1/costs.go index 6b7fadc83..b2dbf092b 100644 --- a/apier/v1/costs.go +++ b/apier/v1/costs.go @@ -26,11 +26,12 @@ import ( ) type AttrGetCost struct { - Tenant string - Category string - Subject string - AnswerTime time.Time - Usage string + Tenant string + Category string + Subject string + AnswerTime time.Time + Destination string + Usage string } func (apier *ApierV1) GetCost(attrs AttrGetCost, ec *engine.EventCost) error { @@ -43,6 +44,7 @@ func (apier *ApierV1) GetCost(attrs AttrGetCost, ec *engine.EventCost) error { Category: attrs.Category, Tenant: attrs.Tenant, Subject: attrs.Subject, + Destination: attrs.Destination, TimeStart: attrs.AnswerTime, TimeEnd: attrs.AnswerTime.Add(usage), DurationIndex: usage,