Class: Google::Apis::MigrationcenterV1::NetworkUsageSample

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

Overview

Network usage sample. Values are across all network interfaces.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkUsageSample

Returns a new instance of NetworkUsageSample.



3269
3270
3271
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3269

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

Instance Attribute Details

#average_egress_bpsFloat

Average network egress in B/s sampled over a short window. Must be non- negative. Corresponds to the JSON property averageEgressBps

Returns:

  • (Float)


3261
3262
3263
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3261

def average_egress_bps
  @average_egress_bps
end

#average_ingress_bpsFloat

Average network ingress in B/s sampled over a short window. Must be non- negative. Corresponds to the JSON property averageIngressBps

Returns:

  • (Float)


3267
3268
3269
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3267

def average_ingress_bps
  @average_ingress_bps
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3274
3275
3276
3277
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3274

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