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 c56ed1f commit 2ebea96
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ type Incident struct {
Reference string `json:"reference"`
Creator Actor `json:"creator"`
Severity Severity `json:"severity"`
ExternalIssueReference ExternalIssueReference `json:"external_issue_reference"`
ExternalIssueReference *ExternalIssueReference `json:"external_issue_reference,omitempty"`

// ID of the Slack channel in the organisation Slack workspace
SlackChannelId string `json:"slack_channel_id"`
Expand Down Expand Up @@ -260,17 +260,6 @@ 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 2ebea96

Please sign in to comment.