_log.error("no configured data sources");
return Response.ok(error("unmatched-trips", "no configured data sources")).build();
}
for (MonitoredDataSource mds : getDataSources()) {
MonitoredResult result = mds.getMonitoredResult();
if (result == null) continue;
for (String mAgencyId : result.getAgencyIds()) {
_log.debug("examining agency=" + mAgencyId + " with unmatched trips=" + result.getUnmatchedTripIds().size());
if (agencyId.equals(mAgencyId)) {
unmatchedTrips += result.getUnmatchedTripIds().size();
}
}
}
return Response.ok(ok("unmatched-trips", unmatchedTrips)).build();
} catch (Exception e) {