Class: LlmCostTracker::Dashboard::TopModel

Inherits:
Data
  • Object
show all
Defined in:
app/services/llm_cost_tracker/dashboard/top_models.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/top_models.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/top_models.rb', line 5

def average_latency_ms
  @average_latency_ms
end

#callsObject (readonly)

Returns the value of attribute calls

Returns:

  • (Object)

    the current value of calls



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

def calls
  @calls
end

#input_tokensObject (readonly)

Returns the value of attribute input_tokens

Returns:

  • (Object)

    the current value of input_tokens



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

def input_tokens
  @input_tokens
end

#modelObject (readonly)

Returns the value of attribute model

Returns:

  • (Object)

    the current value of model



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

def model
  @model
end

#output_tokensObject (readonly)

Returns the value of attribute output_tokens

Returns:

  • (Object)

    the current value of output_tokens



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

def output_tokens
  @output_tokens
end

#providerObject (readonly)

Returns the value of attribute provider

Returns:

  • (Object)

    the current value of provider



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

def provider
  @provider
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/top_models.rb', line 5

def total_cost
  @total_cost
end