Package org.onebusaway.watchdog.api
Class MetricResource
- java.lang.Object
-
- org.onebusaway.watchdog.api.MetricResource
-
- Direct Known Subclasses:
AgencyResource,AgencyResource,AlarmResource,AssignmentConflictResource,LocationResource,LongTermAveragesResource,RootResource,StopResource,TripResource,TripResource
public abstract class MetricResource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected MetricConfiguration_configurationprotected static org.slf4j.Logger_logprotected com.fasterxml.jackson.databind.ObjectMapper_mapper
-
Constructor Summary
Constructors Constructor Description MetricResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Stringerror(String metricName, Exception e)protected Stringerror(String metricName, String errorMessage)protected intgetAddedTripIdCt(String agencyId, String feedId)protected intgetCancelledTripIdCt(String agencyId, String feedId)protected List<MonitoredDataSource>getDataSources()protected intgetInvalidLocation(String agencyId, String feedId)protected intgetLocationTotal(String agencyId, String feedId)protected intgetMatchedStopCt(String agencyId, String feedId)protected intgetScheduledTrips(String agencyId)protected intgetScheduledTrips(String agencyId, String routeId)protected org.onebusaway.transit_data.services.TransitDataServicegetTDS()protected intgetTotalRecordCount(String agencyId, String feedId)protected intgetUnmatchedStopCt(String agencyId, String feedId)protected intgetUnmatchedTripIdCt(String agencyId, String feedId)protected List<String>getValidRealtimeTripIds(String agencyId, String feedId)protected Stringok(String metricName, Object value)voidsetMetricConfiguration(MetricConfiguration mc)
-
-
-
Field Detail
-
_log
protected static org.slf4j.Logger _log
-
_configuration
protected MetricConfiguration _configuration
-
_mapper
protected com.fasterxml.jackson.databind.ObjectMapper _mapper
-
-
Method Detail
-
setMetricConfiguration
@Autowired public void setMetricConfiguration(MetricConfiguration mc)
-
getDataSources
protected List<MonitoredDataSource> getDataSources()
-
getTDS
protected org.onebusaway.transit_data.services.TransitDataService getTDS()
-
getScheduledTrips
protected int getScheduledTrips(String agencyId)
-
getValidRealtimeTripIds
protected List<String> getValidRealtimeTripIds(String agencyId, String feedId)
-
-