github.com/blend/go-sdk@v1.20220411.3/pagerduty/incident.go (about) 1 /* 2 3 Copyright (c) 2022 - Present. Blend Labs, Inc. All rights reserved 4 Use of this source code is governed by a MIT license that can be found in the LICENSE file. 5 6 */ 7 8 package pagerduty 9 10 import "time" 11 12 // Incident is the full api type for incidents. 13 type Incident struct { 14 ID string `json:"id"` 15 Summary string `json:"summary,omitempty"` 16 Type string `json:"type,omitempty"` 17 Self string `json:"self,omitempty"` 18 HTMLUrl string `json:"html_url,omitempty"` 19 IncidentNumber int `json:"incident_number,omitempty"` 20 CreatedAt time.Time `json:"created_at,omitempty"` 21 Status IncidentStatus `json:"status"` 22 Title string `json:"title,omitempty"` 23 PendingActions []Action `json:"pending_actions,omitempty"` 24 IncidentKey string `json:"incident_key,omitempty"` 25 Service APIObject `json:"service,omitempty"` 26 Assignments []Assignment `json:"assignments,omitempty"` 27 AssignedVia string `json:"assigned_via,omitempty"` 28 Acknowledgements []Acknowledgement `json:"acknowledgements,omitempty"` 29 LastStatusChangeAt time.Time `json:"last_status_change_at,omitempty"` 30 LastStatusChangeBy APIObject `json:"last_status_change_by,omitempty"` 31 EscalationPolicy APIObject `json:"escalation_policy,omitempty"` 32 Teams []APIObject `json:"teams,omitempty"` 33 Priority APIObject `json:"priority,omitempty"` 34 Urgency string `json:"urgency"` 35 ResolveReason ResolveReason `json:"resolve_reason,omitempty"` 36 AlertCounts struct { 37 Triggered int `json:"triggered,omitempty"` 38 Resolved int `json:"resolved,omitempty"` 39 All int `json:"all,omitempty"` 40 } `json:"alert_counts,omitempty"` 41 Body Body `json:"body,omitempty"` 42 }