UNPKG

@linode/api-v4

Version:
13 lines 1.21 kB
import { Alert, AlertServiceType, CreateAlertDefinitionPayload, EditAlertDefinitionPayload, NotificationChannel } from './types'; import { Params, Filter, ResourcePage } from '../types'; export declare const createAlertDefinition: (data: CreateAlertDefinitionPayload, serviceType: AlertServiceType) => Promise<Alert>; export declare const getAlertDefinitions: (params?: Params, filters?: Filter) => Promise<ResourcePage<Alert>>; export declare const getAlertDefinitionByServiceTypeAndId: (serviceType: string, alertId: string) => Promise<Alert>; export declare const editAlertDefinition: (data: EditAlertDefinitionPayload, serviceType: string, alertId: number) => Promise<Alert>; export declare const getNotificationChannels: (params?: Params, filters?: Filter) => Promise<ResourcePage<NotificationChannel>>; export declare const getAlertDefinitionByServiceType: (serviceType: string) => Promise<ResourcePage<Alert>>; export declare const addEntityToAlert: (serviceType: string, entityId: string, data: { "alert-definition-id": number; }) => Promise<{}>; export declare const deleteEntityFromAlert: (serviceType: string, entityId: string, alertId: number) => Promise<{}>; //# sourceMappingURL=alerts.d.ts.map