Class SituationFeedbackDAO

Data access for [[OnmsSituationFeedback]] objects.

Hierarchy

  • BaseDAO
    • SituationFeedbackDAO

Constructors

Accessors

Methods

  • A convenience method to make it easy for implementers to extract the count (or totalCount) values from response data.

    Parameters

    • data: any
    • Optionalstatus: number

    Returns number

  • Retrieve the tags for a given prefix

    Parameters

    • prefix: string

      the prefix associated with the tags

    Returns Promise<string[]>

  • Called whenever the OpenNMS server has changed.

    Parameters

    Returns void

  • Submit Correlation Feedback for a Situation.

    Parameters

    • feedback: OnmsSituationFeedback[]

      The [[OnmsSituationFeedback]].

    • situationId: number

      The alarmId of the Situation to use when querying.

    Returns Promise<void>

    ReST v1

  • Convert the given value to a date, or undefined if it cannot be converted.

    Parameters

    • from: any

    Returns Moment

    use Util.toDate instead.

  • Convert the given value to a number, or undefined if it cannot be converted.

    Parameters

    • from: any

    Returns number

    use Util.toNumber instead.

  • Whether or not to use JSON when making ReST requests.

    Returns boolean