Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handle ¶
func Handle(request *events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)
Handle sends an incoming request to parser and processor, and returns a http response
Types ¶
type DB ¶
type DB interface {
GetItem(*dynamodb.GetItemInput) (*dynamodb.GetItemOutput, error)
PutItem(*dynamodb.PutItemInput) (*dynamodb.PutItemOutput, error)
Query(*dynamodb.QueryInput) (*dynamodb.QueryOutput, error)
}
DB defines client methods
type Incident ¶
type Incident struct {
Comment string `json:"comment,omitempty"`
CommentID string `json:"comment_sysid,omitempty"`
Identifier string `json:"id,omitempty"`
IntComment string `json:"internal_comment,omitempty"`
IntCommentID string `json:"internal_comment_sysid,omitempty"`
Description string `json:"description,omitempty"`
ExtID string `json:"external_identifier,omitempty"`
IntID string `json:"internal_identifier,omitempty"`
Priority string `json:"priority,omitempty"`
Reporter string `json:"reporter_name,omitempty"`
Resolution string `json:"resolution,omitempty"`
ResolutionCode string `json:"resolution_code,omitempty"`
Service string `json:"business_service,omitempty"`
Status string `json:"status,omitempty"`
Summary string `json:"summary,omitempty"`
}
Incident is a type of ticket
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
Processor can implement client methods
type Values ¶
type Values struct {
Comment string `json:"comment,omitempty"`
Description string `json:"description,omitempty"`
Service []int `json:"customfield_10002,omitempty"`
SnowID string `json:"customfield_11824,omitempty"`
Summary string `json:"summary,omitempty"`
Priority *priority `json:"priority,omitempty"`
Resolution *resolution `json:"update,omitempty"`
Transition *transition `json:"transition,omitempty"`
}
Values make up the JSD payload
Click to show internal directories.
Click to hide internal directories.