Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MonitorArgs<T>

The monitor creation Arguments

Type parameters

  • T

Hierarchy

  • MonitorArgs

Index

Properties

asyncFetcherFn

asyncFetcherFn: MonitorFetchFunction<T>

This is the fetching function called each interval. The fetcher must return data of type T

note

If you intend to serialize, e.g. using LocalStorageMonitorRepository, the monitor you must not use closures, as this might lead to non-deterministic behavior.

compareFn

Once the asyncFetcher has fetched the data, the result will be compared herein. Return true, if a certain condition is met

note

If you intend to serialize, e.g. using LocalStorageMonitorRepository, the monitor you must not use closures, as this might lead to non-deterministic behavior.

intervalSecs

intervalSecs: number

The polling/checking interval in seconds

key

key: string

The monitors identifier

Optional logger

logger: Logger

An optional logger

timeoutSecs

timeoutSecs: number

The time in seconds when the monitor should give up checking, i.e. times out