@Component(value="outageRestService") @Path(value="outages") public class OutageRestService extends OnmsRestService
REST service to the OpenNMS Outage OnmsOutage
data.
This service supports getting the list of outages or one specific outage by ID:
Example 1: Query List of outages.
curl -v -X GET -u admin:admin http://localhost:8980/opennms/rest/outages
OnmsRestService.ComparisonOperation
DEFAULT_LIMIT
Constructor and Description |
---|
OutageRestService() |
Modifier and Type | Method and Description |
---|---|
OnmsOutageCollection |
forNodeId(javax.ws.rs.core.UriInfo uriInfo,
int nodeId)
forNodeId
|
String |
getCount()
getCount
|
javax.ws.rs.core.Response |
getOutage(javax.ws.rs.core.UriInfo uriInfo,
String outageId)
getOutage
|
OnmsOutageCollection |
getOutages(javax.ws.rs.core.UriInfo uriInfo)
getOutages
|
applyQueryFilters, applyQueryFilters, getBadRequestResponse, getBeanWrapperForClass, getException, getException, getNumericValue, getRedirectUri, readLock, readUnlock, removeParameter, removeParameter, setProperties, writeLock, writeUnlock
@GET @Produces(value={"application/xml","application/json","application/atom+xml"}) @Path(value="{outageId}") @Transactional public javax.ws.rs.core.Response getOutage(@Context javax.ws.rs.core.UriInfo uriInfo, @PathParam(value="outageId") String outageId)
getOutage
outageId
- a String
object.OnmsOutage
object.@GET @Produces(value="text/plain") @Path(value="count") @Transactional public String getCount()
getCount
String
object.@GET @Produces(value={"application/xml","application/json","application/atom+xml"}) @Transactional public OnmsOutageCollection getOutages(@Context javax.ws.rs.core.UriInfo uriInfo)
getOutages
OnmsOutageCollection
object.@GET @Produces(value={"application/xml","application/json","application/atom+xml"}) @Transactional @Path(value="forNode/{nodeId}") public OnmsOutageCollection forNodeId(@Context javax.ws.rs.core.UriInfo uriInfo, @PathParam(value="nodeId") int nodeId)
forNodeId
nodeId
- a int.OnmsOutageCollection
object.Copyright © 2016. All rights reserved.