/** * 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. */ /** * * @export * @interface EscalationPathTargetV2 */ export interface EscalationPathTargetV2 { /** * Uniquely identifies an entity of this type */ id: string; /** * Only set for schedule targets, this specifies which users to fetch from the schedule. Use currently_on_call to notify whoever is on call right now across the schedule, all_users to notify every user attached to the schedule, or all_users_for_rota / currently_on_call_for_rota / next_on_call_for_rota to scope to a specific rota (in which case selected_rota_id is required). next_on_call notifies whoever is next on call across the schedule. */ schedule_mode?: EscalationPathTargetV2ScheduleModeEnum; /** * For schedule targets, identifies which rota on the schedule the schedule_mode applies to. Required when schedule_mode is all_users_for_rota, currently_on_call_for_rota, or next_on_call_for_rota; must be omitted for other schedule_mode values. */ selected_rota_id?: string; /** * Controls what type of entity this target identifies, such as EscalationPolicy or User */ type: EscalationPathTargetV2TypeEnum; /** * The interruption level we notify this target at: high or low */ urgency: EscalationPathTargetV2UrgencyEnum; } /** * @export */ export declare const EscalationPathTargetV2ScheduleModeEnum: { readonly CurrentlyOnCall: "currently_on_call"; readonly AllUsersForRota: "all_users_for_rota"; readonly AllUsers: "all_users"; readonly CurrentlyOnCallForRota: "currently_on_call_for_rota"; readonly NextOnCallForRota: "next_on_call_for_rota"; readonly NextOnCall: "next_on_call"; readonly Empty: ""; }; export type EscalationPathTargetV2ScheduleModeEnum = typeof EscalationPathTargetV2ScheduleModeEnum[keyof typeof EscalationPathTargetV2ScheduleModeEnum]; /** * @export */ export declare const EscalationPathTargetV2TypeEnum: { readonly Schedule: "schedule"; readonly User: "user"; readonly SlackChannel: "slack_channel"; readonly MsteamsChannel: "msteams_channel"; }; export type EscalationPathTargetV2TypeEnum = typeof EscalationPathTargetV2TypeEnum[keyof typeof EscalationPathTargetV2TypeEnum]; /** * @export */ export declare const EscalationPathTargetV2UrgencyEnum: { readonly High: "high"; readonly Low: "low"; }; export type EscalationPathTargetV2UrgencyEnum = typeof EscalationPathTargetV2UrgencyEnum[keyof typeof EscalationPathTargetV2UrgencyEnum]; /** * Check if a given object implements the EscalationPathTargetV2 interface. */ export declare function instanceOfEscalationPathTargetV2(value: object): value is EscalationPathTargetV2; export declare function EscalationPathTargetV2FromJSON(json: any): EscalationPathTargetV2; export declare function EscalationPathTargetV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): EscalationPathTargetV2; export declare function EscalationPathTargetV2ToJSON(json: any): EscalationPathTargetV2; export declare function EscalationPathTargetV2ToJSONTyped(value?: EscalationPathTargetV2 | null, ignoreDiscriminator?: boolean): any;