Class: LlmCostTracker::Dashboard::OverviewStatsData

Inherits:
Data
  • Object
show all
Defined in:
app/services/llm_cost_tracker/dashboard/overview_stats.rb

Instance Attribute Summary collapse

Instance Attribute Details

#average_cost_per_callObject (readonly)

Returns the value of attribute average_cost_per_call

Returns:

  • (Object)

    the current value of average_cost_per_call



5
6
7
# File 'app/services/llm_cost_tracker/dashboard/overview_stats.rb', line 5

def average_cost_per_call
  @average_cost_per_call
end

#average_latency_msObject (readonly)

Returns the value of attribute average_latency_ms

Returns:

  • (Object)

    the current value of average_latency_ms



5
6
7
# File 'app/services/llm_cost_tracker/dashboard/overview_stats.rb', line 5

def average_latency_ms
  @average_latency_ms
end

#calls_delta_percentObject (readonly)

Returns the value of attribute calls_delta_percent

Returns:

  • (Object)

    the current value of calls_delta_percent



5
6
7
# File 'app/services/llm_cost_tracker/dashboard/overview_stats.rb', line 5

def calls_delta_percent
  @calls_delta_percent
end

#cost_delta_percentObject (readonly)

Returns the value of attribute cost_delta_percent

Returns:

  • (Object)

    the current value of cost_delta_percent



5
6
7
# File 'app/services/llm_cost_tracker/dashboard/overview_stats.rb', line 5

def cost_delta_percent
  @cost_delta_percent
end

#monthly_budget_statusObject (readonly)

Returns the value of attribute monthly_budget_status

Returns:

  • (Object)

    the current value of monthly_budget_status



5
6
7
# File 'app/services/llm_cost_tracker/dashboard/overview_stats.rb', line 5

def monthly_budget_status
  @monthly_budget_status
end

#previous_total_callsObject (readonly)

Returns the value of attribute previous_total_calls

Returns:

  • (Object)

    the current value of previous_total_calls



5
6
7
# File 'app/services/llm_cost_tracker/dashboard/overview_stats.rb', line 5

def previous_total_calls
  @previous_total_calls
end

#previous_total_costObject (readonly)

Returns the value of attribute previous_total_cost

Returns:

  • (Object)

    the current value of previous_total_cost



5
6
7
# File 'app/services/llm_cost_tracker/dashboard/overview_stats.rb', line 5

def previous_total_cost
  @previous_total_cost
end

#total_callsObject (readonly)

Returns the value of attribute total_calls

Returns:

  • (Object)

    the current value of total_calls



5
6
7
# File 'app/services/llm_cost_tracker/dashboard/overview_stats.rb', line 5

def total_calls
  @total_calls
end

#total_costObject (readonly)

Returns the value of attribute total_cost

Returns:

  • (Object)

    the current value of total_cost



5
6
7
# File 'app/services/llm_cost_tracker/dashboard/overview_stats.rb', line 5

def total_cost
  @total_cost
end

#unknown_pricing_countObject (readonly)

Returns the value of attribute unknown_pricing_count

Returns:

  • (Object)

    the current value of unknown_pricing_count



5
6
7
# File 'app/services/llm_cost_tracker/dashboard/overview_stats.rb', line 5

def unknown_pricing_count
  @unknown_pricing_count
end