Limit statistics record count 65/122565/3
authorJim Hahn <jrh3@att.com>
Tue, 13 Jul 2021 18:02:30 +0000 (14:02 -0400)
committerJim Hahn <jrh3@att.com>
Thu, 15 Jul 2021 14:30:38 +0000 (10:30 -0400)
commit708e3bf02095bc7185b44cc30e91e293eebb4fd2
tree2e5a07a5a80be958c6feb48f665d386d77169d75
parent2d1e09960eefa671711c5b1830c5994037f9cab5
Limit statistics record count

Modified PAP, for Honolulu only, to limit the number of statistics
records retrieved from the DB.
Also added the recordCount parameter to the REST APIs, because otherwise
it would only return one record.

Per review comments:
- removed default value annotation; relying on the Provider code to
  change "0" to a reasonable default

Issue-ID: POLICY-3485
Change-Id: Ib0820cfda95672f1bc6f879dfd2ac172e7b42f0d
(cherry picked from commit 190b75c59bcc6f250446b627a96e4a12de52278f)
Signed-off-by: Jim Hahn <jrh3@att.com>
main/src/main/java/org/onap/policy/pap/main/rest/StatisticsRestControllerV1.java
main/src/main/java/org/onap/policy/pap/main/rest/StatisticsRestProvider.java