Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RecordRelaySample ¶
func RecordRelaySample(info *relaycommon.RelayInfo, success bool, outputTokens int64)
Types ¶
type BucketPoint ¶
type GroupResult ¶
type ModelSummary ¶
type QueryParams ¶
type QueryResult ¶
type QueryResult struct {
ModelName string `json:"model_name"`
SeriesSchema string `json:"series_schema"`
Groups []GroupResult `json:"groups"`
}
func Query ¶
func Query(params QueryParams) (QueryResult, error)
type Store ¶
type Store interface {
Record(sample Sample)
Query(params QueryParams) (QueryResult, error)
}
type SummaryAllResult ¶
type SummaryAllResult struct {
Models []ModelSummary `json:"models"`
}
func QuerySummaryAll ¶
func QuerySummaryAll(hours int, groups []string) (SummaryAllResult, error)
Click to show internal directories.
Click to hide internal directories.