Package org.opennms.web.rest.v1
Class AlarmStatsRestService
- java.lang.Object
-
- org.opennms.web.rest.v1.OnmsRestService
-
- org.opennms.web.rest.v1.AlarmRestServiceBase
-
- org.opennms.web.rest.v1.AlarmStatsRestService
-
@Component("alarmStatsRestService") @Transactional public class AlarmStatsRestService extends AlarmRestServiceBase
Basic Web Service using REST for NCS Components- Author:
- Matt Brozowski
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AlarmStatsRestService.AlarmStatistics
static class
AlarmStatsRestService.AlarmStatisticsBySeverity
-
Nested classes/interfaces inherited from class org.opennms.web.rest.v1.OnmsRestService
OnmsRestService.ComparisonOperation
-
-
Field Summary
-
Fields inherited from class org.opennms.web.rest.v1.AlarmRestServiceBase
m_severityPattern
-
Fields inherited from class org.opennms.web.rest.v1.OnmsRestService
DEFAULT_LIMIT
-
-
Constructor Summary
Constructors Constructor Description AlarmStatsRestService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static CriteriaBuilder
getCriteriaBuilder(OnmsSeverity severity)
protected OnmsAlarm
getNewestAcknowledged(OnmsSeverity severity)
protected OnmsAlarm
getOldestAcknowledged(OnmsSeverity severity)
AlarmStatsRestService.AlarmStatistics
getStats(javax.ws.rs.core.UriInfo uriInfo)
protected AlarmStatsRestService.AlarmStatistics
getStats(javax.ws.rs.core.UriInfo uriInfo, OnmsSeverity severity)
AlarmStatsRestService.AlarmStatisticsBySeverity
getStatsForEachSeverity(javax.ws.rs.core.UriInfo uriInfo, java.lang.String severitiesString)
-
Methods inherited from class org.opennms.web.rest.v1.AlarmRestServiceBase
getCriteria, getCriteriaBuilder, translateParameters
-
Methods inherited from class org.opennms.web.rest.v1.OnmsRestService
applyQueryFilters, applyQueryFilters, getBadRequestResponse, getBeanWrapperForClass, getException, getException, getNumericValue, getRedirectUri, readLock, readUnlock, removeParameter, removeParameter, setProperties, writeLock, writeUnlock
-
-
-
-
Method Detail
-
getStats
public AlarmStatsRestService.AlarmStatistics getStats(@Context javax.ws.rs.core.UriInfo uriInfo)
-
getStatsForEachSeverity
public AlarmStatsRestService.AlarmStatisticsBySeverity getStatsForEachSeverity(@Context javax.ws.rs.core.UriInfo uriInfo, java.lang.String severitiesString)
-
getStats
protected AlarmStatsRestService.AlarmStatistics getStats(javax.ws.rs.core.UriInfo uriInfo, OnmsSeverity severity)
-
getNewestAcknowledged
protected OnmsAlarm getNewestAcknowledged(OnmsSeverity severity)
-
getOldestAcknowledged
protected OnmsAlarm getOldestAcknowledged(OnmsSeverity severity)
-
getCriteriaBuilder
protected static CriteriaBuilder getCriteriaBuilder(OnmsSeverity severity)
-
-