Sha256: edcea7fa88b2abb63d8dbc2ec5cdffee688c12460724a59c6569807a6b7e1786

Contents?: true

Size: 777 Bytes

Versions: 7

Compression:

Stored size: 777 Bytes

Contents

<% set_title "System Metric details for #{@metric.name}:#{@metric.id}" -%>
<% set_page_title "#{@metric.name}:#{@metric.id}" -%>

<div id="metric-details">
  <h2><%= @metric.duration %> ms</h2>
  <dl>
    <dt>When</dt>
    <dd><%= distance_of_time_in_words_to_now @metric.started_at, true %> ago</dd>
  <% @metric.payload.each do |key, value| -%>
    <dt><%= key.to_s.titleize %></dt>
    <dd><%= value.kind_of?(String) ? value : value.inspect %></dd>
  <% end -%>
  </dl>
</div>

<div id="metric-children">
  <h2>Child Metrics</h2>
  <%= render :partial => "metric_table",
    :locals => {
      :metrics => @metric.children.order('duration DESC'),
      :include_children => true, 
      :columns => [:name, :identifier, :duration]
    } %>
</div>

<div class="clear"></div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
system-metrics-0.2.5 app/views/system_metrics/metrics/show.html.erb
system-metrics-0.2.4 app/views/system_metrics/metrics/show.html.erb
system-metrics-0.2.3 app/views/system_metrics/metrics/show.html.erb
system-metrics-0.2.2 app/views/system_metrics/metrics/show.html.erb
system-metrics-0.2.1 app/views/system_metrics/metrics/show.html.erb
system-metrics-0.2.0 app/views/system_metrics/metrics/show.html.erb
system-metrics-0.1.0 app/views/system_metrics/metrics/show.html.erb