commit | d2be27372c1e3efb76e2edd648bcfab8945ea51f | [log] [tgz] |
---|---|---|
author | Rashmi Pujar <rashmi.pujar1@bell.ca> | Thu Mar 31 11:52:53 2022 -0400 |
committer | Rashmi Pujar <rashmi.pujar1@bell.ca> | Thu Mar 31 12:45:23 2022 -0400 |
tree | d137d765090e11de35dd32972b499718bc9f0fec | |
parent | 6c3a6abb7e18be81284866f61a54557474e643ed [diff] |
Bug fixes for APEX PDP metrics 1. APEX engine metrics were being initialized to 0 in the constructor which caused them to reset to 0. Hence, initialization is removed, and updates are done to metrics only upon: engineStart/Stop, executionEnter/Exit stages. 2. APEX engine Uptime was only updated when engine stopped, hence always 0. Also, uptime is redundant since it can be derived from lastStart timestamp and hence is removed as a metric. 3. Fixed a corner case bug which occurs when all policies are undeployed the counters are not correct. 4. Fix Unit tests Issue-ID: POLICY-4044 Signed-off-by: Rashmi Pujar <rashmi.pujar1@bell.ca> Change-Id: I4d875ff288cf8c242a1851eb105e56dc69b97883
Copyright (C) 2016-2018 Ericsson. All rights reserved. This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE Full license text at https://creativecommons.org/licenses/by/4.0/legalcode
This source repository contains the ONAP Policy APEX PDP Engine code. The settings file only needs to support the standard Maven repositories (e.g. central = http://repo1.maven.org/maven2/), and any proxy settings needed in your environment.
To build it using Maven 3, run: mvn clean install