@linode/api-v4
Version:
JavaScript wrapper around the Linode APIv4
13 lines • 1.21 kB
TypeScript
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