Class: Aidp::Harness::StatusDisplay::MetricsCalculator

Inherits:
Object
  • Object
show all
Defined in:
lib/aidp/harness/status_display.rb

Instance Method Summary collapse

Constructor Details

#initializeMetricsCalculator

Returns a new instance of MetricsCalculator.



798
799
800
# File 'lib/aidp/harness/status_display.rb', line 798

def initialize
  @calculators = {}
end

Instance Method Details

#calculate_metrics(raw_data) ⇒ Object



802
803
804
805
806
807
808
809
# File 'lib/aidp/harness/status_display.rb', line 802

def calculate_metrics(raw_data)
  {
    throughput: calculate_throughput(raw_data),
    error_rate: calculate_error_rate(raw_data),
    availability: calculate_availability(raw_data),
    performance_score: calculate_performance_score(raw_data)
  }
end