lambdareportmessages

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(msg string) interface{}

Parse will try to parse a Lamda Report Message

Types

type LambdaBaseMsg

type LambdaBaseMsg struct {
	Type      string `json:"type"`
	RequestID string `json:"requestId"`
}

type LambdaReportMsg

type LambdaReportMsg struct {
	LambdaBaseMsg
	Duration           string `json:"duration"`
	DurationUnit       string `json:"durationUnit"`
	BilledDuration     string `json:"billedDuration"`
	BilledDurationUnit string `json:"billedDurationUnit"`
	MemorySize         string `json:"memorySize"`
	MemorySizeUnit     string `json:"memorySizeUnit"`
	MaxMemoryUsed      string `json:"maxMemoryUsed"`
	MaxMemoryUsedUnit  string `json:"maxMemoryUsedUnit"`
}

Jump to

Keyboard shortcuts

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