report

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FailureReport

type FailureReport struct {
	ReportMetric     `json:",omitempty"`
	ColdStartSuccess ReportMetric `json:",omitempty"`
	ColdStartFailure ReportMetric `json:",omitempty"`
	ExecutionFailure ReportMetric `json:",omitempty"`
}

type MetricMap

type MetricMap map[string]counters.Metric

func (MetricMap) Report

func (m MetricMap) Report(projectId string, resourceId string) Report

type Report

type Report struct {
	Success SuccessReport `json:",omitempty"`
	Failure FailureReport `json:",omitempty"`
}

func (Report) String

func (r Report) String() string

type ReportMetric

type ReportMetric struct {
	Count uint64        `json:",omitempty"`
	Time  time.Duration `json:",omitempty"`
}

func (ReportMetric) Average

func (r ReportMetric) Average() time.Duration

type SuccessReport

type SuccessReport struct {
	ReportMetric `json:",omitempty"`
	ColdStart    ReportMetric `json:",omitempty"`
	Execution    ReportMetric `json:",omitempty"`
}

Jump to

Keyboard shortcuts

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