Class: Google::Apis::MigrationcenterV1alpha1::ReportSummaryUtilizationChartData

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

Overview

Utilization Chart is a specific type of visualization which displays a metric classified into "Used" and "Free" buckets.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReportSummaryUtilizationChartData

Returns a new instance of ReportSummaryUtilizationChartData.



6381
6382
6383
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6381

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

Instance Attribute Details

#freeFixnum

Aggregate value which falls into the "Free" bucket. Corresponds to the JSON property free

Returns:

  • (Fixnum)


6374
6375
6376
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6374

def free
  @free
end

#usedFixnum

Aggregate value which falls into the "Used" bucket. Corresponds to the JSON property used

Returns:

  • (Fixnum)


6379
6380
6381
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6379

def used
  @used
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6386
6387
6388
6389
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6386

def update!(**args)
  @free = args[:free] if args.key?(:free)
  @used = args[:used] if args.key?(:used)
end