# Migrate for Compute Engine V1 API - Class Google::Cloud::VMMigration::V1::UtilizationReport (v2.9.0)

2.9.0 (latest) 2.8.0 2.7.0 2.6.0 2.5.1 2.4.0 2.3.0 2.2.0 2.1.1 2.0.0 1.3.0 1.2.0 1.1.0 1.0.2 0.9.0 0.8.2 0.7.0 0.6.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Migrate for Compute Engine V1 API class Google::Cloud::VMMigration::V1::UtilizationReport.

Utilization report details the utilization (CPU, memory, etc.) of selected
source VMs.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time the report was created (this refers to the time of the request, not the time the report creation completed).

### #display_name

    def display_name() -> ::String

**Returns**

- (::String) --- The report display name, as assigned by the user.

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

- **value** (::String) --- The report display name, as assigned by the user.
**Returns**

- (::String) --- The report display name, as assigned by the user.

### #error

    def error() -> ::Google::Rpc::Status

**Returns**

- ([::Google::Rpc::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Rpc-Status)) --- Output only. Provides details on the state of the report in case of an error.

### #frame_end_time

    def frame_end_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The point in time when the time frame ends. Notice that the time frame is counted backwards. For instance if the "frame_end_time" 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.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Output only. The report unique name.

### #state

    def state() -> ::Google::Cloud::VMMigration::V1::UtilizationReport::State

**Returns**

- ([::Google::Cloud::VMMigration::V1::UtilizationReport::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-UtilizationReport-State)) --- Output only. Current state of the report.

### #state_time

    def state_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time the state was last set.

### #time_frame

    def time_frame() -> ::Google::Cloud::VMMigration::V1::UtilizationReport::TimeFrame

**Returns**

- ([::Google::Cloud::VMMigration::V1::UtilizationReport::TimeFrame](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-UtilizationReport-TimeFrame)) --- Time frame of the report.

### #time_frame=

    def time_frame=(value) -> ::Google::Cloud::VMMigration::V1::UtilizationReport::TimeFrame

**Parameter**

- **value** ([::Google::Cloud::VMMigration::V1::UtilizationReport::TimeFrame](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-UtilizationReport-TimeFrame)) --- Time frame of the report.
**Returns**

- ([::Google::Cloud::VMMigration::V1::UtilizationReport::TimeFrame](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-UtilizationReport-TimeFrame)) --- Time frame of the report.

### #vm_count

    def vm_count() -> ::Integer

**Returns**

- (::Integer) --- Output only. Total number of VMs included in the report.

### #vms

    def vms() -> ::Array<::Google::Cloud::VMMigration::V1::VmUtilizationInfo>

**Returns**

- (::Array\<[::Google::Cloud::VMMigration::V1::VmUtilizationInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-VmUtilizationInfo)\>) --- List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.

### #vms=

    def vms=(value) -> ::Array<::Google::Cloud::VMMigration::V1::VmUtilizationInfo>

**Parameter**

- **value** (::Array\<[::Google::Cloud::VMMigration::V1::VmUtilizationInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-VmUtilizationInfo)\>) --- List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.
**Returns**

- (::Array\<[::Google::Cloud::VMMigration::V1::VmUtilizationInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-VmUtilizationInfo)\>) --- List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.