github.com/blend/go-sdk@v1.20220411.3/pagerduty/constants.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  const (
    11  	// DefaultAddr is the default api address.
    12  	DefaultAddr = "https://api.pagerduty.com"
    13  )
    14  
    15  // ReferenceType is a type of reference.
    16  type ReferenceType string
    17  
    18  // ReferenceTypes
    19  const (
    20  	ReferenceTypeEscalationPolicy ReferenceType = "escalation_policy_reference"
    21  	ReferenceTypeService          ReferenceType = "service_reference"
    22  	ReferenceTypeUser             ReferenceType = "user_reference"
    23  )
    24  
    25  // Include is an object type constant.
    26  type Include string
    27  
    28  // Includes
    29  const (
    30  	IncludeUsers                  Include = "users"
    31  	IncludeServices               Include = "services"
    32  	IncludeFirstTriggerLogEntries Include = "first_trigger_log_entries"
    33  	IncludeEscalationPolicies     Include = "escalation_policies"
    34  	IncludeTeams                  Include = "teams"
    35  	IncludeAssignees              Include = "assignees"
    36  	IncludeAcknowledgers          Include = "acknowledgers"
    37  	IncludePriorities             Include = "priorities"
    38  	IncludeConferenceBridge       Include = "conference_bridge"
    39  )
    40  
    41  // IncidentStatus is a status for an incident
    42  type IncidentStatus string
    43  
    44  // IncidentStatuses
    45  const (
    46  	IncidentStatusTriggered    IncidentStatus = "triggered"
    47  	IncidentStatusAcknowledged IncidentStatus = "acknowledged"
    48  	IncidentStatusResolved     IncidentStatus = "resolved"
    49  )
    50  
    51  // Urgency is a urgency.
    52  type Urgency string
    53  
    54  // Urgencies
    55  const (
    56  	UrgencyHigh Urgency = "high"
    57  	UrgencyLow  Urgency = "low"
    58  )