tasks

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2023 License: Apache-2.0, MIT Imports: 15 Imported by: 2

Documentation

Index

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 {
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL