struct
Azu::PerformanceMetrics::CacheMetric
- Azu::PerformanceMetrics::CacheMetric
- Struct
- Value
- Object
Overview
Cache operation metrics
Included Modules
- JSON::Serializable
Defined in:
azu/performance_metrics.crConstructors
- .new(key : String, operation : String, store_type : String, processing_time : Float64, timestamp : Time, hit : Bool | Nil = nil, key_size : Int32 = 0, value_size : Int32 | Nil = nil, ttl : Time::Span | Nil = nil, error : String | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #error : String | Nil
- #hit : Bool | Nil
- #hit?
- #key : String
- #key_size : Int32
- #miss?
- #operation : String
- #processing_time : Float64
- #store_type : String
- #successful?
- #timestamp : Time
- #ttl : Time::Span | Nil
- #ttl_seconds
- #value_size : Int32 | Nil
Constructor Detail
def self.new(key : String, operation : String, store_type : String, processing_time : Float64, timestamp : Time, hit : Bool | Nil = nil, key_size : Int32 = 0, value_size : Int32 | Nil = nil, ttl : Time::Span | Nil = nil, error : String | Nil = nil)
#