Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyRef ¶
type KeyRef struct {
Hash, KeyID, WorkspaceID, UserID, TenantID string
}
KeyRef, Candidate, Resolution, Group and Metadata are internal only, never HTTP DTOs.
type Metrics ¶
type Metrics struct {
RequestCount uint64 `json:"request_count"`
SuccessCount uint64 `json:"success_count"`
SuccessRate float64 `json:"success_rate"`
InputTokens uint64 `json:"input_tokens"`
OutputTokens uint64 `json:"output_tokens"`
CachedTokens uint64 `json:"cached_tokens"`
CacheCreationTokens uint64 `json:"cache_creation_tokens"`
TotalTokens uint64 `json:"total_tokens"`
TotalCost string `json:"total_cost"`
}
type Resolution ¶
type Response ¶
type Response struct {
State string `json:"state"`
DataSource string `json:"data_source"`
Window *Window `json:"window"`
GeneratedAt *time.Time `json:"generated_at"`
Summary *Summary `json:"summary"`
Items []Item `json:"items"`
Unattributed *Metrics `json:"unattributed"`
Warnings []string `json:"warnings"`
}
Click to show internal directories.
Click to hide internal directories.