public class AlarmsWebResource
extends org.onosproject.rest.AbstractWebResource
| Modifier and Type | Field and Description |
|---|---|
static String |
ALARM_NOT_FOUND |
| Constructor and Description |
|---|
AlarmsWebResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getAlarm(String id)
Get specified alarm.
|
javax.ws.rs.core.Response |
getAlarms(boolean includeCleared)
Get all alarms.
|
javax.ws.rs.core.Response |
update(String alarmIdPath,
InputStream stream)
Update book-keeping fields on the alarm.
|
public static final String ALARM_NOT_FOUND
public javax.ws.rs.core.Response getAlarms(boolean includeCleared)
includeCleared - include recently cleared alarms in responsepublic javax.ws.rs.core.Response getAlarm(String id)
id - ONOS allocated identifierpublic javax.ws.rs.core.Response update(String alarmIdPath, InputStream stream)
alarmIdPath - alarm id pathstream - input JSONCopyright © 2015. All rights reserved.