Class: Google::Apis::ComputeAlpha::InterconnectDiagnosticsLinkOpticalPower

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ InterconnectDiagnosticsLinkOpticalPower

Returns a new instance of InterconnectDiagnosticsLinkOpticalPower



14374
14375
14376
# File 'generated/google/apis/compute_alpha/classes.rb', line 14374

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

Instance Attribute Details

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


14364
14365
14366
# File 'generated/google/apis/compute_alpha/classes.rb', line 14364

def state
  @state
end

#valueFloat

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

Returns:

  • (Float)


14372
14373
14374
# File 'generated/google/apis/compute_alpha/classes.rb', line 14372

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14379
14380
14381
14382
# File 'generated/google/apis/compute_alpha/classes.rb', line 14379

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