Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FlowDAO

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

Hierarchy

Index

Constructors

constructor

Accessors

http

Methods

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

getExporter

  • getExporter(criteria: string, limit: number, start?: number, end?: number): Promise<OnmsFlowExporter>
  • 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)

    • Optional start: number

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

    • Optional end: number

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

    Returns Promise<OnmsFlowExporter>

getExporters

  • 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)

    • Optional start: number

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

    • Optional end: number

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

    Returns Promise<OnmsFlowExporterSummary[]>

getSeriesForTopNApplications

  • getSeriesForTopNApplications(N?: number, start?: number, end?: number, step?: number, includeOther?: boolean, exporterNodeCriteria?: string, ifIndex?: number): Promise<OnmsFlowSeries>
  • Get time series data for the top N applications/protocols based on parameters.

    Parameters

    • Optional N: number

      how many applications' series to return

    • Optional start: number

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

    • Optional end: number

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

    • Optional step: number

      the requested time interval between rows

    • Optional includeOther: boolean

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

    • Optional exporterNodeCriteria: string

      the node ID or foreignSource:foreignId tuple

    • Optional ifIndex: number

      filter for flows that came through this SNMP interface

    Returns Promise<OnmsFlowSeries>

getSeriesForTopNConversations

  • getSeriesForTopNConversations(N?: number, start?: number, end?: number, step?: number, exporterNodeCriteria?: string, ifIndex?: number): Promise<OnmsFlowSeries>
  • Get time series data for the top N conversations based on parameters.

    Parameters

    • Optional N: number

      how many conversations' series to return

    • Optional start: number

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

    • Optional end: number

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

    • Optional step: number

      the requested time interval between rows

    • Optional exporterNodeCriteria: string

      the node ID or foreignSource:foreignId tuple

    • Optional ifIndex: number

      filter for flows that came through this SNMP interface

    Returns Promise<OnmsFlowSeries>

getSummaryForTopNApplications

  • getSummaryForTopNApplications(N?: number, start?: number, end?: number, includeOther?: boolean, exporterNodeCriteria?: string, ifIndex?: number): Promise<OnmsFlowTable>
  • Summarize the top N applications/protocols based on parameters.

    Parameters

    • Optional N: number

      how many applications to return

    • Optional start: number

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

    • Optional end: number

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

    • Optional includeOther: boolean

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

    • Optional exporterNodeCriteria: string

      the node ID or foreignSource:foreignId tuple

    • Optional ifIndex: number

      filter for flows that came through this SNMP interface

    Returns Promise<OnmsFlowTable>

getSummaryForTopNConversations

  • getSummaryForTopNConversations(N?: number, start?: number, end?: number, exporterNodeCriteria?: string, ifIndex?: number): Promise<OnmsFlowTable>
  • Summarize the top N conversations based on parameters.

    Parameters

    • Optional N: number

      how many conversations to return

    • Optional start: number

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

    • Optional end: number

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

    • Optional exporterNodeCriteria: string

      the node ID or foreignSource:foreignId tuple

    • Optional ifIndex: number

      filter for flows that came through this SNMP interface

    Returns Promise<OnmsFlowTable>

Protected toDate

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

    Parameters

    • from: any

    Returns Moment | undefined

Protected toNumber

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

    Parameters

    • from: any

    Returns number | undefined

Protected useJson

  • useJson(): boolean

Static Protected getOptions

Generated using TypeDoc