Display RHEL and OCP hours for each account
Summary
As a customer, I want to see the cumulative running hours alongside each individual account row so that I can understand how that account contributed to the overall total running hours.
Observe specifically the clock icons and numbers of hours for each account line in this mockup as annotated by the purple rectangles: Screenshot taken on 2018-10-16 from https://redhat.invisionapp.com/share/UFI078IZVAW#/screens/296433286
Acceptance Criteria
-
Verify an account with no usage during the selected time period shows "0 hours" -
Verify an account with only RHEL images used during the selected time period shows "X hours" by the RHEL label -
Verify an account with only OCP images used during the selected time period shows "X hours" by the RHOCP label -
Verify an account with both RHEL and OCP images used during the selected time period shows "X hours" by the RHEL label and "Y hours" by the RHOCP label -
Verify that the displayed hours are always rounded up to the nearest integer -
Verify that the tooltips over the RHEL/RHOCP labels are updated to reflect their new meanings (hours). -
Verify that user-facing documentation exists and is updated to describe the expected behaviors of the list info. -
Updated dashboard behavior concept info is here (The Cloud Meter dashboard and subsections until you get to flagging info): https://docs.google.com/document/d/1O2vBNGkP8zRLRzdrbWb9C8RpkBDFGpmbImuipmo7HcA/edit#heading=h.casn8q2useae
-
Assumptions and Questions
- This story is not intended to include the additional miniature graphs seen in the mockup.
- The API output from
/api/v1/report/accounts/
should be updated to include additional information to show the cumulative hours of RHEL and OCP for image instances. Possible straw-man example response snippet:{ "arn": "arn:aws:iam::114204391493:role/role-for-cloudigrade", "cloud_account_id": "114204391493", "creation_date": "2018-07-06T15:09:21.442412Z", "id": 1, "images": null, "instances": null, "name": "account-for-aiken", "openshift_instances": null, "openshift_runtime_seconds": 0.0, "rhel_instances": null, "rhel_runtime_seconds": 0.0, "type": "aws", "user_id": 1 },
Edited by Maribeth Pierce