Files
houston-be/service/request/incident/create_incident.go
Vijay Joshi 804be01c2f INFRA-3467 : Private Houston Incidents (#445)
* 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
2024-08-08 19:20:04 +05:30

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"`
}