@Component(value="scheduledOutagesRestService") @Path(value="sched-outages") public class ScheduledOutagesRestService extends OnmsRestService
ScheduledOutagesRestService class.
Node and Interface status (the requests return true or false):
OnmsRestService.ComparisonOperation
Modifier and Type | Field and Description |
---|---|
protected CollectdConfigFactory |
m_collectdConfigFactory |
protected EventProxy |
m_eventProxy |
protected PollOutagesConfigFactory |
m_pollOutagesConfigFactory |
DEFAULT_LIMIT
Constructor and Description |
---|
ScheduledOutagesRestService() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addOutageToCollector(javax.ws.rs.core.UriInfo uriInfo,
String outageName,
String packageName) |
javax.ws.rs.core.Response |
addOutageToNotifications(javax.ws.rs.core.UriInfo uriInfo,
String outageName) |
javax.ws.rs.core.Response |
addOutageToPoller(javax.ws.rs.core.UriInfo uriInfo,
String outageName,
String packageName) |
javax.ws.rs.core.Response |
addOutageToThresholder(javax.ws.rs.core.UriInfo uriInfo,
String outageName,
String packageName) |
javax.ws.rs.core.Response |
deleteOutage(String outageName) |
Outage |
getOutage(String outageName) |
Outages |
getOutages() |
String |
isInterfaceInOutage(String ipAddr) |
String |
isInterfaceInOutage(String outageName,
String ipAddr) |
String |
isNodeInOutage(int nodeId) |
String |
isNodeInOutage(String outageName,
Integer nodeId) |
javax.ws.rs.core.Response |
removeOutageFromCollector(String outageName,
String packageName) |
javax.ws.rs.core.Response |
removeOutageFromNotifications(String outageName) |
javax.ws.rs.core.Response |
removeOutageFromPoller(String outageName,
String packageName) |
javax.ws.rs.core.Response |
removeOutageFromThresholder(String outageName,
String packageName) |
javax.ws.rs.core.Response |
saveOrUpdateOutage(javax.ws.rs.core.UriInfo uriInfo,
Outage newOutage) |
applyQueryFilters, applyQueryFilters, getBadRequestResponse, getBeanWrapperForClass, getException, getException, getNumericValue, getRedirectUri, readLock, readUnlock, removeParameter, removeParameter, setProperties, writeLock, writeUnlock
@Autowired protected PollOutagesConfigFactory m_pollOutagesConfigFactory
@Autowired protected CollectdConfigFactory m_collectdConfigFactory
@Autowired @Qualifier(value="eventProxy") protected EventProxy m_eventProxy
@GET @Produces(value={"application/xml","application/json","application/atom+xml"}) public Outages getOutages()
@GET @Path(value="{outageName}") @Produces(value={"application/xml","application/json","application/atom+xml"}) public Outage getOutage(@PathParam(value="outageName") String outageName) throws IllegalArgumentException
IllegalArgumentException
@POST @Consumes(value={"application/xml","application/json"}) public javax.ws.rs.core.Response saveOrUpdateOutage(@Context javax.ws.rs.core.UriInfo uriInfo, Outage newOutage)
@DELETE @Path(value="{outageName}") public javax.ws.rs.core.Response deleteOutage(@PathParam(value="outageName") String outageName)
@PUT @Path(value="{outageName}/collectd/{packageName}") public javax.ws.rs.core.Response addOutageToCollector(@Context javax.ws.rs.core.UriInfo uriInfo, @PathParam(value="outageName") String outageName, @PathParam(value="packageName") String packageName)
@DELETE @Path(value="{outageName}/collectd/{packageName}") public javax.ws.rs.core.Response removeOutageFromCollector(@PathParam(value="outageName") String outageName, @PathParam(value="packageName") String packageName)
@PUT @Path(value="{outageName}/pollerd/{packageName}") public javax.ws.rs.core.Response addOutageToPoller(@Context javax.ws.rs.core.UriInfo uriInfo, @PathParam(value="outageName") String outageName, @PathParam(value="packageName") String packageName)
@DELETE @Path(value="{outageName}/pollerd/{packageName}") public javax.ws.rs.core.Response removeOutageFromPoller(@PathParam(value="outageName") String outageName, @PathParam(value="packageName") String packageName)
@PUT @Path(value="{outageName}/threshd/{packageName}") public javax.ws.rs.core.Response addOutageToThresholder(@Context javax.ws.rs.core.UriInfo uriInfo, @PathParam(value="outageName") String outageName, @PathParam(value="packageName") String packageName)
@DELETE @Path(value="{outageName}/threshd/{packageName}") public javax.ws.rs.core.Response removeOutageFromThresholder(@PathParam(value="outageName") String outageName, @PathParam(value="packageName") String packageName)
@PUT @Path(value="{outageName}/notifd") public javax.ws.rs.core.Response addOutageToNotifications(@Context javax.ws.rs.core.UriInfo uriInfo, @PathParam(value="outageName") String outageName)
@DELETE @Path(value="{outageName}/notifd") public javax.ws.rs.core.Response removeOutageFromNotifications(@PathParam(value="outageName") String outageName)
@GET @Path(value="{outageName}/nodeInOutage/{nodeId}") @Produces(value="text/plain") public String isNodeInOutage(@PathParam(value="outageName") String outageName, @PathParam(value="nodeId") Integer nodeId)
@GET @Path(value="nodeInOutage/{nodeId}") @Produces(value="text/plain") public String isNodeInOutage(@PathParam(value="nodeId") int nodeId)
@GET @Path(value="{outageName}/interfaceInOutage/{ipAddr}") @Produces(value="text/plain") public String isInterfaceInOutage(@PathParam(value="outageName") String outageName, @PathParam(value="ipAddr") String ipAddr)
Copyright © 2016. All rights reserved.