Class: Tiler::Widgets::StatusGrid
- Inherits:
-
Tiler::Widget
- Object
- Tiler::Widget
- Tiler::Widgets::StatusGrid
- Defined in:
- lib/tiler/widgets/status_grid.rb
Instance Attribute Summary
Attributes inherited from Tiler::Widget
Class Method Summary collapse
Methods inherited from Tiler::Widget
#data, #empty?, #initialize, #label, #partial, #query_class, supports_color_config?, supports_palette_config?
Constructor Details
This class inherits a constructor from Tiler::Widget
Class Method Details
.example_config ⇒ Object
62 63 64 65 |
# File 'lib/tiler/widgets/status_grid.rb', line 62 def self.example_config { "group_column" => "suite", "status_column" => "status", "sub_column" => "duration", "time_window" => "24h" } end |
.example_payload ⇒ Object
67 68 69 |
# File 'lib/tiler/widgets/status_grid.rb', line 67 def self.example_payload { "suite" => "checkout", "status" => "pass" } end |
.example_preview ⇒ Object
71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/tiler/widgets/status_grid.rb', line 71 def self.example_preview { "rows" => [ { "name" => "checkout", "status" => "pass", "last_status" => "pass", "pass" => 47, "fail" => 0, "warn" => 0, "total" => 47, "last_run" => "2026-04-23 09:30" }, { "name" => "search", "status" => "warn", "last_status" => "skipped", "pass" => 38, "fail" => 0, "warn" => 4, "total" => 42, "last_run" => "2026-04-23 09:25" }, { "name" => "payments", "status" => "fail", "last_status" => "error", "pass" => 22, "fail" => 8, "warn" => 1, "total" => 31, "last_run" => "2026-04-23 09:18" }, { "name" => "auth", "status" => "pass", "last_status" => "ok", "pass" => 51, "fail" => 0, "warn" => 0, "total" => 51, "last_run" => "2026-04-23 09:32" } ] } end |