* INFRA-3467 : Private Houston Incidents * INFRA-3627 : Minor self review * INFRA-3627 : PR Review changes INFRA-3627 : Minor changes INFRA-3627 : UT fix INFRA-3637 : Message changes INFRA-3627 : Minor changes INFRA-3627 : Constant fix INFRA-3627 : Do not post SLA breach in public channels for private incidents
29 lines
1.1 KiB
Go
29 lines
1.1 KiB
Go
package incident
|
|
|
|
import (
|
|
"github.com/google/uuid"
|
|
"time"
|
|
)
|
|
|
|
type CreateIncidentRequestV3 struct {
|
|
Title string `json:"title"`
|
|
Description string `json:"description"`
|
|
SeverityID uint `json:"severityId"`
|
|
ReportingTeamID uint `json:"reportingTeamId"`
|
|
ResponderTeamID uint `json:"responderTeamId"`
|
|
ProductIds []uint `json:"productIds"`
|
|
CreatedBy string `json:"createdBy"`
|
|
Metadata *CreateIncidentMetadata `json:"metaData,omitempty"`
|
|
IsPrivate bool `json:"isPrivate"`
|
|
}
|
|
|
|
type CreateIncidentMetadata struct {
|
|
CustomerId uuid.UUID `json:"customerId"`
|
|
CustomerName string `json:"customerName"`
|
|
PhoneNumber string `json:"phoneNumber"`
|
|
CrmTicketCreationTime *time.Time `json:"crmTicketCreationTime"`
|
|
TicketId string `json:"ticketId"`
|
|
TicketGroup string `json:"ticketGroup"`
|
|
AgentName string `json:"agentName"`
|
|
}
|