UNPKG

@meshwatch/backend-core

Version:

Meshwatch backend core services.

13 lines (12 loc) 595 B
import PostgresClient from '../../shared/postgres'; import { GetMonitorChecksParams } from './types'; export interface MonitorCheckDatasource { getMonitorChecks: <T>(params: GetMonitorChecksParams) => Promise<T[]>; } declare abstract class AbstractTimescaleMonitorCheckDatasource implements MonitorCheckDatasource { protected readonly client: PostgresClient; constructor(client?: PostgresClient); getMonitorChecks: <T>(params: GetMonitorChecksParams) => Promise<T[]>; private getMonitorChecksQueryConfig; } export default AbstractTimescaleMonitorCheckDatasource;