import { AbstractRestfulClient, Parameters } from '../abstractRestfulClient'; import { Alert, AlertFields, AlertFormatEnum, AlertFrequencyEnum } from './entities/alert/alert'; import { CreateAlert } from './entities/alert/createAlert'; import { GetResult } from '../getResult'; import { AlertList } from './entities/alert/listAlert'; import { AlertFiltersType } from './entities/alert/filters/alertFilters'; export declare type ReportMonitoringType = { body: { [keys in string]: string | number | null; }; url: string; userAgent: string; type: string; }; export declare type CreateAlertPayload = { [AlertFields.COLUMN_CATEGORY_ID]: number; [AlertFields.COLUMN_NAME]: string; [AlertFields.COLUMN_FREQUENCY]: AlertFrequencyEnum; [AlertFields.COLUMN_RECIPIENT]: string; [AlertFields.COLUMN_FORMAT]: AlertFormatEnum; [AlertFields.COLUMN_FILTERS]: AlertFiltersType; }; export declare type UpdateAlertPayload = Partial>; export declare class MonitoringClient extends AbstractRestfulClient { /** * The base path of the API */ protected basePath: string; /** * The path of the report endpoint */ private REPORT_PATH; /** * The path of the alert endpoint */ private ALERT_PATH; sendReport(report: ReportMonitoringType): Promise; createAlert(payload: CreateAlertPayload): Promise>; listAlerts(parameters?: Parameters): Promise>; getAlert(alertId: number): Promise>; updateAlert(alertId: number, payload: UpdateAlertPayload): Promise>; deleteAlert(alertId: number): Promise; }