Class: LaunchDarkly::Server::AI::MetricSummary
- Inherits:
-
Object
- Object
- LaunchDarkly::Server::AI::MetricSummary
- Defined in:
- lib/server/ai/ai_config_tracker.rb
Overview
Summary of metrics which have been tracked.
Instance Attribute Summary collapse
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#feedback ⇒ Object
Returns the value of attribute feedback.
-
#success ⇒ Object
Returns the value of attribute success.
-
#time_to_first_token ⇒ Object
Returns the value of attribute time_to_first_token.
-
#usage ⇒ Object
Returns the value of attribute usage.
Instance Method Summary collapse
-
#initialize ⇒ MetricSummary
constructor
A new instance of MetricSummary.
Constructor Details
#initialize ⇒ MetricSummary
Returns a new instance of MetricSummary.
32 33 34 35 36 37 38 |
# File 'lib/server/ai/ai_config_tracker.rb', line 32 def initialize @duration = nil @success = nil @feedback = nil @usage = nil @time_to_first_token = nil end |
Instance Attribute Details
#duration ⇒ Object
Returns the value of attribute duration.
30 31 32 |
# File 'lib/server/ai/ai_config_tracker.rb', line 30 def duration @duration end |
#feedback ⇒ Object
Returns the value of attribute feedback.
30 31 32 |
# File 'lib/server/ai/ai_config_tracker.rb', line 30 def feedback @feedback end |
#success ⇒ Object
Returns the value of attribute success.
30 31 32 |
# File 'lib/server/ai/ai_config_tracker.rb', line 30 def success @success end |
#time_to_first_token ⇒ Object
Returns the value of attribute time_to_first_token.
30 31 32 |
# File 'lib/server/ai/ai_config_tracker.rb', line 30 def time_to_first_token @time_to_first_token end |
#usage ⇒ Object
Returns the value of attribute usage.
30 31 32 |
# File 'lib/server/ai/ai_config_tracker.rb', line 30 def usage @usage end |