Documentation
¶
Index ¶
Constants ¶
View Source
const ChartLimit = 12
View Source
const SessionOptionLimit = 100
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Facets ¶
type Facets struct {
Providers, Models, Harnesses, Sessions []string
Repositories, Directories []querymodel.LocationOption
Revision, Generation, InputRevision int64
DatabaseID, DatasetID string
}
Facets contains filter choices from one dataset and one read snapshot.
type ProcessingStatus ¶
type ProcessingStatus struct {
Metadata dataengine.Metadata
Pending int64
Failed int64 // Pending scopes with a durable error; completed scopes are excluded.
FailedRetryAtMs int64 // Earliest retry time among failed pending scopes.
Hostname string
}
ProcessingStatus describes one dataset without exposing storage to HTTP adapters.
type Query ¶
type Repository ¶
type Repository interface {
// Dashboard clamps page after counting; rows, summary and revisions agree.
Dashboard(context.Context, Query, time.Time) (Dashboard, error)
// AllDashboard returns complete sorted rows or an error when the limit is
// exceeded, never a successful truncation or separately snapshotted pages.
AllDashboard(context.Context, Query, time.Time, int) (Dashboard, error)
// Each call owns its snapshot; separate calls may observe newer revisions.
Facets(context.Context, Query, string, time.Time) (Facets, error)
// Status distinguishes accepted inputs, published revision and rebuild target.
Status(context.Context) (ProcessingStatus, error)
}
Repository reads one authorized dataset. Implementations must return rows, totals and publication metadata from a consistent snapshot. No query can select a different dataset through user-supplied filter values.
type Row ¶
type Row struct {
Key string
Name string
Harness string
Provider string
Model string
Date int64
Sessions int64
Input int64
Output int64
Reasoning int64
CacheRead int64
CacheWrite int64
Total int64
Context int64
AverageContext int64
MedianContext int64
MaxContext int64
LocationKey string
LocationName string
DirectoryNames []string
HasUnknownDirectory bool
RepositoryKey string
RepositoryName string
}
Row is a numeric analytics result, independent of API transport.
Click to show internal directories.
Click to hide internal directories.