Class: Google::Apis::ComputeV1::HealthCheckLogConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/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

Constructor Details

#initialize(**args) ⇒ HealthCheckLogConfig

Returns a new instance of HealthCheckLogConfig.



11428
11429
11430
# File 'lib/google/apis/compute_v1/classes.rb', line 11428

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)


11425
11426
11427
# File 'lib/google/apis/compute_v1/classes.rb', line 11425

def enable
  @enable
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11433
11434
11435
# File 'lib/google/apis/compute_v1/classes.rb', line 11433

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