Class: Google::Apis::VmmigrationV1::UtilizationReport

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/vmmigration_v1/classes.rb,
lib/google/apis/vmmigration_v1/representations.rb,
lib/google/apis/vmmigration_v1/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UtilizationReport

Returns a new instance of UtilizationReport.



2075
2076
2077
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2075

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Output only. The time the report was created (this refers to the time of the request, not the time the report creation completed). Corresponds to the JSON property createTime

Returns:

  • (String)


2018
2019
2020
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2018

def create_time
  @create_time
end

#display_nameString

The report display name, as assigned by the user. Corresponds to the JSON property displayName

Returns:

  • (String)


2023
2024
2025
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2023

def display_name
  @display_name
end

#errorGoogle::Apis::VmmigrationV1::Status

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide. Corresponds to the JSON property error



2033
2034
2035
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2033

def error
  @error
end

#frame_end_timeString

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. Corresponds to the JSON property frameEndTime

Returns:

  • (String)


2041
2042
2043
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2041

def frame_end_time
  @frame_end_time
end

#nameString

Output only. The report unique name. Corresponds to the JSON property name

Returns:

  • (String)


2046
2047
2048
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2046

def name
  @name
end

#stateString

Output only. Current state of the report. Corresponds to the JSON property state

Returns:

  • (String)


2051
2052
2053
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2051

def state
  @state
end

#state_timeString

Output only. The time the state was last set. Corresponds to the JSON property stateTime

Returns:

  • (String)


2056
2057
2058
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2056

def state_time
  @state_time
end

#time_frameString

Time frame of the report. Corresponds to the JSON property timeFrame

Returns:

  • (String)


2061
2062
2063
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2061

def time_frame
  @time_frame
end

#vm_countFixnum

Output only. Total number of VMs included in the report. Corresponds to the JSON property vmCount

Returns:

  • (Fixnum)


2066
2067
2068
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2066

def vm_count
  @vm_count
end

#vmsArray<Google::Apis::VmmigrationV1::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. Corresponds to the JSON property vms



2073
2074
2075
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2073

def vms
  @vms
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2080

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @display_name = args[:display_name] if args.key?(:display_name)
  @error = args[:error] if args.key?(:error)
  @frame_end_time = args[:frame_end_time] if args.key?(:frame_end_time)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
  @state_time = args[:state_time] if args.key?(:state_time)
  @time_frame = args[:time_frame] if args.key?(:time_frame)
  @vm_count = args[:vm_count] if args.key?(:vm_count)
  @vms = args[:vms] if args.key?(:vms)
end