Class: Google::Apis::MigrationcenterV1::NetworkUsageSample
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1::NetworkUsageSample
- 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
-
#average_egress_bps ⇒ Float
Average network egress in B/s sampled over a short window.
-
#average_ingress_bps ⇒ Float
Average network ingress in B/s sampled over a short window.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkUsageSample
constructor
A new instance of NetworkUsageSample.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NetworkUsageSample
Returns a new instance of NetworkUsageSample.
3896 3897 3898 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3896 def initialize(**args) update!(**args) end |
Instance Attribute Details
#average_egress_bps ⇒ Float
Average network egress in B/s sampled over a short window. Must be non-
negative.
Corresponds to the JSON property averageEgressBps
3888 3889 3890 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3888 def average_egress_bps @average_egress_bps end |
#average_ingress_bps ⇒ Float
Average network ingress in B/s sampled over a short window. Must be non-
negative.
Corresponds to the JSON property averageIngressBps
3894 3895 3896 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3894 def average_ingress_bps @average_ingress_bps end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3901 3902 3903 3904 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3901 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 |