struct Azu::PerformanceMetrics::RequestMetric

Overview

Request-specific metrics

Included Modules

Defined in:

azu/performance_metrics.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(endpoint : String, method : String, path : String, processing_time : Float64, memory_before : Int64, memory_after : Int64, status_code : Int32, timestamp : Time, request_id : String | Nil = nil) #

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

[View source]

Instance Method Detail

def endpoint : String #

[View source]
def error? #

[View source]
def memory_after : Int64 #

[View source]
def memory_before : Int64 #

[View source]
def memory_delta : Int64 #

[View source]
def memory_usage_mb #

[View source]
def method : String #

[View source]
def path : String #

[View source]
def processing_time : Float64 #

[View source]
def request_id : String | Nil #

[View source]
def status_code : Int32 #

[View source]
def timestamp : Time #

[View source]