Skip to content

Commit

Permalink
Update types.go
Browse files Browse the repository at this point in the history
  • Loading branch information
opb authored Dec 19, 2022
1 parent 2ef4b7e commit ffdd910
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion types.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ type Incident struct {
SlackChannelName string `json:"slack_channel_name,omitempty"`

// Current status of the incident
Status string `json:"status"`
IncidentStatus IncidentStatus `json:"incident_status"`

// Detailed description of the incident
Summary string `json:"summary,omitempty"`
Expand Down Expand Up @@ -397,6 +397,16 @@ type ExternalIssueReference struct {
Provider string `json:"provider"`
}

type IncidentStatus struct {
Id string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Rank int `json:"name"`
Category string `json:"category"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}

type ActionResponse struct {
Action Action `json:"action"`
}

0 comments on commit ffdd910

Please sign in to comment.