Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MonitorRepository

The repository for monitor storing

Hierarchy

  • MonitorRepository

Implemented by

Index

Methods

get

  • get(monitorKey: any): Promise<GenericMonitor | null>

getAll

  • getAll(): Promise<GenericMonitor[]>

insert

  • insert(monitor: GenericMonitor): Promise<void>
  • Inserts a monitor

    Parameters

    • monitor: GenericMonitor

      the monitor to be stored. If monitor exists already in the repo the insert method rejects the promise with a message, i.e. Model with key '[${monitor.key}]' already exists

    Returns Promise<void>

remove

  • remove(monitorKey: any): Promise<void>
  • Removes a monitor

    Parameters

    • monitorKey: any

      The key for the monitor to be removed. If monitor does not exists, remove just ignores the actions and does not reject or throws any error

    Returns Promise<void>