- Resource: UtilizationReport
- State
- TimeFrame
- VmUtilizationInfo
- VmwareVmDetails
- PowerState
- BootOption
- VmUtilizationMetrics
- Methods
Resource: UtilizationReport
Utilization report details the utilization (CPU, memory, etc.) of selected source VMs.
JSON representation |
---|
{ "name": string, "displayName": string, "state": enum ( |
Fields | |
---|---|
name |
Output only. The report unique name. |
displayName |
The report display name, as assigned by the user. |
state |
Output only. Current state of the report. |
stateTime |
Output only. The time the state was last set. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
error |
Output only. Provides details on the state of the report in case of an error. |
createTime |
Output only. The time the report was created (this refers to the time of the request, not the time the report creation completed). A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
timeFrame |
Time frame of the report. |
frameEndTime |
Output only. The point in time when the time frame ends. Notice that the time frame is counted backwards. For instance if the "frameEndTime" value is 2021/01/20 and the time frame is WEEK then the report covers the week between 2021/01/20 and 2021/01/14. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
vmCount |
Output only. Total number of VMs included in the report. |
vms[] |
List of utilization information per VM. When sent as part of the request, the "vmId" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored. |
State
Utilization report state.
Enums | |
---|---|
STATE_UNSPECIFIED |
The state is unknown. This value is not in use. |
CREATING |
The report is in the making. |
SUCCEEDED |
Report creation completed successfully. |
FAILED |
Report creation failed. |
TimeFrame
Report time frame options.
Enums | |
---|---|
TIME_FRAME_UNSPECIFIED |
The time frame was not specified and will default to WEEK. |
WEEK |
One week. |
MONTH |
One month. |
YEAR |
One year. |
VmUtilizationInfo
Utilization information of a single VM.
JSON representation |
---|
{ "vmId": string, "utilization": { object ( |
Fields | |
---|---|
vmId |
The VM's ID in the source. |
utilization |
Utilization metrics for this VM. |
Union field
|
|
vmwareVmDetails |
The description of the VM in a Source of type Vmware. |
VmwareVmDetails
VmwareVmDetails describes a VM in vCenter.
JSON representation |
---|
{ "vmId": string, "datacenterId": string, "datacenterDescription": string, "uuid": string, "displayName": string, "powerState": enum ( |
Fields | |
---|---|
vmId |
The VM's id in the source (note that this is not the MigratingVm's id). This is the moref id of the VM. |
datacenterId |
The id of the vCenter's datacenter this VM is contained in. |
datacenterDescription |
The descriptive name of the vCenter's datacenter this VM is contained in. |
uuid |
The unique identifier of the VM in vCenter. |
displayName |
The display name of the VM. Note that this is not necessarily unique. |
powerState |
The power state of the VM at the moment list was taken. |
cpuCount |
The number of cpus in the VM. |
memoryMb |
The size of the memory of the VM in MB. |
diskCount |
The number of disks the VM has. |
committedStorageMb |
The total size of the storage allocated to the VM in MB. |
guestDescription |
The VM's OS. See for example https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html for types of strings this might hold. |
bootOption |
Output only. The VM Boot Option. |
PowerState
Possible values for the power state of the VM.
Enums | |
---|---|
POWER_STATE_UNSPECIFIED |
Power state is not specified. |
ON |
The VM is turned ON. |
OFF |
The VM is turned OFF. |
SUSPENDED |
The VM is suspended. This is similar to hibernation or sleep mode. |
BootOption
Possible values for vm boot option.
Enums | |
---|---|
BOOT_OPTION_UNSPECIFIED |
The boot option is unknown. |
EFI |
The boot option is EFI. |
BIOS |
The boot option is BIOS. |
VmUtilizationMetrics
Utilization metrics values for a single VM.
JSON representation |
---|
{ "cpuMaxPercent": integer, "cpuAveragePercent": integer, "memoryMaxPercent": integer, "memoryAveragePercent": integer, "diskIoRateMaxKbps": string, "diskIoRateAverageKbps": string, "networkThroughputMaxKbps": string, "networkThroughputAverageKbps": string } |
Fields | |
---|---|
cpuMaxPercent |
Max CPU usage, percent. |
cpuAveragePercent |
Average CPU usage, percent. |
memoryMaxPercent |
Max memory usage, percent. |
memoryAveragePercent |
Average memory usage, percent. |
diskIoRateMaxKbps |
Max disk IO rate, in kilobytes per second. |
diskIoRateAverageKbps |
Average disk IO rate, in kilobytes per second. |
networkThroughputMaxKbps |
Max network throughput (combined transmit-rates and receive-rates), in kilobytes per second. |
networkThroughputAverageKbps |
Average network throughput (combined transmit-rates and receive-rates), in kilobytes per second. |
Methods |
|
---|---|
|
Creates a new UtilizationReport. |
|
Deletes a single Utilization Report. |
|
Gets a single Utilization Report. |
|
Lists Utilization Reports of the given Source. |