Calculate the total uptime in full hours for all servers. Uptime is the duration between a START event and the subsequent STOP event.
| server_id(INTEGER) | status(VARCHAR) | event_time(TIMESTAMP) |
|---|---|---|
| 1 | start | 2024-01-01 10:00:00 |
| 1 | stop | 2024-01-01 12:30:00 |
| 2 | start | 2024-01-01 13:00:00 |
| 2 | stop | 2024-01-01 15:00:00 |
| server_id(INTEGER) | instance_type(VARCHAR) |
|---|---|
| 1 | m5.large |
| server_id(INTEGER) | region(VARCHAR) |
|---|---|
| 1 | us-east-1 |
| total_uptime_hours(INTEGER) |
|---|
| 4 |