Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott McAllister committed Jun 8, 2022
2 parents 403693b + e35ffd3 commit 739d6b0
Showing 1 changed file with 31 additions and 24 deletions.
55 changes: 31 additions & 24 deletions pagerduty/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ type AlertGroupingParameters struct {
Config *AlertGroupingConfig `json:"config,omitempty"`
}

// AutoPauseNotificationsParameters defines how alerts on this service are automatically suspended for a period of time before triggering, when identified as likely being transient.
type AutoPauseNotificationsParameters struct {
Enabled bool `json:enabled,omitempty`
Timeout int `json:timeout,omitempty`
}

// IncidentUrgencyRule is the default urgency for new incidents.
type IncidentUrgencyRule struct {
DuringSupportHours *IncidentUrgencyType `json:"during_support_hours,omitempty"`
Expand Down Expand Up @@ -123,30 +129,31 @@ type ValueExtractor struct {

// Service represents a service.
type Service struct {
AcknowledgementTimeout *int `json:"acknowledgement_timeout"`
Addons []*AddonReference `json:"addons,omitempty"`
AlertCreation string `json:"alert_creation,omitempty"`
AlertGrouping *string `json:"alert_grouping"`
AlertGroupingTimeout *int `json:"alert_grouping_timeout,omitempty"`
AlertGroupingParameters *AlertGroupingParameters `json:"alert_grouping_parameters,omitempty"`
AutoResolveTimeout *int `json:"auto_resolve_timeout"`
CreatedAt string `json:"created_at,omitempty"`
Description string `json:"description,omitempty"`
EscalationPolicy *EscalationPolicyReference `json:"escalation_policy,omitempty"`
ResponsePlay *ResponsePlayReference `json:"response_play,omitempty"`
HTMLURL string `json:"html_url,omitempty"`
ID string `json:"id,omitempty"`
IncidentUrgencyRule *IncidentUrgencyRule `json:"incident_urgency_rule,omitempty"`
Integrations []*IntegrationReference `json:"integrations,omitempty"`
LastIncidentTimestamp string `json:"last_incident_timestamp,omitempty"`
Name string `json:"name,omitempty"`
ScheduledActions []*ScheduledAction `json:"scheduled_actions,omitempty"`
Self string `json:"self,omitempty"`
Status string `json:"status,omitempty"`
Summary string `json:"summary,omitempty"`
SupportHours *SupportHours `json:"support_hours,omitempty"`
Teams []*TeamReference `json:"teams,omitempty"`
Type string `json:"type,omitempty"`
AcknowledgementTimeout *int `json:"acknowledgement_timeout"`
Addons []*AddonReference `json:"addons,omitempty"`
AlertCreation string `json:"alert_creation,omitempty"`
AlertGrouping *string `json:"alert_grouping"`
AlertGroupingTimeout *int `json:"alert_grouping_timeout,omitempty"`
AlertGroupingParameters *AlertGroupingParameters `json:"alert_grouping_parameters,omitempty"`
AutoPauseNotificationsParameters *AutoPauseNotificationsParameters `json:"auto_pause_notifications_parameters,omitempty"`
AutoResolveTimeout *int `json:"auto_resolve_timeout"`
CreatedAt string `json:"created_at,omitempty"`
Description string `json:"description,omitempty"`
EscalationPolicy *EscalationPolicyReference `json:"escalation_policy,omitempty"`
ResponsePlay *ResponsePlayReference `json:"response_play,omitempty"`
HTMLURL string `json:"html_url,omitempty"`
ID string `json:"id,omitempty"`
IncidentUrgencyRule *IncidentUrgencyRule `json:"incident_urgency_rule,omitempty"`
Integrations []*IntegrationReference `json:"integrations,omitempty"`
LastIncidentTimestamp string `json:"last_incident_timestamp,omitempty"`
Name string `json:"name,omitempty"`
ScheduledActions []*ScheduledAction `json:"scheduled_actions,omitempty"`
Self string `json:"self,omitempty"`
Status string `json:"status,omitempty"`
Summary string `json:"summary,omitempty"`
SupportHours *SupportHours `json:"support_hours,omitempty"`
Teams []*TeamReference `json:"teams,omitempty"`
Type string `json:"type,omitempty"`
}

// ServicePayload represents a service.
Expand Down

0 comments on commit 739d6b0

Please sign in to comment.