Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NodeDAO

Data access for OnmsNode objects.

Hierarchy

Index

Constructors

constructor

Accessors

filterProcessor

http

Methods

fetch

  • Given a node, fetch all the sub-model objects for that node. (ipInterfaces, snmpInterfaces, etc.)

    Parameters

    Returns Promise<OnmsNode>

find

get

  • get(id: number, recurse?: boolean): Promise<OnmsNode>
  • Get an node, given the node's ID.

    Parameters

    • id: number

      The node's ID.

    • Default value recurse: boolean = false

      Optionally fetch all sub-model objects. (ipInterface, etc.)

    Returns Promise<OnmsNode>

Protected getApiVersion

  • getApiVersion(): number

Protected getCount

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

    Parameters

    • data: any

    Returns number

Protected getOptions

ipInterfaces

searchProperties

Protected searchPropertyPath

  • searchPropertyPath(): string

services

snmpInterfaces

Protected toDate

  • toDate(from: any): Moment | undefined

Protected toNumber

  • toNumber(from: any): number | undefined

Generated using TypeDoc