class Google::Apis::ComputeV1::HealthStatus

Attributes

annotations[RW]

Metadata defined as annotations for network endpoint. Corresponds to the JSON property `annotations` @return [Hash<String,String>]

forwarding_rule[RW]

URL of the forwarding rule associated with the health status of the instance. Corresponds to the JSON property `forwardingRule` @return [String]

forwarding_rule_ip[RW]

A forwarding rule IP address assigned to this instance. Corresponds to the JSON property `forwardingRuleIp` @return [String]

health_state[RW]

Health state of the instance. Corresponds to the JSON property `healthState` @return [String]

instance[RW]

URL of the instance resource. Corresponds to the JSON property `instance` @return [String]

ip_address[RW]

For target pool based Network Load Balancing, it indicates the forwarding rule' s IP address assigned to this instance. For other types of load balancing, the field indicates VM internal ip. Corresponds to the JSON property `ipAddress` @return [String]

port[RW]

The named port of the instance group, not necessarily the port that is health- checked. Corresponds to the JSON property `port` @return [Fixnum]

weight[RW]

Corresponds to the JSON property `weight` @return [String]

weight_error[RW]

Corresponds to the JSON property `weightError` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/compute_v1/classes.rb, line 9947
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/compute_v1/classes.rb, line 9952
def update!(**args)
  @annotations = args[:annotations] if args.key?(:annotations)
  @forwarding_rule = args[:forwarding_rule] if args.key?(:forwarding_rule)
  @forwarding_rule_ip = args[:forwarding_rule_ip] if args.key?(:forwarding_rule_ip)
  @health_state = args[:health_state] if args.key?(:health_state)
  @instance = args[:instance] if args.key?(:instance)
  @ip_address = args[:ip_address] if args.key?(:ip_address)
  @port = args[:port] if args.key?(:port)
  @weight = args[:weight] if args.key?(:weight)
  @weight_error = args[:weight_error] if args.key?(:weight_error)
end