Class: RubynCode::Observability::CostRecord
- Inherits:
-
Data
- Object
- Data
- RubynCode::Observability::CostRecord
- Defined in:
- lib/rubyn_code/observability/models.rb
Overview
Immutable record of a single API call’s cost, stored in the database.
Instance Attribute Summary collapse
-
#cache_read_tokens ⇒ Object
readonly
Returns the value of attribute cache_read_tokens.
-
#cache_write_tokens ⇒ Object
readonly
Returns the value of attribute cache_write_tokens.
-
#cost_usd ⇒ Object
readonly
Returns the value of attribute cost_usd.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#input_tokens ⇒ Object
readonly
Returns the value of attribute input_tokens.
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#output_tokens ⇒ Object
readonly
Returns the value of attribute output_tokens.
-
#request_type ⇒ Object
readonly
Returns the value of attribute request_type.
-
#session_id ⇒ Object
readonly
Returns the value of attribute session_id.
Instance Attribute Details
#cache_read_tokens ⇒ Object (readonly)
Returns the value of attribute cache_read_tokens
6 7 8 |
# File 'lib/rubyn_code/observability/models.rb', line 6 def cache_read_tokens @cache_read_tokens end |
#cache_write_tokens ⇒ Object (readonly)
Returns the value of attribute cache_write_tokens
6 7 8 |
# File 'lib/rubyn_code/observability/models.rb', line 6 def cache_write_tokens @cache_write_tokens end |
#cost_usd ⇒ Object (readonly)
Returns the value of attribute cost_usd
6 7 8 |
# File 'lib/rubyn_code/observability/models.rb', line 6 def cost_usd @cost_usd end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at
6 7 8 |
# File 'lib/rubyn_code/observability/models.rb', line 6 def created_at @created_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id
6 7 8 |
# File 'lib/rubyn_code/observability/models.rb', line 6 def id @id end |
#input_tokens ⇒ Object (readonly)
Returns the value of attribute input_tokens
6 7 8 |
# File 'lib/rubyn_code/observability/models.rb', line 6 def input_tokens @input_tokens end |
#model ⇒ Object (readonly)
Returns the value of attribute model
6 7 8 |
# File 'lib/rubyn_code/observability/models.rb', line 6 def model @model end |
#output_tokens ⇒ Object (readonly)
Returns the value of attribute output_tokens
6 7 8 |
# File 'lib/rubyn_code/observability/models.rb', line 6 def output_tokens @output_tokens end |
#request_type ⇒ Object (readonly)
Returns the value of attribute request_type
6 7 8 |
# File 'lib/rubyn_code/observability/models.rb', line 6 def request_type @request_type end |
#session_id ⇒ Object (readonly)
Returns the value of attribute session_id
6 7 8 |
# File 'lib/rubyn_code/observability/models.rb', line 6 def session_id @session_id end |