Sha256: 3de1ec598b28a95dbd7a563dece64e4ad3cb015cb61267f447ab201f3e7e1223

Contents?: true

Size: 605 Bytes

Versions: 9

Compression:

Stored size: 605 Bytes

Contents

<div class="bg-gray-200 p-4">
  <span class="mb-4 text-lg">High CPU Usage</span>

  <div>
    <% if scope.size == 0 %>
      <div class="bg-green-500 text-white text-3xl p-4">
        Everything is ok
      </div>
    <% else %>
      <div class="grid grid-cols-6 gap-4">
        <% scope.each do |snapshot| %>
          <%= render(RailsServerMonitor::Warnings::WarningComponent.new(ctx: ctx, snapshot: snapshot,
                                                                        warning: "#{snapshot.cpu_usage_percentage} % CPU USAGE"))%>
        <% end %>
      </div>
    <% end %>
  </div>
</div>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails-server-monitor-0.2.1 app/components/rails_server_monitor/warnings/high_cpu_usage_component.html.erb
rails-server-monitor-0.2.0 app/components/rails_server_monitor/warnings/high_cpu_usage_component.html.erb
rails-server-monitor-0.1.10 app/components/rails_server_monitor/warnings/high_cpu_usage_component.html.erb
rails-server-monitor-0.1.9 app/components/rails_server_monitor/warnings/high_cpu_usage_component.html.erb
rails-server-monitor-0.1.8 app/components/rails_server_monitor/warnings/high_cpu_usage_component.html.erb
rails-server-monitor-0.1.7 app/components/rails_server_monitor/warnings/high_cpu_usage_component.html.erb
rails-server-monitor-0.1.6 app/components/rails_server_monitor/warnings/high_cpu_usage_component.html.erb
rails-server-monitor-0.1.5 app/components/rails_server_monitor/warnings/high_cpu_usage_component.html.erb
rails-server-monitor-0.1.4 app/components/rails_server_monitor/warnings/high_cpu_usage_component.html.erb