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 869909b commit c56ed1f
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,10 @@ type Incident struct {
PostmortemDocumentUrl string `json:"postmortem_document_url,omitempty"`

// Reference to this incident, as displayed across the product
Reference string `json:"reference"`
Creator Actor `json:"creator"`
Severity Severity `json:"severity"`
Reference string `json:"reference"`
Creator Actor `json:"creator"`
Severity Severity `json:"severity"`
ExternalIssueReference ExternalIssueReference `json:"external_issue_reference"`

// ID of the Slack channel in the organisation Slack workspace
SlackChannelId string `json:"slack_channel_id"`
Expand Down Expand Up @@ -259,6 +260,17 @@ type Severity struct {
UpdatedAt time.Time `json:"updated_at"`
}

type ExternalIssueReference struct {
// Ref of the external issue
IssueName string `json:"issue_name"`

// permalink to the external issue
IssuePermalink string `json:"issue_permalink"`

// Provider of the external issue
Provider string `json:"provider"`
}

type IncidentTimestamp struct {
// When this last occurred, if it did
LastOccurredAt time.Time `json:"last_occurred_at,omitempty"`
Expand Down

0 comments on commit c56ed1f

Please sign in to comment.