storage

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EvalEventWriter

type EvalEventWriter interface {
	AppendRows(ctx context.Context, events []*epproto.EvaluationEvent) (map[string]bool, error)
}

func NewEvalEventWriter

func NewEvalEventWriter(q writer.Writer, size int) EvalEventWriter

type GoalEventWriter

type GoalEventWriter interface {
	AppendRows(ctx context.Context, events []*epproto.GoalEvent) (map[string]bool, error)
}

func NewGoalEventWriter

func NewGoalEventWriter(q writer.Writer, size int) GoalEventWriter

type Storage

type Storage interface {
	SaveGetEvaluationLatencyMetricsEvent(tag, status string, duration time.Duration)
	SaveGetEvaluationSizeMetricsEvent(tag, status string, sizeByte int32)
	SaveTimeoutErrorCountMetricsEvent(tag string)
	SaveInternalErrorCountMetricsEvent(tag string)
	SaveLatencyMetricsEvent(tag, status, sdkVersion string, api eventproto.ApiId, duration time.Duration)
	SaveSizeMetricsEvent(tag, status, sdkVersion string, api eventproto.ApiId, sizeByte int32)
	SaveTimeoutErrorMetricsEvent(tag, sdkVersion string, api eventproto.ApiId)
	SaveInternalErrorMetricsEvent(tag, sdkVersion string, api eventproto.ApiId)
	SaveNetworkErrorMetricsEvent(tag, sdkVersion string, api eventproto.ApiId)
	SaveInternalSdkErrorMetricsEvent(tag, sdkVersion string, api eventproto.ApiId)
}

func NewStorage

func NewStorage(logger *zap.Logger, register metrics.Registerer) Storage

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
v2
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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