org.opennms.web.rest
Class OutageRestService
java.lang.Object
org.opennms.web.rest.OnmsRestService
org.opennms.web.rest.OutageRestService
@Component
@PerRequest
@Scope(value="prototype")
public class OutageRestService
- extends OnmsRestService
TODO: Add functionality to getting outages by:
nodelabel, nodeid, foreignsource, foreignsource+foreignid, ipaddress, etc.
add filters for current, resolved, all
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
- Author:
- Craig Miskell
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OutageRestService
public OutageRestService()
getOutage
@Transactional
public OnmsOutage getOutage(String outageId)
getCount
@Transactional
public String getCount()
getOutages
@Transactional
public OnmsOutageCollection getOutages()
Copyright © 2009. All Rights Reserved.