53 lines
1.8 KiB
Go
53 lines
1.8 KiB
Go
package incident
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type CreateIncidentRequest struct {
|
|
Title string `json:"title,omitempty"`
|
|
Description string `json:"description,omitempty"`
|
|
Severity string `json:"severity,omitempty"`
|
|
Pagerduty string `json:"pagerduty,omitempty"`
|
|
Status IncidentStatus `json:"status,omitempty"`
|
|
IncidentName string `json:"incident_name,omitempty"`
|
|
SlackChannel string `json:"slack_channel,omitempty"`
|
|
DetectionTime *time.Time `json:"detection_time,omitempty"`
|
|
StartTime time.Time `json:"start_time,omitempty"`
|
|
EndTime *time.Time `json:"end_time,omitempty"`
|
|
TeamId string `json:"type,omitempty"`
|
|
JiraId *string `json:"jira_id,omitempty"`
|
|
ConfluenceId *string `json:"confluence_id,omitempty"`
|
|
SeverityTat *time.Time `json:"severity_tat,omitempty"`
|
|
RemindMeAt *time.Time `json:"remind_me_at,omitempty"`
|
|
EnableReminder bool `json:"enable_reminder,omitempty"`
|
|
CreatedBy string `json:"created_by,omitempty"`
|
|
UpdatedBy string `json:"updated_by,omitempty"`
|
|
}
|
|
|
|
type IncidentSeverityTeamDTO struct {
|
|
Title string
|
|
Status IncidentStatus
|
|
SeverityName string
|
|
SlackChannel string
|
|
TeamName string
|
|
}
|
|
|
|
type AddIncidentRoleRequest struct {
|
|
UserId string `json:"users_select,omitempty"`
|
|
Role IncidentRole `json:"role_type,omitempty"`
|
|
IncidentId int
|
|
CreatedById string
|
|
}
|
|
|
|
type CreateIncidentChannelEntry struct {
|
|
SlackChannel string `gorm:"column:slack_channel"`
|
|
IncidentId uint `gorm:"column:incident_id"`
|
|
MessageTimeStamp string `gorm:"column:message_timestamp"`
|
|
}
|
|
|
|
type AddIncidentStatusRequest struct {
|
|
Name string `json:"name,omitempty"`
|
|
Description string `json:"description,omitempty"`
|
|
}
|