Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EventDAO

Hierarchy

Index

Constructors

constructor

Properties

Protected http

http: IOnmsHTTP

the HTTP implementation to use

Methods

find

  • get an event, given a filter

    Parameters

    Returns Promise<OnmsEvent[]>

get

  • get an event, given the event's ID

    Parameters

    • id: number

    Returns Promise<OnmsEvent>

Protected getApiVersion

  • getApiVersion(): 1 | 2
  • retrieve the API version from the underlying server

    Returns 1 | 2

Protected getCount

  • getCount(data: any): number
  • extract the count or totalCount values from response data

    Parameters

    • data: any

    Returns number

Protected getFilterProcessor

  • getFilterProcessor(): any
  • retrieve filter processor for the current API version

    Returns any

Protected getOptions

Protected toDate

  • toDate(from: any): any
  • convert the given value to a date, or undefined if it cannot be converted

    Parameters

    • from: any

    Returns any

Protected toNumber

  • toNumber(from: any): number
  • convert the given value to a number, or undefined if it cannot be converted

    Parameters

    • from: any

    Returns number

Generated using TypeDoc