Class: Google::Apis::ComputeAlpha::HealthCheckLogConfig
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::HealthCheckLogConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Overview
Configuration of logging on a health check. If logging is enabled, logs will be exported to Stackdriver.
Instance Attribute Summary collapse
-
#enable ⇒ Boolean
(also: #enable?)
Indicates whether or not to export logs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HealthCheckLogConfig
constructor
A new instance of HealthCheckLogConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HealthCheckLogConfig
Returns a new instance of HealthCheckLogConfig.
12272 12273 12274 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 12272 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enable ⇒ Boolean 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
12269 12270 12271 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 12269 def enable @enable end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12277 12278 12279 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 12277 def update!(**args) @enable = args[:enable] if args.key?(:enable) end |