struct Azu::PerformanceMetrics::ComponentMetric

Overview

Component lifecycle metrics

Included Modules

Defined in:

azu/performance_metrics.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(component_id : String, component_type : String, event : String, timestamp : Time, processing_time : Float64 | Nil = nil, memory_before : Int64 | Nil = nil, memory_after : Int64 | Nil = nil, age_at_event : Time::Span | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def age_at_event : Time::Span | Nil #

[View source]
def component_id : String #

[View source]
def component_type : String #

[View source]
def event : String #

[View source]
def memory_after : Int64 | Nil #

[View source]
def memory_before : Int64 | Nil #

[View source]
def memory_delta #

[View source]
def processing_time : Float64 | Nil #

[View source]
def timestamp : Time #

[View source]