Repository navigation
feat(metrics): add total records count to MetricsBean (#400) - #421
Merged
aaronbrethorst merged 2 commits intoMar 21, 2025
Merged
Conversation
0xaboomar
force-pushed
the
feature/realtime-update-count
branch
from
March 17, 2025 22:19
a3ee36c to
bd7eccd
Compare
0xaboomar
force-pushed
the
feature/realtime-update-count
branch
from
March 17, 2025 22:23
bd7eccd to
9fba593
Compare
- Added a new field realtimeTripCountsTotal to store the count of records included in the last real-time update on a per-agency basis. - Implemented populateTotalRecordsFields() method to populate the realtimeTripCountsTotal field in MetricsBean. - Added getTotalRecordsCounts() method to calculate the total records count for each agency. - Added getTotalRecordCount() method to retrieve the total record count for a specified agency and optional feed. - Updated getMetrics() method to include the new metric.
…sBean - Renamed a variable in MetricsBean along with its getter and setter for clarity. - Added necessary comments in MetricsBeanServiceImpl.java to improve code documentation.
0xaboomar
force-pushed
the
feature/realtime-update-count
branch
from
March 20, 2025 22:54
2df1c9e to
cefc970
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This pull request adds support for calculating and storing the count of records included in the last real-time update on a per-agency basis in the
MetricsBean.Resolves issue #400: Add Metric: realtime trip total.
Changes
MetricsBean.java
realtimeRecordsTotalto store the count of records included in the last real-time update on a per-agency basis.MetricsBeanServiceImpl.java
populateTotalRecordsFieldsmethod to populate therealtimeRecordsTotalfield inMetricsBean.getTotalRecordsCountsmethod to calculate the total records count for each agency.getTotalRecordCountmethod to retrieve the total record count for a specified agency and optional feed.getMetricsmethod to include the new metric.