@linode/api-v4
Version:
JavaScript wrapper around the Linode APIv4
15 lines • 1.46 kB
TypeScript
import type { Filter, Params, ResourcePage } from '../types';
import type { Alert, CloudPulseAlertsPayload, CreateAlertDefinitionPayload, EditAlertDefinitionPayload, NotificationChannel } from './types';
export declare const createAlertDefinition: (data: CreateAlertDefinitionPayload, serviceType: string) => 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<{}>;
export declare const deleteAlertDefinition: (serviceType: string, alertId: number) => Promise<Alert>;
export declare const updateServiceAlerts: (serviceType: string, entityId: string, payload: CloudPulseAlertsPayload) => Promise<Alert>;
//# sourceMappingURL=alerts.d.ts.map