diff options
Diffstat (limited to 'pkg/metrics/statistics-provider.go')
-rw-r--r-- | pkg/metrics/statistics-provider.go | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/pkg/metrics/statistics-provider.go b/pkg/metrics/statistics-provider.go index 0f826bc..381ba5c 100644 --- a/pkg/metrics/statistics-provider.go +++ b/pkg/metrics/statistics-provider.go @@ -57,15 +57,14 @@ func FetchCurrentStatistics(res http.ResponseWriter, req *http.Request) { var statReport oapicodegen.StatisticsReport - statReport.DecisionSuccessCount = totalDecisionSuccessCountRef() statReport.DecisionFailureCount = TotalDecisionFailureCountRef() - statReport.TotalErrorCount = totalErrorCountRef() - statReport.DeployFailureCount = totalDeployFailureCountRef() - statReport.DeploySuccessCount = totalDeploySuccessCountRef() - statReport.UndeployFailureCount = totalUndeployFailureCountRef() - statReport.UndeploySuccessCount = totalUndeploySuccessCountRef() - statReport.TotalPoliciesCount = totalPoliciesCountRef() + statReport.TotalErrorCount = totalErrorCountRef() + statReport.DeployFailureCount = totalDeployFailureCountRef() + statReport.DeploySuccessCount = totalDeploySuccessCountRef() + statReport.UndeployFailureCount = totalUndeployFailureCountRef() + statReport.UndeploySuccessCount = totalUndeploySuccessCountRef() + statReport.TotalPoliciesCount = totalPoliciesCountRef() // not implemented hardcoding the values to zero // will be implemeneted in phase-2 |