From 5b38235a505ffc06d7a206570156284427c083a0 Mon Sep 17 00:00:00 2001 From: Allan Nava Date: Fri, 3 Feb 2023 10:34:23 +0100 Subject: [PATCH] fix response CollectedAt int64 `json:"collectedAt"` --- haivision/stats/response.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/haivision/stats/response.go b/haivision/stats/response.go index d3901db..6c51330 100644 --- a/haivision/stats/response.go +++ b/haivision/stats/response.go @@ -297,7 +297,7 @@ type DestinationStatisticsSrtConnectionsModel struct { } */ type ResponseRouteStatistics struct { - CollectedAt string `json:"collectedAt"` + CollectedAt int64 `json:"collectedAt"` Route struct { Name string `json:"name"` ElapsedRunningTime string `json:"elapsedRunningTime"` @@ -319,7 +319,7 @@ type ResponseRouteStatistics struct { } */ type ResponseSourceStatistics struct { - CollectedAt string `json:"collectedAt"` + CollectedAt int64 `json:"collectedAt"` Source SourceStatisticsModel `json:"source"` } @@ -345,6 +345,6 @@ type ResponseDestinationStatistics struct { } */ type ResponseSrtClientStatistics struct { - CollectedAt string `json:"collectedAt"` + CollectedAt int64 `json:"collectedAt"` ClientStat []interface{} `json:"clientStat"` }