Open NewOlya opened 5 years ago
@rodichenko The Add quota button should be hidden if Overall quota has been already configured in the correspond section at the Quotas/Compute instances/Storages tab.
@mzueva , @sidoruka
Only Admins and users with the ROLE_BILLING_MANAGER shall have the ability to see exceeded billing quotas in the Users management table.
Regular user should see his quotas (his own quotas, his groups and roles quotas) on the Billing charts.
@mzueva Billing Quota to Billing centers with action Stop all jobs is applied to admin members of Billing center: all active jobs with admin user owners are stopped as well as for non-admin owners when quota is exceeded.
Test cases were created by https://github.com/epam/cloud-pipeline/pull/2705 and located here.
Background
The Cloud-Pipeline Billing (spending reports) is implemented and users can view their spendings for different periods. Now, it would be convenient for administrators to have the ability to configure spending quotas - to manage money limits of the platform usage and define different restrictions for users when these limits are achieved that may allow to reduce global spending of the Platform usage.
Approach
50%
/75%
/100%
), upon reaching which specific actions shall be performed by the platform. Thresholds shall be specified manually, value can be more than100%
. For each quota, any count of thresholds can be set.At the same time:
1000
for a user and only100
for the billing center of that userBILLING_QUOTA_EXCEEDING
. This template should be used at case of reaching any threshold of any quota. Notification type should include:Use cases
Add quota for the whole Platform
To add quota for a whole Platform:
quota * threshold / 100
)After the saving, the following info should additionally appear in the Global section at the Quotas tab:
To view the Platform quota details, user should click the quota row or a link with a count of configured pairs of threshold-action. Quota can not be edited, only removed.
Add quota to overall of the entity
To add quota to overall the entity (Compute instances or Storages):
To view the overall quota details, user should click the quota row or a link with a count of configured pairs of threshold-action. Quota can not be edited, only removed.
Add quota to billing center
To add quota to a billing center:
To view created quota details, user should click the quota row or a link with a count of configured pairs of threshold-action. Quota can not be edited, only removed. To add quota for other billing center, user should click the Add quota button in the "Billing centers" section and repeat the described procedure.
Add quota to group
Adding a quota to the users group is similar to described in section about adding a quota to Billing center. With the difference - instead the field to specify a billing center here the field to specify the users group.
Note: even if informed users are not specified at quota saving - notifies shall be sent to all users in that group at any threshold reaching.
Add quota to user
Adding a quota to the user is similar to described in section about adding a quota to Billing center. With the difference - instead the field to specify a billing center here the field to specify the user.
Note: even if informed users are not specified at quota saving - notifies shall be sent to the user for whom the quota is configured at any threshold reaching.