/** * 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 { ExternalIssueReferenceV2 } from './ExternalIssueReferenceV2.js'; import type { IncidentDurationMetricWithValueV2 } from './IncidentDurationMetricWithValueV2.js'; import type { CustomFieldEntryV2 } from './CustomFieldEntryV2.js'; import type { IncidentDebriefV2 } from './IncidentDebriefV2.js'; import type { IncidentStatusV2 } from './IncidentStatusV2.js'; import type { IncidentTimestampWithValueV2 } from './IncidentTimestampWithValueV2.js'; import type { ActorV2 } from './ActorV2.js'; import type { IncidentTypeV2 } from './IncidentTypeV2.js'; import type { IncidentRoleAssignmentV2 } from './IncidentRoleAssignmentV2.js'; import type { SeverityV2 } from './SeverityV2.js'; /** * * @export * @interface IncidentV2 */ export interface IncidentV2 { /** * The call URL attached to this incident */ call_url?: string; /** * When the incident was created */ created_at: Date; /** * */ creator: ActorV2; /** * Custom field entries for this incident */ custom_field_entries: Array; /** * Debriefs scheduled for this incident, ordered by start time. Excludes cancelled calendar events. */ debriefs?: Array; /** * Incident duration metrics and their measurements for this incident */ duration_metrics?: Array; /** * */ external_issue_reference?: ExternalIssueReferenceV2; /** * If this incident has a debrief attached */ has_debrief?: boolean; /** * Unique identifier for the incident */ id: string; /** * A list of who is assigned to each role for this incident */ incident_role_assignments: Array; /** * */ incident_status: IncidentStatusV2; /** * Incident lifecycle events and when they occurred */ incident_timestamp_values?: Array; /** * */ incident_type?: IncidentTypeV2; /** * When the incident last recorded 'activity' */ last_activity_at: Date; /** * Whether the incident is real, a test, a tutorial, or importing as a retrospective incident */ mode: IncidentV2ModeEnum; /** * URL to link to the Microsoft Teams channel */ ms_teams_channel_url?: string; /** * Explanation of the incident */ name: string; /** * A permanent link to the homepage for this incident */ permalink?: string; /** * An array of IDs of postmortem documents for this incident */ postmortem_document_ids?: Array; /** * The URL of the incident post-mortem document */ postmortem_document_url?: string; /** * Reference to this incident, as displayed across the product */ reference: string; /** * */ severity?: SeverityV2; /** * ID of the Slack channel in the organisation Slack workspace. Note that the channel is sometimes created asynchronously, so may not be present when the incident is just created. */ slack_channel_id: string; /** * Name of the slack channel */ slack_channel_name?: string; /** * URL to link to the slack channel */ slack_channel_url?: string; /** * ID of the Slack team / workspace. This is only required if you are using a Slack Enterprise Grid with multiple teams. */ slack_team_id: string; /** * Detailed description of the incident */ summary?: string; /** * IDs of the teams that own this incident, resolved from your team settings. Empty when no teams match. */ team_ids: Array; /** * When the incident was last updated */ updated_at: Date; /** * Whether the incident should be open to anyone in your Slack workspace (public), or invite-only (private). For more information on Private Incidents see our [docs](https://docs.incident.io/incidents/sensitive-incidents). */ visibility: IncidentV2VisibilityEnum; /** * Amount of time spent on the incident in late hours */ workload_minutes_late?: number; /** * Amount of time spent on the incident in sleeping hours */ workload_minutes_sleeping?: number; /** * Amount of time spent on the incident in total */ workload_minutes_total?: number; /** * Amount of time spent on the incident in working hours */ workload_minutes_working?: number; } /** * @export */ export declare const IncidentV2ModeEnum: { readonly Standard: "standard"; readonly Retrospective: "retrospective"; readonly Test: "test"; readonly Tutorial: "tutorial"; }; export type IncidentV2ModeEnum = typeof IncidentV2ModeEnum[keyof typeof IncidentV2ModeEnum]; /** * @export */ export declare const IncidentV2VisibilityEnum: { readonly Public: "public"; readonly Private: "private"; }; export type IncidentV2VisibilityEnum = typeof IncidentV2VisibilityEnum[keyof typeof IncidentV2VisibilityEnum]; /** * Check if a given object implements the IncidentV2 interface. */ export declare function instanceOfIncidentV2(value: object): value is IncidentV2; export declare function IncidentV2FromJSON(json: any): IncidentV2; export declare function IncidentV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentV2; export declare function IncidentV2ToJSON(json: any): IncidentV2; export declare function IncidentV2ToJSONTyped(value?: IncidentV2 | null, ignoreDiscriminator?: boolean): any;