Class MetricResource

    • Field Detail

      • _log

        protected static org.slf4j.Logger _log
      • _mapper

        protected com.fasterxml.jackson.databind.ObjectMapper _mapper
    • Constructor Detail

      • MetricResource

        public MetricResource()
    • Method Detail

      • setMetricConfiguration

        @Autowired
        public void setMetricConfiguration​(MetricConfiguration mc)
      • getTDS

        protected org.onebusaway.transit_data.services.TransitDataService getTDS()
      • getTotalRecordCount

        protected int getTotalRecordCount​(String agencyId,
                                          String feedId)
      • getScheduledTrips

        protected int getScheduledTrips​(String agencyId)
      • getScheduledTrips

        protected int getScheduledTrips​(String agencyId,
                                        String routeId)
      • getValidRealtimeTripIds

        protected List<String> getValidRealtimeTripIds​(String agencyId,
                                                       String feedId)
      • getUnmatchedTripIdCt

        protected int getUnmatchedTripIdCt​(String agencyId,
                                           String feedId)
      • getAddedTripIdCt

        protected int getAddedTripIdCt​(String agencyId,
                                       String feedId)
      • getCancelledTripIdCt

        protected int getCancelledTripIdCt​(String agencyId,
                                           String feedId)
      • getMatchedStopCt

        protected int getMatchedStopCt​(String agencyId,
                                       String feedId)
      • getUnmatchedStopCt

        protected int getUnmatchedStopCt​(String agencyId,
                                         String feedId)
      • getLocationTotal

        protected int getLocationTotal​(String agencyId,
                                       String feedId)
      • getInvalidLocation

        protected int getInvalidLocation​(String agencyId,
                                         String feedId)