-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add IOPS and bytes preset variables to VOLUME usage type
#10326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,165 @@ | ||
| // Licensed to the Apache Software Foundation (ASF) under one | ||
| // or more contributor license agreements. See the NOTICE file | ||
| // distributed with this work for additional information | ||
| // regarding copyright ownership. The ASF licenses this file | ||
| // to you under the Apache License, Version 2.0 (the | ||
| // "License"); you may not use this file except in compliance | ||
| // with the License. You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, | ||
| // software distributed under the License is distributed on an | ||
| // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| // KIND, either express or implied. See the License for the | ||
| // specific language governing permissions and limitations | ||
| // under the License. | ||
|
|
||
| package org.apache.cloudstack.quota.activationrule.presetvariables; | ||
|
|
||
| public class DiskOffering extends GenericPresetVariable { | ||
|
|
||
| @PresetVariableDefinition(description = "A long informing the bytes read rate of the disk offering.") | ||
| private Long bytesReadRate; | ||
|
|
||
| @PresetVariableDefinition(description = "A long informing the burst bytes read rate of the disk offering.") | ||
| private Long bytesReadBurst; | ||
|
|
||
| @PresetVariableDefinition(description = "The length (in seconds) of the bytes read burst.") | ||
| private Long bytesReadBurstLength; | ||
|
|
||
| @PresetVariableDefinition(description = "A long informing the bytes write rate of the disk offering.") | ||
| private Long bytesWriteRate; | ||
|
|
||
| @PresetVariableDefinition(description = "A long informing the burst bytes write rate of the disk offering.") | ||
| private Long bytesWriteBurst; | ||
|
|
||
| @PresetVariableDefinition(description = "The length (in seconds) of the bytes write burst.") | ||
| private Long bytesWriteBurstLength; | ||
|
|
||
| @PresetVariableDefinition(description = "A long informing the I/O requests read rate of the disk offering.") | ||
| private Long iopsReadRate; | ||
|
|
||
| @PresetVariableDefinition(description = "A long informing the burst I/O requests read rate of the disk offering.") | ||
| private Long iopsReadBurst; | ||
|
|
||
| @PresetVariableDefinition(description = "The length (in seconds) of the IOPS read burst.") | ||
| private Long iopsReadBurstLength; | ||
|
|
||
| @PresetVariableDefinition(description = "A long informing the I/O requests write rate of the disk offering.") | ||
| private Long iopsWriteRate; | ||
|
|
||
| @PresetVariableDefinition(description = "A long informing the burst I/O requests write rate of the disk offering.") | ||
| private Long iopsWriteBurst; | ||
|
|
||
| @PresetVariableDefinition(description = "The length (in seconds) of the IOPS write burst.") | ||
| private Long iopsWriteBurstLength; | ||
|
|
||
| public Long getBytesReadRate() { | ||
| return bytesReadRate; | ||
| } | ||
|
Check warning on line 60 in framework/quota/src/main/java/org/apache/cloudstack/quota/activationrule/presetvariables/DiskOffering.java
|
||
|
|
||
| public void setBytesReadRate(Long bytesReadRate) { | ||
| this.bytesReadRate = bytesReadRate; | ||
| fieldNamesToIncludeInToString.add("bytesReadRate"); | ||
| } | ||
|
|
||
| public Long getBytesReadBurst() { | ||
| return bytesReadBurst; | ||
| } | ||
|
Check warning on line 69 in framework/quota/src/main/java/org/apache/cloudstack/quota/activationrule/presetvariables/DiskOffering.java
|
||
|
|
||
| public void setBytesReadBurst(Long bytesReadBurst) { | ||
| this.bytesReadBurst = bytesReadBurst; | ||
| fieldNamesToIncludeInToString.add("bytesReadBurst"); | ||
| } | ||
|
|
||
| public Long getBytesReadBurstLength() { | ||
| return bytesReadBurstLength; | ||
| } | ||
|
Check warning on line 78 in framework/quota/src/main/java/org/apache/cloudstack/quota/activationrule/presetvariables/DiskOffering.java
|
||
|
|
||
| public void setBytesReadBurstLength(Long bytesReadBurstLength) { | ||
| this.bytesReadBurstLength = bytesReadBurstLength; | ||
| fieldNamesToIncludeInToString.add("bytesReadBurstLength"); | ||
| } | ||
|
|
||
| public Long getBytesWriteRate() { | ||
| return bytesWriteRate; | ||
| } | ||
|
Check warning on line 87 in framework/quota/src/main/java/org/apache/cloudstack/quota/activationrule/presetvariables/DiskOffering.java
|
||
|
|
||
| public void setBytesWriteRate(Long bytesWriteRate) { | ||
| this.bytesWriteRate = bytesWriteRate; | ||
| fieldNamesToIncludeInToString.add("bytesWriteRate"); | ||
| } | ||
|
|
||
| public Long getBytesWriteBurst() { | ||
| return bytesWriteBurst; | ||
| } | ||
|
Check warning on line 96 in framework/quota/src/main/java/org/apache/cloudstack/quota/activationrule/presetvariables/DiskOffering.java
|
||
|
|
||
| public void setBytesWriteBurst(Long bytesWriteBurst) { | ||
| this.bytesWriteBurst = bytesWriteBurst; | ||
| fieldNamesToIncludeInToString.add("bytesWriteBurst"); | ||
| } | ||
|
|
||
| public Long getBytesWriteBurstLength() { | ||
| return bytesWriteBurstLength; | ||
| } | ||
|
Check warning on line 105 in framework/quota/src/main/java/org/apache/cloudstack/quota/activationrule/presetvariables/DiskOffering.java
|
||
|
|
||
| public void setBytesWriteBurstLength(Long bytesWriteBurstLength) { | ||
| this.bytesWriteBurstLength = bytesWriteBurstLength; | ||
| fieldNamesToIncludeInToString.add("bytesWriteBurstLength"); | ||
| } | ||
|
|
||
| public Long getIopsReadRate() { | ||
| return iopsReadRate; | ||
| } | ||
|
Check warning on line 114 in framework/quota/src/main/java/org/apache/cloudstack/quota/activationrule/presetvariables/DiskOffering.java
|
||
|
|
||
| public void setIopsReadRate(Long iopsReadRate) { | ||
| this.iopsReadRate = iopsReadRate; | ||
| fieldNamesToIncludeInToString.add("iopsReadRate"); | ||
| } | ||
|
|
||
| public Long getIopsReadBurst() { | ||
| return iopsReadBurst; | ||
| } | ||
|
Check warning on line 123 in framework/quota/src/main/java/org/apache/cloudstack/quota/activationrule/presetvariables/DiskOffering.java
|
||
|
|
||
| public void setIopsReadBurst(Long iopsReadBurst) { | ||
| this.iopsReadBurst = iopsReadBurst; | ||
| fieldNamesToIncludeInToString.add("iopsReadBurst"); | ||
| } | ||
|
|
||
| public Long getIopsReadBurstLength() { | ||
| return iopsReadBurstLength; | ||
| } | ||
|
Check warning on line 132 in framework/quota/src/main/java/org/apache/cloudstack/quota/activationrule/presetvariables/DiskOffering.java
|
||
|
|
||
| public void setIopsReadBurstLength(Long iopsReadBurstLength) { | ||
| this.iopsReadBurstLength = iopsReadBurstLength; | ||
| fieldNamesToIncludeInToString.add("iopsReadBurstLength"); | ||
| } | ||
|
|
||
| public Long getIopsWriteRate() { | ||
| return iopsWriteRate; | ||
| } | ||
|
Check warning on line 141 in framework/quota/src/main/java/org/apache/cloudstack/quota/activationrule/presetvariables/DiskOffering.java
|
||
|
|
||
| public void setIopsWriteRate(Long iopsWriteRate) { | ||
| this.iopsWriteRate = iopsWriteRate; | ||
| fieldNamesToIncludeInToString.add("iopsWriteRate"); | ||
| } | ||
|
|
||
| public Long getIopsWriteBurst() { | ||
| return iopsWriteBurst; | ||
| } | ||
|
Check warning on line 150 in framework/quota/src/main/java/org/apache/cloudstack/quota/activationrule/presetvariables/DiskOffering.java
|
||
|
|
||
| public void setIopsWriteBurst(Long iopsWriteBurst) { | ||
| this.iopsWriteBurst = iopsWriteBurst; | ||
| fieldNamesToIncludeInToString.add("iopsWriteBurst"); | ||
| } | ||
|
|
||
| public Long getIopsWriteBurstLength() { | ||
| return iopsWriteBurstLength; | ||
| } | ||
|
Check warning on line 159 in framework/quota/src/main/java/org/apache/cloudstack/quota/activationrule/presetvariables/DiskOffering.java
|
||
|
|
||
| public void setIopsWriteBurstLength(Long iopsWriteBurstLength) { | ||
| this.iopsWriteBurstLength = iopsWriteBurstLength; | ||
| fieldNamesToIncludeInToString.add("iopsWriteBurstLength"); | ||
| } | ||
| } | ||
lucas-a-martins marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
Uh oh!
There was an error while loading. Please reload this page.