Documentation ¶
Index ¶
Constants ¶
View Source
const ( TapExecutable = "tap-pagerduty" StreamPropertiesFile = "pagerduty.json" IncidentStream = "incidents" )
The consts that this plugin needs
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiUserResponse ¶
Using User because it requires authentication.
type Assignment ¶
type Assignment struct { common.NoPKModel ConnectionId uint64 UserId string `gorm:"primaryKey"` IncidentNumber int `gorm:"primaryKey"` AssignedAt time.Time }
func (Assignment) TableName ¶
func (Assignment) TableName() string
type Incident ¶
type IncidentStatus ¶
type IncidentStatus string
const ( IncidentStatusAcknowledged IncidentStatus = "acknowledged" IncidentStatusTriggered IncidentStatus = "triggered" IncidentStatusResolved IncidentStatus = "resolved" )
type IncidentUrgency ¶
type IncidentUrgency string
type PagerDutyConfig ¶
type PagerDutyConfig struct { Token string `json:"token"` Email string `json:"email"` // Seems to be an inconsequential field StartDate time.Time `json:"start_date"` }
PagerDutyConfig model corresponds to docs here https://github.com/singer-io/tap-pagerduty
type PagerDutyConnection ¶
type PagerDutyConnection struct { helper.BaseConnection `mapstructure:",squash"` helper.AccessToken `mapstructure:",squash"` }
TODO Please modify the following code to fit your needs This object conforms to what the frontend currently sends.
func (PagerDutyConnection) TableName ¶
func (PagerDutyConnection) TableName() string
type PagerDutyParams ¶
type PagerDutyResponse ¶
type PagerDutyResponse struct { Name string `json:"name"` ID int `json:"id"` PagerDutyConnection }
This object conforms to what the frontend currently expects.
type Service ¶
type TestConnectionRequest ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.