Update the implementation for sent_query_count

The nsd metrics implementation needs to be updated to support
the new field sent_query_count on NetworkNsdReported.

Bug: 287546772
Test: m
Merged-In: Ie1d8d5f2cce4f6040dcfb980db6ab11dfe01fb72
Change-Id: Ie1d8d5f2cce4f6040dcfb980db6ab11dfe01fb72
This commit is contained in:
Paul Hu 2023-08-09 17:05:29 +08:00
commit 600bd89258
2 changed files with 5 additions and 1 deletions

View file

@ -66,7 +66,8 @@ public class NetworkNsdReportedMetrics {
event.getFoundServiceCount(),
event.getFoundCallbackCount(),
event.getLostCallbackCount(),
event.getRepliedRequestsCount());
event.getRepliedRequestsCount(),
event.getSentQueryCount());
}
}

View file

@ -61,6 +61,9 @@ message NetworkNsdReported {
// Record query service count before unregistered service
optional int32 replied_requests_count = 11;
// Record sent query count before stopped discovery
optional int32 sent_query_count = 12;
}
/**