analytics

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: AGPL-3.0 Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnalyticsAutoStrategyGet

func AnalyticsAutoStrategyGet(ctx context.Context, groupID *int) ([]model.AutoStrategySnapshotItem, error)

AnalyticsAutoStrategyGet returns Auto strategy runtime snapshot.

func AnalyticsChannelModelBreakdownGet

func AnalyticsChannelModelBreakdownGet(ctx context.Context, r model.AnalyticsRange, groupID *int) ([]model.AnalyticsChannelModelItem, error)

AnalyticsChannelModelBreakdownGet returns (channel,model) cross-dimensional stats.

func AnalyticsGroupHealthGet

func AnalyticsGroupHealthGet(ctx context.Context) ([]model.AnalyticsGroupHealthItem, error)

func AnalyticsLatencyDistributionGet

func AnalyticsLatencyDistributionGet(ctx context.Context, r model.AnalyticsRange, modelFilter string) (*model.LatencyDistribution, error)

AnalyticsLatencyDistributionGet returns latency and FTUT distribution for the given range.

func AnalyticsLatencyModelsGet

func AnalyticsLatencyModelsGet(ctx context.Context, r model.AnalyticsRange) ([]string, error)

AnalyticsLatencyModelsGet returns the distinct request_model_name values present in relay_logs (DB + in-memory cache) within the given range, for populating the model filter.

func AnalyticsModelLatencyListGet

func AnalyticsModelLatencyListGet(ctx context.Context, r model.AnalyticsRange) ([]model.ModelLatencyItem, error)

AnalyticsModelLatencyListGet returns per-model latency stats for all models in the time range.

func AnalyticsOverviewGet

func AnalyticsOverviewGet(ctx context.Context, r model.AnalyticsRange, userID *uint) (*model.AnalyticsOverview, error)

AnalyticsOverviewGet returns aggregate analytics for the given range. When userID is non-nil, only that user's API keys are counted (multi-tenant isolation).

Types

This section is empty.

Jump to

Keyboard shortcuts

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