Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Rate

Hierarchy

  • Rate

Index

Constructors

constructor

  • new Rate(ttlMs?: number): Rate
  • Parameters

    • Default value ttlMs: number = 60000

    Returns Rate

Properties

ttlMs

ttlMs: number

Accessors

eventCount

  • get eventCount(): number

eventsPerMinute

  • get eventsPerMinute(): number

eventsPerMs

  • get eventsPerMs(): number

eventsPerSecond

  • get eventsPerSecond(): number

period

  • get period(): number

Methods

clear

  • clear(): this

onEvent

  • onEvent(): void

Generated using TypeDoc