/** * incident.io * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { AlertTagV2 } from './AlertTagV2.js'; import type { AlertAttributeEntryV2 } from './AlertAttributeEntryV2.js'; /** * * @export * @interface AlertV2 */ export interface AlertV2 { /** * The IDs of every alert group this alert belongs to. Empty when the alert is not part of any group. */ alert_group_ids?: Array; /** * The ID of the alert source this alert fired on */ alert_source_id: string; /** * Attribute values parsed from the alerts payload */ attributes: Array; /** * When this entry was created */ created_at: Date; /** * A deduplication key which uniquely references this alert from your alert source. For newly created HTTP sources, this field is required. * If you send an event with the same deduplication_key multiple times, only one alert will be created in incident.io for this alert source config. * You can filter on this field to find the alert created by an event you've sent us. */ deduplication_key: string; /** * The description of the alert */ description?: string; /** * The ID of this alert */ id: string; /** * When this alert was resolved */ resolved_at?: Date; /** * If applicable, a link to the alert in the upstream system */ source_url?: string; /** * Statuses of an alert */ status: AlertV2StatusEnum; /** * Tags someone has applied to this alert */ tags?: Array; /** * The title of the alert, parsed from the alert payload according to the alert source configuration */ title: string; /** * When this alert was last updated */ updated_at: Date; } /** * @export */ export declare const AlertV2StatusEnum: { readonly Firing: "firing"; readonly Resolved: "resolved"; }; export type AlertV2StatusEnum = typeof AlertV2StatusEnum[keyof typeof AlertV2StatusEnum]; /** * Check if a given object implements the AlertV2 interface. */ export declare function instanceOfAlertV2(value: object): value is AlertV2; export declare function AlertV2FromJSON(json: any): AlertV2; export declare function AlertV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AlertV2; export declare function AlertV2ToJSON(json: any): AlertV2; export declare function AlertV2ToJSONTyped(value?: AlertV2 | null, ignoreDiscriminator?: boolean): any;