DAO for accessing flow (Netflow/IPFIX/sFlow) data.

Hierarchy

  • BaseDAO
    • FlowDAO

Constructors

  • Construct a DAO instance.

    Parameters

    • impl: IOnmsHTTP | IHasHTTP

      The HTTP implementation to use. It is also legal to pass any object conforming to the [[IHasHTTP]] interface (like a [[Client]]).

    Returns FlowDAO

Accessors

Methods

  • Enumerate the applications matching the given prefix and filters.

    Parameters

    • Optionalprefix: string

      the prefix to match

    • Optionalstart: number

      the start of the timespan to query (defaults to 4 hours ago)

    • Optionalend: number

      the end of the timespan to query (defaults to now)

    • OptionalexporterNodeCriteria: string

      the node ID or foreignSource:foreignId tuple

    • OptionalifIndex: number

      filter for flows that came through this SNMP interface

    • Optionaldscp: string[]

      filter for flows with this Dscp value

    Returns Promise<string[]>

  • 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

  • Get used Dscp values for a specific interface

    Parameters

    • OptionalexporterNodeCriteria: string

      the node ID or foreignSource:foreignId tuple

    • OptionalifIndex: number

      the SNMP interface

    • Optionalstart: number

      the start of the timespan to query (defaults to 4 hours ago)

    • Optionalend: number

      the end of the timespan to query (defaults to now)

    Returns Promise<number[]>

  • Get detailed information about a specific node.

    Parameters

    • criteria: string

      the node ID or foreignSource:foreignId tuple

    • limit: number

      maximum number of interfaces to return (those with the most flows will be returned if the results are truncated)

    • Optionalstart: number

      the start of the timespan to query (defaults to 4 hours ago)

    • Optionalend: number

      the end of the timespan to query (defaults to now)

    Returns Promise<OnmsFlowExporter>

  • Get a summary of the nodes that have exported flows.

    Parameters

    • limit: number

      maximum number of exporters to return (those with the most flows will be returned if the results are truncated)

    • Optionalstart: number

      the start of the timespan to query (defaults to 4 hours ago)

    • Optionalend: number

      the end of the timespan to query (defaults to now)

    Returns Promise<OnmsFlowExporterSummary[]>

  • Enumerate all the hosts matching the given pattern and filters.

    Parameters

    • Optionalpattern: string

      the regex pattern to match

    • Optionalstart: number

      the start of the timespan to query (defaults to 4 hours ago)

    • Optionalend: number

      the end of the timespan to query (defaults to now)

    • OptionalexporterNodeCriteria: string

      the node ID or foreignSource:foreignId tuple

    • OptionalifIndex: number

      filter for flows that came through this SNMP interface

    • Optionaldscp: string[]

      filter for flows with this Dscp value

    Returns Promise<string[]>

  • Get time series data for the top N applications/protocols based on parameters.

    Parameters

    • Optionalapplications: string[]

      the applications to include

    • Optionalstart: number

      the start of the timespan to query (defaults to 4 hours ago)

    • Optionalend: number

      the end of the timespan to query (defaults to now)

    • Optionalstep: number

      the requested time interval between rows

    • OptionalincludeOther: boolean

      include an additional "other" result that represents everything that does not match the given applications

    • OptionalexporterNodeCriteria: string

      the node ID or foreignSource:foreignId tuple

    • OptionalifIndex: number

      filter for flows that came through this SNMP interface

    • Optionaldscp: string[]

      filter for flows with this Dscp value

    Returns Promise<OnmsFlowSeries>

  • Get time series data for the given conversations based on parameters.

    Parameters

    • Optionalconversations: string[]

      how many conversations' series to return

    • Optionalstart: number

      the start of the timespan to query (defaults to 4 hours ago)

    • Optionalend: number

      the end of the timespan to query (defaults to now)

    • Optionalstep: number

      the requested time interval between rows

    • OptionalincludeOther: boolean

      include an additional "other" result that represents everything that does not match the given conversations

    • OptionalexporterNodeCriteria: string

      the node ID or foreignSource:foreignId tuple

    • OptionalifIndex: number

      filter for flows that came through this SNMP interface

    • Optionaldscp: string[]

      filter for flows with this Dscp value

    • Optionalecn: string[]

    Returns Promise<OnmsFlowSeries>

  • Get time series data for DSCP based on parameters.

    Parameters

    • Optionalstart: number

      the start of the timespan to query (defaults to 4 hours ago)

    • Optionalend: number

      the end of the timespan to query (defaults to now)

    • Optionalstep: number

      the requested time interval between rows

    • OptionalexporterNodeCriteria: string

      the node ID or foreignSource:foreignId tuple

    • OptionalifIndex: number

      filter for flows that came through this SNMP interface

    • Optionaldscp: string[]

      filter for flows with this Dscp value

    Returns Promise<OnmsFlowSeries>

  • Get time series data for the given hosts based on parameters.

    Parameters

    • Optionalhosts: string[]

      the hosts to include

    • Optionalstart: number

      the start of the timespan to query (defaults to 4 hours ago)

    • Optionalend: number

      the end of the timespan to query (defaults to now)

    • Optionalstep: number

      the requested time interval between rows

    • OptionalincludeOther: boolean

      include an additional "other" result that represents everything that does not match the given hosts

    • OptionalexporterNodeCriteria: string

      the node ID or foreignSource:foreignId tuple

    • OptionalifIndex: number

      filter for flows that came through this SNMP interface

    • Optionaldscp: string[]

      filter for flows with this Dscp value

    Returns Promise<OnmsFlowSeries>

  • Get time series data for the top N applications/protocols based on parameters.

    Parameters

    • OptionalN: number

      how many applications' series to return

    • Optionalstart: number

      the start of the timespan to query (defaults to 4 hours ago)

    • Optionalend: number

      the end of the timespan to query (defaults to now)

    • Optionalstep: number

      the requested time interval between rows

    • OptionalincludeOther: boolean

      include an additional "other" result that represents everything that does not match the top N

    • OptionalexporterNodeCriteria: string

      the node ID or foreignSource:foreignId tuple

    • OptionalifIndex: number

      filter for flows that came through this SNMP interface

    • Optionaldscp: string[]

      filter for flows with this Dscp value

    Returns Promise<OnmsFlowSeries>

  • Get time series data for the top N conversations based on parameters.

    Parameters

    • OptionalNOptions: number | ITopNOptions

      how many conversations to return or an object that includes all of the parameters to be set on the API call

    • Optionalstart: number

      the start of the timespan to query (defaults to 4 hours ago)

    • Optionalend: number

      the end of the timespan to query (defaults to now)

    • Optionalstep: number

      the requested time interval between rows

    • OptionalexporterNodeCriteria: string

      the node ID or foreignSource:foreignId tuple

    • OptionalifIndex: number

      filter for flows that came through this SNMP interface

    • Optionaldscp: string[]

      filter for flows with this Dscp value

    Returns Promise<OnmsFlowSeries>

  • Get time series data for the top N hosts based on parameters.

    Parameters

    • OptionalN: number

      how many applications' series to return

    • Optionalstart: number

      the start of the timespan to query (defaults to 4 hours ago)

    • Optionalend: number

      the end of the timespan to query (defaults to now)

    • Optionalstep: number

      the requested time interval between rows

    • OptionalincludeOther: boolean

      include an additional "other" result that represents everything that does not match the top N

    • OptionalexporterNodeCriteria: string

      the node ID or foreignSource:foreignId tuple

    • OptionalifIndex: number

      filter for flows that came through this SNMP interface

    • Optionaldscp: string[]

      filter for flows with this Dscp value

    Returns Promise<OnmsFlowSeries>

  • Summarize the given applications/protocols based on parameters.

    Parameters

    • Optionalapplications: string[]

      the applications to include

    • Optionalstart: number

      the start of the timespan to query (defaults to 4 hours ago)

    • Optionalend: number

      the end of the timespan to query (defaults to now)

    • OptionalincludeOther: boolean

      include an additional "other" result that represents everything that does not match the given applications

    • OptionalexporterNodeCriteria: string

      the node ID or foreignSource:foreignId tuple

    • OptionalifIndex: number

      filter for flows that came through this SNMP interface

    • Optionaldscp: string[]

      filter for flows with this Dscp value

    Returns Promise<OnmsFlowTable>

  • Summarize the given conversations based on parameters.

    Parameters

    • Optionalconversations: string[]

      how many conversations to return

    • Optionalstart: number

      the start of the timespan to query (defaults to 4 hours ago)

    • Optionalend: number

      the end of the timespan to query (defaults to now)

    • OptionalincludeOther: boolean

      include an additional "other" result that represents everything that does not match the given conversations

    • OptionalexporterNodeCriteria: string

      the node ID or foreignSource:foreignId tuple

    • OptionalifIndex: number

      filter for flows that came through this SNMP interface

    • Optionaldscp: string[]

      filter for flows with this Dscp value

    Returns Promise<OnmsFlowTable>

  • Summarize the the dscp values based on parameters.

    Parameters

    • Optionalstart: number

      the start of the timespan to query (defaults to 4 hours ago)

    • Optionalend: number

      the end of the timespan to query (defaults to now)

    • OptionalexporterNodeCriteria: string

      the node ID or foreignSource:foreignId tuple

    • OptionalifIndex: number

      filter for flows that came through this SNMP interface

    • Optionaldscp: string[]

      filter for flows with this Dscp value

    Returns Promise<OnmsFlowTable>

  • Summarize the given hosts based on parameters.

    Parameters

    • Optionalhosts: string[]

      the hosts to include

    • Optionalstart: number

      the start of the timespan to query (defaults to 4 hours ago)

    • Optionalend: number

      the end of the timespan to query (defaults to now)

    • OptionalincludeOther: boolean

      include an additional "other" result that represents everything that does not match the given hosts

    • OptionalexporterNodeCriteria: string

      the node ID or foreignSource:foreignId tuple

    • OptionalifIndex: number

      filter for flows that came through this SNMP interface

    • Optionaldscp: string[]

      filter for flows with this Dscp value

    Returns Promise<OnmsFlowTable>

  • Summarize the top N applications/protocols based on parameters.

    Parameters

    • OptionalN: number

      how many applications to return

    • Optionalstart: number

      the start of the timespan to query (defaults to 4 hours ago)

    • Optionalend: number

      the end of the timespan to query (defaults to now)

    • OptionalincludeOther: boolean

      include an additional "other" result that represents everything that does not match the top N

    • OptionalexporterNodeCriteria: string

      the node ID or foreignSource:foreignId tuple

    • OptionalifIndex: number

      filter for flows that came through this SNMP interface

    • Optionaldscp: string[]

      filter for flows with this Dscp value

    Returns Promise<OnmsFlowTable>

  • Summarize the top N conversations based on parameters.

    Parameters

    • OptionalNOptions: number | ITopNOptions

      how many conversations to return or an object that includes all of the parameters to be set on the API call

    • Optionalstart: number

      the start of the timespan to query (defaults to 4 hours ago)

    • Optionalend: number

      the end of the timespan to query (defaults to now)

    • OptionalexporterNodeCriteria: string

      the node ID or foreignSource:foreignId tuple

    • OptionalifIndex: number

      filter for flows that came through this SNMP interface

    • Optionaldscp: string[]

      filter for flows with this Dscp value

    Returns Promise<OnmsFlowTable>

  • Summarize the top N hosts based on parameters.

    Parameters

    • OptionalN: number

      how many conversations to return

    • Optionalstart: number

      the start of the timespan to query (defaults to 4 hours ago)

    • Optionalend: number

      the end of the timespan to query (defaults to now)

    • OptionalincludeOther: boolean

      include an additional "other" result that represents everything that does not match the top N

    • OptionalexporterNodeCriteria: string

      the node ID or foreignSource:foreignId tuple

    • OptionalifIndex: number

      filter for flows that came through this SNMP interface

    • Optionaldscp: string[]

      filter for flows with this Dscp value

    Returns Promise<OnmsFlowTable>

  • Called whenever the OpenNMS server has changed.

    Parameters

    Returns void

  • 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