Class AveragesResource
- java.lang.Object
-
- org.onebusaway.watchdog.api.MetricResource
-
- org.onebusaway.watchdog.api.LongTermAveragesResource
-
- org.onebusaway.watchdog.api.realtime.AveragesResource
-
@Path("/metric/realtime/delta") public class AveragesResource extends LongTermAveragesResource
-
-
Field Summary
-
Fields inherited from class org.onebusaway.watchdog.api.LongTermAveragesResource
_log, currentTripCt, earliestTripIdx, matchedTripsAvg, recentMatchedTrips, recentUnmatchedTrips, ROLLING_AVERAGE_COUNT, unmatchedTripsAvg
-
Fields inherited from class org.onebusaway.watchdog.api.MetricResource
_configuration, _mapper
-
-
Constructor Summary
Constructors Constructor Description AveragesResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsegetBusesInServicePct(String agencyId, String feedId, String routeId)javax.ws.rs.core.ResponsegetLocationInvalidPct(String agencyId, String feedId)javax.ws.rs.core.ResponsegetLocationTotalPct(String agencyId, String feedId)javax.ws.rs.core.ResponsegetLongTermDeltaMatched(String agencyId, String feedId)javax.ws.rs.core.ResponsegetLongTermDeltaMatchedPct(String agencyId, String feedId)javax.ws.rs.core.ResponsegetLongTermDeltaUnmatched(String agencyId, String feedId)javax.ws.rs.core.ResponsegetLongTermDeltaUnmatchedPct(String agencyId, String feedId)javax.ws.rs.core.ResponsegetMatchedStops(String agencyId, String feedId)javax.ws.rs.core.ResponsegetTripScheduleRealtimeDiff(String agencyId, String feedId, String routeId)javax.ws.rs.core.ResponsegetTripTotalPct(String agencyId, String feedId)javax.ws.rs.core.ResponsegetUnmatchedStops(String agencyId, String feedId)-
Methods inherited from class org.onebusaway.watchdog.api.LongTermAveragesResource
getAvgByAgency, getDataSources, getMatchedTripsAvg, getUnmatchedTripsAvg, refresh, setMetricConfiguration, setRefreshInterval, setScheduledExecutorService, start, stop, updateLongTermMatchedTrips, updateLongTermUnmatchedTrips
-
Methods inherited from class org.onebusaway.watchdog.api.MetricResource
error, error, getAddedTripIdCt, getCancelledTripIdCt, getInvalidLocation, getLocationTotal, getMatchedStopCt, getScheduledTrips, getScheduledTrips, getTDS, getTotalRecordCount, getUnmatchedStopCt, getUnmatchedTripIdCt, getValidRealtimeTripIds, ok
-
-
-
-
Method Detail
-
getLongTermDeltaMatched
@Path("{agencyId}/average-matched-trips") @GET @Produces("application/json") public javax.ws.rs.core.Response getLongTermDeltaMatched(@PathParam("agencyId") String agencyId, @QueryParam("feedId") String feedId)
-
getLongTermDeltaMatchedPct
@Path("{agencyId}/average-matched-trips-pct") @GET @Produces("application/json") public javax.ws.rs.core.Response getLongTermDeltaMatchedPct(@PathParam("agencyId") String agencyId, @QueryParam("feedId") String feedId)
-
getLongTermDeltaUnmatched
@Path("{agencyId}/average-unmatched-trips") @GET @Produces("application/json") public javax.ws.rs.core.Response getLongTermDeltaUnmatched(@PathParam("agencyId") String agencyId, @QueryParam("feedId") String feedId)
-
getLongTermDeltaUnmatchedPct
@Path("{agencyId}/average-unmatched-trips-pct") @GET @Produces("application/json") public javax.ws.rs.core.Response getLongTermDeltaUnmatchedPct(@PathParam("agencyId") String agencyId, @QueryParam("feedId") String feedId)
-
getBusesInServicePct
@Path("{agencyId}/buses-in-service-pct") @GET @Produces("application/json") public javax.ws.rs.core.Response getBusesInServicePct(@PathParam("agencyId") String agencyId, @QueryParam("feedId") String feedId, @QueryParam("routeId") String routeId)
-
getMatchedStops
@Path("{agencyId}/matched-stops-pct") @GET @Produces("application/json") public javax.ws.rs.core.Response getMatchedStops(@PathParam("agencyId") String agencyId, @QueryParam("feedId") String feedId)
-
getUnmatchedStops
@Path("{agencyId}/unmatched-stops-pct") @GET @Produces("application/json") public javax.ws.rs.core.Response getUnmatchedStops(@PathParam("agencyId") String agencyId, @QueryParam("feedId") String feedId)
-
getTripTotalPct
@Path("{agencyId}/trip-total-pct") @GET @Produces("application/json") public javax.ws.rs.core.Response getTripTotalPct(@PathParam("agencyId") String agencyId, @QueryParam("feedId") String feedId)
-
getTripScheduleRealtimeDiff
@Path("{agencyId}/trip-schedule-realtime-diff-pct") @GET @Produces("application/json") public javax.ws.rs.core.Response getTripScheduleRealtimeDiff(@PathParam("agencyId") String agencyId, @QueryParam("feedId") String feedId, @QueryParam("routeId") String routeId)
-
getLocationTotalPct
@Path("{agencyId}/location-total-pct") @GET @Produces("application/json") public javax.ws.rs.core.Response getLocationTotalPct(@PathParam("agencyId") String agencyId, @QueryParam("feedId") String feedId)
-
-