Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing fields to AnalyticsRawIncident #524

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions analytics.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,24 @@ type AnalyticsData struct {
// AnalyticsRawIncident represents the structure of the raw incident analytics we have available.
type AnalyticsRawIncident struct {
AssignmentCount int `json:"assignment_count,omitempty"`
AutoResolved bool `json:"auto_resolved,omitempty"`
BusinessHourInterruptions int `json:"business_hour_interruptions,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
Description string `json:"description,omitempty"`
EngagedSeconds int `json:"engaged_seconds,omitempty"`
EngagedUserCount int `json:"engaged_user_count,omitempty"`
EscalationCount int `json:"escalation_count,omitempty"`
EscalationPolicyID string `json:"escalation_policy_id,omitempty"`
EscalationPolicyName string `json:"escalation_policy_name,omitempty"`
ID string `json:"id,omitempty"`
IncidentNumber int `json:"incident_number,omitempty"`
IsMajor bool `json:"major,omitempty"`
OffHourInterruptions int `json:"off_hour_interruptions,omitempty"`
PriorityID string `json:"priority_id,omitempty"`
PriorityName string `json:"priority_name,omitempty"`
ResolvedAt string `json:"resolved_at,omitempty"`
ResolvedByUserID string `json:"resolved_by_user_id,omitempty"`
ResolvedByUserName string `json:"resolved_by_user_name,omitempty"`
SecondsToEngage int `json:"seconds_to_engage,omitempty"`
SecondsToFirstAck int `json:"seconds_to_first_ack,omitempty"`
SecondsToMobilize int `json:"seconds_to_mobilize,omitempty"`
Expand Down