pespin submitted this change.
statsd: Support f_statsd_snapshot() API when using VTY-triggered stats report
Until now that API was only used in testsuites which relied on
time-trigerred reports. This commit also supports getting a given
snapshots if the IUT is configured to only trigger a report based on VTY
request.
Change-Id: I87d34e2f365d3b71ce328c08999be43d482326ad
---
M library/StatsD_Checker.ttcnpp
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/library/StatsD_Checker.ttcnpp b/library/StatsD_Checker.ttcnpp
index db5c77b..b2b8332 100644
--- a/library/StatsD_Checker.ttcnpp
+++ b/library/StatsD_Checker.ttcnpp
@@ -188,6 +188,9 @@
if (not since_last_snapshot) {
STATS.clear;
}
+#ifdef STATSD_HAVE_VTY
+ f_vty_transceive(STATSVTY, "stats report");
+#endif
T_statsd.start;
while (seen_remain > 0) {
To view, visit change 38615. To unsubscribe, or for help writing mail filters, visit settings.