@linode/api-v4
Version:
JavaScript wrapper around the Linode APIv4
20 lines • 2.18 kB
TypeScript
import type { Filter, Params, ResourcePage } from '../types';
import type { Alert, CloudPulseAlertsPayload, CreateAlertDefinitionPayload, CreateNotificationChannelPayload, EditAlertDefinitionPayload, EditNotificationChannelPayload, NotificationChannel, NotificationChannelAlerts } 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>;
export declare const createNotificationChannel: (data: CreateNotificationChannelPayload) => Promise<NotificationChannel>;
export declare const getNotificationChannelById: (channelId: number) => Promise<NotificationChannel>;
export declare const updateNotificationChannel: (channelId: number, data: EditNotificationChannelPayload) => Promise<NotificationChannel>;
export declare const deleteNotificationChannel: (channelId: number) => Promise<NotificationChannel>;
export declare const getAlertsByNotificationChannelId: (channelId: number, params?: Params, filters?: Filter) => Promise<ResourcePage<NotificationChannelAlerts>>;
//# sourceMappingURL=alerts.d.ts.map