Class: LlmCostTracker::Ledger::Call
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- LlmCostTracker::Ledger::Call
- Extended by:
- CallMetrics, Period::Grouping
- Includes:
- Tags::Accessors
- Defined in:
- app/models/llm_cost_tracker/ledger/call.rb
Class Method Summary collapse
Methods included from Period::Grouping
Methods included from CallMetrics
average_latency_ms, cost_by_model, cost_by_provider, cost_by_tag, group_by_tag, latency_by_model, latency_by_provider, tag_value_expression, total_cost, total_tokens
Methods included from Tags::Accessors
Class Method Details
.by_tag(key, value) ⇒ Object
36 37 38 |
# File 'app/models/llm_cost_tracker/ledger/call.rb', line 36 def self.by_tag(key, value) (key => value) end |