Class: LaunchDarkly::Server::AI::MetricSummary

Inherits:
Object
  • Object
show all
Defined in:
lib/server/ai/ai_config_tracker.rb

Overview

Summary of metrics which have been tracked.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMetricSummary

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

#durationObject

Returns the value of attribute duration.



30
31
32
# File 'lib/server/ai/ai_config_tracker.rb', line 30

def duration
  @duration
end

#feedbackObject

Returns the value of attribute feedback.



30
31
32
# File 'lib/server/ai/ai_config_tracker.rb', line 30

def feedback
  @feedback
end

#successObject

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_tokenObject

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

#usageObject

Returns the value of attribute usage.



30
31
32
# File 'lib/server/ai/ai_config_tracker.rb', line 30

def usage
  @usage
end