The [[OnmsServer]] being connected to by this DAO.
Acknowledge an alarm.
Optional
user: stringThe user to ack the alarm as. (Only administrators have the right to do this.)
ReST v1+
Clear an alarm.
The [[OnmsAlarm]] or alarm ID.
ReST v1+
Close the ticket associated with the given alarm.
The [[OnmsAlarm]] or alarm ID.
ReST v2
Create a trouble ticket for the specified alarm.
The [[OnmsAlarm]] or alarm ID.
ReST v2
Delete the journal memo ticket associated with the given alarm.
The [[OnmsAlarm]] or alarm ID.
ReST v2
Delete the sticky memo ticket associated with the given alarm.
The [[OnmsAlarm]] or alarm ID.
ReST v2
Escalate an alarm.
The [[OnmsAlarm]] or alarm ID.
ReST v1+
Finds the values for the given propertyId, if it exists.
The propertyId to find the values for
Optional
options: anySome additional options. May be implementer dependent, such as limit, or value restrictions
A promise containing the values.
Protected
getProtected
getExtracts the data from an HTTP Request result.
the HTTP Request result.
An array of [[OnmsAlarm]] objects.
Private
getRetrieves the URL to the details page for the given alarm.
The [[OnmsAlarm]] or alarm ID.
URL on the associated OpenNMS server for the alarm details page.
Returns the Promise for a [[IFilterProcessor]].
Private
handleHandle response errors and automatically log "ticketing not enabled" responses.
the HTTP result error
Protected
onProtected
parseFetches the data from the result and verfifes that the dataFieldName
exists in the data property.
If it does not exist, an exception is thrown.
The result to fetch the data from
The property name (basically result.data[dataFieldName]
.
The path where the result was fetched from. This is for error handling
Callback function to convert each entry from result.data[dataFieldName]
.
Create or update the journal memo associated with the alarm.
The [[OnmsAlarm]] or alarm ID.
The memo body
Optional
user: stringThe user to update the memo as. (Only administrators have the right to do this.)
ReST v2
Create or update the sticky memo associated with the alarm.
The [[OnmsAlarm]] or alarm ID.
The memo body
Optional
user: stringThe user to update the memo as. (Only administrators have the right to do this.)
ReST v2
Get the list properties that can be used in queries.
ReST v2
Gets the property identified by the id if it exists.
The id to search the property by.
Protected
searchAssociate a ticket ID with the alarm.
The [[OnmsAlarm]] or alarm ID.
The ticket ID.
ReST v1+
Update the state of the ticket associated with the alarm.
The [[OnmsAlarm]] or alarm ID.
The ticket state.
ReST v1+
Protected
toProtected
toNotify OpenNMS it should fetch updated ticket state for an alarm from the remote ticketing system.
The [[OnmsAlarm]] or alarm ID.
ReST v2
Un-acknowledge an alarm.
The [[OnmsAlarm]] or alarm ID.
Optional
user: stringReST v1+
Protected
useProtected
visit"visits" a filter clause, applying it to the filter visitor
the clause to visit
the visitor impl to invoke
Protected
visitIterate over a Filter object and its children.
the filter to visit
the class to invoke while visiting the filter
Data access for [[OnmsAlarm]] objects.