metric

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppendRequestsPerSecond = "append_requests_per_second"
	AppendBytesPerSecond    = "append_bytes_per_second"
	AppendDurationMillis    = "append_durations_ms"
	SubscribeLogsPerSecond  = "subscribe_logs_per_second"
	SubscribeBytesPerSecond = "subscribe_bytes_per_second"
	EndToEndLatencyMillis   = "end_to_end_latency_ms"
)

Variables

This section is empty.

Functions

func InitTable

func InitTable(ctx context.Context, db *sql.DB) error

Types

type Metric

type Metric struct {
	ID          uint64
	Name        string
	Description string
}

func Get

func Get(ctx context.Context, db *sql.DB, name string) (Metric, error)

func List

func List(ctx context.Context, db *sql.DB) ([]Metric, error)

Jump to

Keyboard shortcuts

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