weizhouapache edited a comment on pull request #5259:
URL: https://github.com/apache/cloudstack/pull/5259#issuecomment-909312514
@Pearl1594 updated this pr.
the records in cloud_usage looks like
```
mysql> select raw_usage, usage_display, size, virtual_size, start_date,
end_date, usage_id, description from cloud_usage where usage_type=28;
+------------------------+---------------+------+--------------+---------------------+---------------------+----------+------------------------------------------------------------------+
| raw_usage | usage_display | size | virtual_size | start_date
| end_date | usage_id | description
|
+------------------------+---------------+------+--------------+---------------------+---------------------+----------+------------------------------------------------------------------+
...
| 0.0833333358168602 | 0.083333 Hrs | 1000 | 100 | 2021-08-31
14:31:34 | 2021-08-31 14:36:34 | 68 | Backup usage VM ID: 68, backup
offering: 1 |
| 0.06708250194787979 | 0.067083 Hrs | 1000 | 100 | 2021-08-31
14:36:34 | 2021-08-31 14:41:34 | 68 | Backup usage VM ID: 68, backup
offering: 1 |
| 0.0033336111810058355 | 0.003334 Hrs | 0 | 0 | 2021-08-31
14:36:34 | 2021-08-31 14:41:34 | 68 | Backup usage VM ID: 68, backup
offering: 2 |
| 0.009029166772961617 | 0.009029 Hrs | 0 | 0 | 2021-08-31
14:36:34 | 2021-08-31 14:41:34 | 68 | Backup usage VM ID: 68, backup
offering: 1 |
| 0.08333361148834229 | 0.083334 Hrs | 1000 | 100 | 2021-08-31
14:41:34 | 2021-08-31 14:46:34 | 68 | Backup usage VM ID: 68, backup
offering: 1 |
```
main changes
(1) display hours instead of size in raw_usage (see Option 1 in #4982)
(2) create a record for each backup offering in a period (consider there are
multiple backup offering if we remove/assign vm from/to backup offering).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]