Class: Google::Apis::ComputeV1::InterconnectDiagnosticsLinkOpticalPower
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::InterconnectDiagnosticsLinkOpticalPower
- Defined in:
- generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/google/apis/compute_v1/representations.rb
Instance Attribute Summary collapse
-
#state ⇒ String
Corresponds to the JSON property
state
. -
#value ⇒ Float
Value of the current optical power, read in dBm.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InterconnectDiagnosticsLinkOpticalPower
constructor
A new instance of InterconnectDiagnosticsLinkOpticalPower.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ InterconnectDiagnosticsLinkOpticalPower
Returns a new instance of InterconnectDiagnosticsLinkOpticalPower
10750 10751 10752 |
# File 'generated/google/apis/compute_v1/classes.rb', line 10750 def initialize(**args) update!(**args) end |
Instance Attribute Details
#state ⇒ String
Corresponds to the JSON property state
10740 10741 10742 |
# File 'generated/google/apis/compute_v1/classes.rb', line 10740 def state @state end |
#value ⇒ Float
Value of the current optical power, read in dBm. Take a known good optical
value, give it a 10% margin and trigger warnings relative to that value. In
general, a -7dBm warning and a -11dBm alarm are good optical value estimates
for most links.
Corresponds to the JSON property value
10748 10749 10750 |
# File 'generated/google/apis/compute_v1/classes.rb', line 10748 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10755 10756 10757 10758 |
# File 'generated/google/apis/compute_v1/classes.rb', line 10755 def update!(**args) @state = args[:state] if args.key?(:state) @value = args[:value] if args.key?(:value) end |