Source: factory.core/ObjAlertIncident.py
Incident Report Tracker for Alert Management System.
Manages incident lifecycle from creation through resolution, linking related
alerts, tracking timelines, and generating incident reports and metrics.
...
| Method | Signature | Description |
|---|---|---|
| create_incident | create_incident(title: str, description: str, severity: str = 'MEDIUM', alert_guids: Optional[List[str]] = None, assigned_to: Optional[str] = None, assigned_to_person_guid: Optional[str] = None, impact: Optional[str] = None, package: Optional[str] = None) -> str |
Create a new incident. |
| update_incident_status | update_incident_status(incident_guid: str, new_status: str, notes: Optional[str] = None, user: Optional[str] = None) -> bool |
Update incident status. |
| add_incident_notes | add_incident_notes(incident_guid: str, note_type: str, notes: str, user: Optional[str] = None) -> bool |
Add notes to an incident. |
| close_incident | close_incident(incident_guid: str, resolution: str, root_cause: Optional[str] = None, lessons_learned: Optional[str] = None, user: Optional[str] = None, person_guid: Optional[str] = None) -> bool |
Close an incident with resolution details. |
| link_alert_to_incident | link_alert_to_incident(incident_guid: str, alert_guid: str) -> bool |
Link an alert to an incident. |
| get_incident_alerts | get_incident_alerts(incident_guid: str) -> list |
Get all alerts linked to an incident. |
| add_incident_timeline | add_incident_timeline(incident_guid: str, event_type: str, description: str, user: str = 'system', person_guid: Optional[str] = None) -> bool |
Add an entry to incident timeline. |
| get_incident_timeline | get_incident_timeline(incident_guid: str) -> list |
Get incident timeline in chronological order. |
| get_incident | get_incident(incident_guid: str) -> dict |
Get complete incident details. |
| get_incident_notes | get_incident_notes(incident_guid: str) -> dict |
Get all notes for an incident grouped by type. |
| list_incidents | list_incidents(package: Optional[str] = None, status: Optional[str] = None, severity: Optional[str] = None, days: int = 30, limit: int = 100) -> list |
List incidents with optional filters. |
| get_incident_metrics | get_incident_metrics(package: Optional[str] = None, days: int = 30) -> dict |
Get incident metrics for a package. |
| get_incident_trends | get_incident_trends(package: Optional[str] = None, days: int = 30) -> list |
Get incident creation trends over time. |
| merge_incidents | merge_incidents(source_incident_guid: str, target_incident_guid: str, merge_reason: Optional[str] = None, user: str = 'SYSTEM') -> bool |
Merge two incidents into one by moving all alerts, timeline, and notes from source to target. |
| generate_incident_report | generate_incident_report(incident_guid: str, format: str = 'text') -> str |
Generate a comprehensive incident report. |
| get_sla_for_package | get_sla_for_package(package: Optional[str] = None) -> Optional[dict] |
Get SLA configuration for a package. |
| email_incident_report | email_incident_report(incident_guid: str, format: str = 'html', additional_recipients: Optional[List[str]] = None, channel: str = 'INCIDENT_REPORT') -> bool |
|
| generate_short_ref | generate_short_ref() -> str |
Generate a short reference ID for communication tracking. |
| log_communication | log_communication(incident_guid: str, channel: str, recipient: Optional[str] = None, message: Optional[str] = None, subject: Optional[str] = None, status: str = 'SENT', external_id: Optional[str] = None, metadata: Optional[Dict[Any, Any]] = None, sent_by: str = 'SYSTEM', direction: str = 'OUTBOUND', short_ref: Optional[str] = None) -> tuple |
Log a communication for an incident (manual logging). |
| get_incident_communications | get_incident_communications(incident_guid: str, channel: Optional[str] = None, limit: int = 100) -> list |
Get all communications for an incident. |
| get_communication_by_ref | get_communication_by_ref(short_ref: str) -> Optional[dict] |
Lookup a communication by its short reference ID. |
| notify_incident | notify_incident(incident_guid: str, notify_code: str, message_template: Optional[str] = None, channels: Optional[List[str]] = None, sent_by: str = 'SYSTEM') -> dict |
Create a new incident.
Update incident status.
Close an incident.
Show incident details.
List all open incidents.
Show incident metrics.
Merge two incidents into one.
Generate an incident report.
Email an incident report to SLA-defined recipients using ObjChannel.
Send notifications for an incident using ObjNotify.
List all communications for an incident.
Lookup a communication by its short reference ID.