class Airbrake::PerformanceBreakdown

rubocop:disable Metrics/ParameterLists
@since v4.2.0
@api public
@see Airbrake.notify_breakdown
doing certaing subtasks such as (DB querying, view rendering, etc).
PerformanceBreakdown holds data that shows how much time a request spent

def cargo

def cargo
  'routes'
end

def destination

def destination
  'routes-breakdowns'
end

def initialize(

def initialize(
  method:,
  route:,
  response_type:,
  groups:,
  timing: nil,
  time: Time.now
)
  @time_utc = TimeTruncate.utc_truncate_minutes(time)
  @method = method
  @route = route
  @response_type = response_type
  @groups = groups
  @timing = timing
  @time = time
end

def to_h

def to_h
  {
    'method' => method,
    'route' => route,
    'responseType' => response_type,
    'time' => @time_utc,
  }.delete_if { |_key, val| val.nil? }
end