/* tslint:disable */ /* eslint-disable */ /** * MailSlurp API * MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. It\'s designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository * * The version of the OpenAPI document: 6.5.2 * Contact: contact@mailslurp.dev * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; /** * * @export * @interface DomainMonitorAlertSinkDto */ export interface DomainMonitorAlertSinkDto { /** * * @type {string} * @memberof DomainMonitorAlertSinkDto */ id: string; /** * * @type {string} * @memberof DomainMonitorAlertSinkDto */ monitorId: string; /** * * @type {string} * @memberof DomainMonitorAlertSinkDto */ userId: string; /** * * @type {string} * @memberof DomainMonitorAlertSinkDto */ type: DomainMonitorAlertSinkDtoTypeEnum; /** * * @type {string} * @memberof DomainMonitorAlertSinkDto */ target: string; /** * * @type {string} * @memberof DomainMonitorAlertSinkDto */ severityThreshold: DomainMonitorAlertSinkDtoSeverityThresholdEnum; /** * * @type {boolean} * @memberof DomainMonitorAlertSinkDto */ enabled: boolean; /** * * @type {Date} * @memberof DomainMonitorAlertSinkDto */ createdAt: Date; /** * * @type {Date} * @memberof DomainMonitorAlertSinkDto */ updatedAt: Date; } /** * @export * @enum {string} */ export enum DomainMonitorAlertSinkDtoTypeEnum { EMAIL = 'EMAIL', WEBHOOK = 'WEBHOOK', SLACK = 'SLACK', TEAMS = 'TEAMS', } /** * @export * @enum {string} */ export enum DomainMonitorAlertSinkDtoSeverityThresholdEnum { LOW = 'LOW', MEDIUM = 'MEDIUM', HIGH = 'HIGH', CRITICAL = 'CRITICAL', } export function DomainMonitorAlertSinkDtoFromJSON( json: any ): DomainMonitorAlertSinkDto { return DomainMonitorAlertSinkDtoFromJSONTyped(json, false); } export function DomainMonitorAlertSinkDtoFromJSONTyped( json: any, ignoreDiscriminator: boolean ): DomainMonitorAlertSinkDto { if (json === undefined || json === null) { return json; } return { id: json['id'], monitorId: json['monitorId'], userId: json['userId'], type: json['type'], target: json['target'], severityThreshold: json['severityThreshold'], enabled: json['enabled'], createdAt: new Date(json['createdAt']), updatedAt: new Date(json['updatedAt']), }; } export function DomainMonitorAlertSinkDtoToJSON( value?: DomainMonitorAlertSinkDto | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { id: value.id, monitorId: value.monitorId, userId: value.userId, type: value.type, target: value.target, severityThreshold: value.severityThreshold, enabled: value.enabled, createdAt: value.createdAt.toISOString(), updatedAt: value.updatedAt.toISOString(), }; }