org.opennms.web.rest
Class OutageRestService

java.lang.Object
  extended by org.opennms.web.rest.OnmsRestService
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.opennms.web.rest.OnmsRestService
OnmsRestService.ComparisonOperation
 
Constructor Summary
OutageRestService()
           
 
Method Summary
 String getCount()
           
 OnmsOutage getOutage(String outageId)
           
 OnmsOutageCollection getOutages()
           
 
Methods inherited from class org.opennms.web.rest.OnmsRestService
addFiltersToCriteria, addOrdering, convertNameToPropertyName, log, setLimitOffset, setLimitOffset, setProperties, throwException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutageRestService

public OutageRestService()
Method Detail

getOutage

@Transactional
public OnmsOutage getOutage(String outageId)

getCount

@Transactional
public String getCount()

getOutages

@Transactional
public OnmsOutageCollection getOutages()


Copyright © 2009. All Rights Reserved.