Class: Google::Apis::ComputeBeta::HealthCheckLogConfig

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

Overview

Configuration of logging on a health check. If logging is enabled, logs will be exported to Stackdriver.

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) ⇒ HealthCheckLogConfig

Returns a new instance of HealthCheckLogConfig.



8458
8459
8460
# File 'generated/google/apis/compute_beta/classes.rb', line 8458

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

Instance Attribute Details

#enableBoolean Also known as: enable?

Indicates whether or not to export logs. This is false by default, which means no health check logging will be done. Corresponds to the JSON property enable

Returns:

  • (Boolean)


8455
8456
8457
# File 'generated/google/apis/compute_beta/classes.rb', line 8455

def enable
  @enable
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8463
8464
8465
# File 'generated/google/apis/compute_beta/classes.rb', line 8463

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