UNPKG

@linode/api-v4

Version:
18 lines 1.89 kB
import type { Filter, Params, ResourcePage } from '../types'; import type { Alert, CloudPulseAlertsPayload, CreateAlertDefinitionPayload, CreateNotificationChannelPayload, EditAlertDefinitionPayload, EditNotificationChannelPayload, 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>; 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>; //# sourceMappingURL=alerts.d.ts.map