liquidm / ruby-druid

Ruby utilities for metamx druid
MIT License
43 stars 34 forks source link

dripl granularity formatting #15

Closed itszootime closed 10 years ago

itszootime commented 10 years ago
+-------------------------------+-------+---------+
| timestamp                     | dim   | metric  |
+-------------------------------+-------+---------+
| 2013-12-01T00:00:00.000+01:00 | 0     |
| 2013-12-01T00:00:00.000+01:00 | false | 5905355 |
| 2013-12-01T00:00:00.000+01:00 | true  | 2313231 |
| 2013-12-02T00:00:00.000+01:00 | 0     |
| 2013-12-02T00:00:00.000+01:00 | false | 3493253 |
| 2013-12-02T00:00:00.000+01:00 | true  | 4968431 |
| 2013-12-03T00:00:00.000+01:00 | 0     |
| 2013-12-03T00:00:00.000+01:00 | false | 5849210 |
| 2013-12-03T00:00:00.000+01:00 | true  | 8798012 |
+-------------------------------+-------+---------+

After

+---------------+---------------+
| dim           | metric        |
+---------------+---------------+
| 2013-12-01T00:00:00.000+01:00 |
+---------------+---------------+
|               | 0             |
| false         | 5905355       |
| true          | 2313231       |
+---------------+---------------+
| 2013-12-02T00:00:00.000+01:00 |
+---------------+---------------+
|               | 0             |
| false         | 3493253       |
| true          | 4968431       |
+---------------+---------------+
| 2013-12-03T00:00:00.000+01:00 |
+---------------+---------------+
|               | 0             |
| false         | 5849210       |
| true          | 8798012       |
+---------------+---------------+
hollow commented 10 years ago

:+1: