Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OnmsCollectType

Represents an OpenNMS SNMP interface "should collect" type.

Hierarchy

Index

Constructors

constructor

  • construct an enum object with an id and label

    Parameters

    • id: string
    • label: string

    Returns OnmsCollectType

Accessors

id

  • get id(): T
  • get the index/id of this enum entry

    Returns T

index

  • get index(): T

label

  • get label(): string
  • get the label of this enum entry

    Returns string

Methods

isCollectionEnabled

  • isCollectionEnabled(): boolean
  • whether or not collection is enabled on the SNMP interface

    Returns boolean

toDisplayString

  • toDisplayString(): string
  • convert this enum to a string suitable for display

    Returns string

toJSON

  • toJSON(): object
  • convert to the JSON representation

    Returns object

    • id: T
    • label: string

toString

  • toString(): T
  • convert this enum to a string

    Returns T

Static forId

  • forId(id: string): any
  • given an ID, return the matching collect type object

    Parameters

    • id: string

    Returns any

Static forLabel

  • forLabel(label: string): any
  • given a label, return the matching collect type object

    Parameters

    • label: string

    Returns any

Generated using TypeDoc