Documentation ¶
Index ¶
- Constants
- Variables
- func CollectIncidents(taskCtx core.SubTaskContext) errors.Error
- func ConvertIncidents(taskCtx core.SubTaskContext) errors.Error
- func ExtractIncidents(taskCtx core.SubTaskContext) errors.Error
- type IncidentWithUser
- type PagerDutyOptions
- type PagerDutyTaskData
- type TransformationRules
Constants ¶
View Source
const RAW_INCIDENTS_TABLE = "pagerduty_incidents"
Variables ¶
View Source
var CollectIncidentsMeta = core.SubTaskMeta{ Name: "collectIncidents", EntryPoint: CollectIncidents, EnabledByDefault: true, Description: "Collect PagerDuty incidents", DomainTypes: []string{core.DOMAIN_TYPE_TICKET}, }
View Source
var ConvertIncidentsMeta = core.SubTaskMeta{ Name: "convertIncidents", EntryPoint: ConvertIncidents, EnabledByDefault: true, Description: "Convert incidents into domain layer table issues", DomainTypes: []string{core.DOMAIN_TYPE_TICKET}, }
View Source
var ExtractIncidentsMeta = core.SubTaskMeta{ Name: "extractIncidents", EntryPoint: ExtractIncidents, EnabledByDefault: true, Description: "Extract PagerDuty incidents", DomainTypes: []string{core.DOMAIN_TYPE_TICKET}, }
Functions ¶
func CollectIncidents ¶
func CollectIncidents(taskCtx core.SubTaskContext) errors.Error
func ConvertIncidents ¶
func ConvertIncidents(taskCtx core.SubTaskContext) errors.Error
func ExtractIncidents ¶
func ExtractIncidents(taskCtx core.SubTaskContext) errors.Error
Types ¶
type IncidentWithUser ¶
type IncidentWithUser struct { common.NoPKModel *models.Incident *models.User AssignedAt time.Time }
IncidentWithUser struct that represents the joined query result
type PagerDutyOptions ¶
type PagerDutyOptions struct { ConnectionId uint64 `json:"connectionId"` Tasks []string `json:"tasks,omitempty"` Transformations TransformationRules }
func DecodeAndValidateTaskOptions ¶
func DecodeAndValidateTaskOptions(options map[string]interface{}) (*PagerDutyOptions, errors.Error)
type PagerDutyTaskData ¶
type PagerDutyTaskData struct { Options *PagerDutyOptions `json:"-"` Config *models.PagerDutyConfig Client *tap.SingerTap }
type TransformationRules ¶
type TransformationRules struct { }
Click to show internal directories.
Click to hide internal directories.