Skip to content
5 changes: 5 additions & 0 deletions api/src/main/java/org/apache/cloudstack/api/ApiConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ public class ApiConstants {
public static final String DIRECT_DOWNLOAD = "directdownload";
public static final String DISK_OFFERING_ID = "diskofferingid";
public static final String NEW_DISK_OFFERING_ID = "newdiskofferingid";
public static final String DISK_KBS_READ = "diskkbsread";
public static final String DISK_KBS_WRITE = "diskkbswrite";
public static final String DISK_IO_READ = "diskioread";
public static final String DISK_IO_WRITE = "diskiowrite";
public static final String DISK_IO_PSTOTAL = "diskiopstotal";
public static final String DISK_SIZE = "disksize";
public static final String UTILIZATION = "utilization";
public static final String DRIVER = "driver";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,11 @@ public class UserVmResponse extends BaseResponseWithTagInformation implements Co
@Param(description = "the outgoing network traffic on the host")
private Long networkKbsWrite;

@SerializedName("diskkbsread")
@SerializedName(ApiConstants.DISK_KBS_READ)
@Param(description = "the read (bytes) of disk on the vm")
private Long diskKbsRead;

@SerializedName("diskkbswrite")
@SerializedName(ApiConstants.DISK_KBS_WRITE)
@Param(description = "the write (bytes) of disk on the vm")
private Long diskKbsWrite;

Expand All @@ -208,11 +208,11 @@ public class UserVmResponse extends BaseResponseWithTagInformation implements Co
@Param(description = "the target memory in vm")
private Long memoryTargetKBs;

@SerializedName("diskioread")
@SerializedName(ApiConstants.DISK_IO_READ)
@Param(description = "the read (io) of disk on the vm")
private Long diskIORead;

@SerializedName("diskiowrite")
@SerializedName(ApiConstants.DISK_IO_WRITE)
@Param(description = "the write (io) of disk on the vm")
private Long diskIOWrite;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,18 @@
// under the License.
package org.apache.cloudstack.api.response;

import com.cloud.serializer.Param;
import com.cloud.storage.Volume;
import com.google.gson.annotations.SerializedName;
import java.util.Date;
import java.util.LinkedHashSet;
import java.util.Set;

import org.apache.cloudstack.acl.RoleType;
import org.apache.cloudstack.api.ApiConstants;
import org.apache.cloudstack.api.BaseResponseWithTagInformation;
import org.apache.cloudstack.api.EntityReference;

import java.util.Date;
import java.util.LinkedHashSet;
import java.util.Set;
import com.cloud.serializer.Param;
import com.cloud.storage.Volume;
import com.google.gson.annotations.SerializedName;

@EntityReference(value = Volume.class)
@SuppressWarnings("unused")
Expand Down Expand Up @@ -152,13 +153,29 @@ public class VolumeResponse extends BaseResponseWithTagInformation implements Co
private Long bytesWriteRate;

@SerializedName("diskIopsReadRate")
@Param(description = "io requests read rate of the disk volume")
@Param(description = "io requests read rate of the disk volume per the disk offering")
private Long iopsReadRate;

@SerializedName("diskIopsWriteRate")
@Param(description = "io requests write rate of the disk volume")
@Param(description = "io requests write rate of the disk volume per the disk offering")
private Long iopsWriteRate;

@SerializedName(ApiConstants.DISK_KBS_READ)
@Param(description = "the read (bytes) of disk on the vm")
private Long diskKbsRead;

@SerializedName(ApiConstants.DISK_KBS_WRITE)
@Param(description = "the write (bytes) of disk on the vm")
private Long diskKbsWrite;

@SerializedName(ApiConstants.DISK_IO_READ)
@Param(description = "the read (io) of disk on the vm")
private Long diskIORead;

@SerializedName(ApiConstants.DISK_IO_WRITE)
@Param(description = "the write (io) of disk on the vm")
private Long diskIOWrite;

@SerializedName(ApiConstants.HYPERVISOR)
@Param(description = "Hypervisor the volume belongs to")
private String hypervisor;
Expand Down Expand Up @@ -395,10 +412,42 @@ public void setIopsWriteRate(Long iopsWriteRate) {
this.iopsWriteRate = iopsWriteRate;
}

public Long getDiskKbsRead() {
return diskKbsRead;
}

public void setDiskKbsRead(Long diskKbsRead) {
this.diskKbsRead = diskKbsRead;
}

public Long getDiskKbsWrite() {
return diskKbsWrite;
}

public void setDiskKbsWrite(Long diskKbsWrite) {
this.diskKbsWrite = diskKbsWrite;
}

public Long getIopsWriteRate() {
return iopsWriteRate;
}

public Long getDiskIORead() {
return diskIORead;
}

public void setDiskIORead(Long diskIORead) {
this.diskIORead = diskIORead;
}

public Long getDiskIOWrite() {
return diskIOWrite;
}

public void setDiskIOWrite(Long diskIOWrite) {
this.diskIOWrite = diskIOWrite;
}

public void setHypervisor(String hypervisor) {
this.hypervisor = hypervisor;
}
Expand Down
Loading