Add IOPS and bytes preset variables to VOLUME
usage type
#10326
+216
−10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds the following preset variables to the activation rules of
VOLUME
Quota tariffs:Disk Offering:
value.diskOffering.bytesReadRate
: returns along
with the bytes read rate of the disk offering;value.diskOffering.bytesReadBurst
: returns along
with the burst bytes read rate of the disk offering;value.diskOffering.bytesReadBurstLength
: returns the length, in seconds, of the bytes read rate burst;value.diskOffering.bytesWriteRate
: returns along
with the bytes write rate of the disk offering;value.diskOffering.bytesWriteBurst
: returns along
with the burst bytes write rate of the disk offering;value.diskOffering.bytesWriteBurstLength
: returns the length, in seconds, of the bytes write rate burst;value.diskOffering.iopsReadRate
: returns along
with the I/O requests read rate of the disk offering;value.diskOffering.iopsReadBurst
: returns along
with the burst I/O requests read rate of the disk offering;value.diskOffering.iopsReadBurstLength
: returns the length, in seconds, of the IOPS read burst in seconds;value.diskOffering.iopsWriteRate
: returns along
with the I/O requests write rate of the disk offering;value.diskOffering.iopsWriteBurst
: returns along
with the burst I/O requests write rate of the disk offering;value.diskOffering.iopsWriteBurstLength
: returns the length, in seconds, of the IOPS write burst.Volume:
value.volumeType
: the volume type. Values can be:UNKNOWN
,ROOT
,SWAP
,DATADISK
andISO
.Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
How Has This Been Tested?
First, I executed the
quotaPresetVariablesList
API using the parameterusagetype=6
, and it listed all the new preset variables.Then, in the
Create Quota Tariff
form, I checked if the presets were available for different usage types by using them in an activation rule and pressing theValidate activation rule
button. As expected, theVOLUME
usage type was the only one that didn't result in an error.Finally, for each preset variable, I created a tariff using them, and the tariff was applied in every case, as expected.