struct CQL::Performance::PerformanceMetrics::QueryMetrics

Overview

Query performance metrics

Defined in:

performance/performance_metrics.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(total_queries : Int64, slow_queries : Int64, very_slow_queries : Int64, error_queries : Int64, total_execution_time : Time::Span, avg_execution_time : Time::Span, min_execution_time : Time::Span, max_execution_time : Time::Span, error_rate : Float64, queries_per_second : Float64, slow_query_rate : Float64, latency : LatencyPercentiles = LatencyPercentiles.zero) #

[View source]

Instance Method Detail

def avg_execution_time : Time::Span #

[View source]
def error_queries : Int64 #

[View source]
def error_rate : Float64 #

[View source]
def latency : LatencyPercentiles #

[View source]
def max_execution_time : Time::Span #

[View source]
def min_execution_time : Time::Span #

[View source]
def queries_per_second : Float64 #

[View source]
def slow_queries : Int64 #

[View source]
def slow_query_rate : Float64 #

[View source]
def to_h : Hash(String, JSON::Any) #

[View source]
def total_execution_time : Time::Span #

[View source]
def total_queries : Int64 #

[View source]
def very_slow_queries : Int64 #

[View source]