Class: Google::Apis::ComputeV1::HealthCheckLogConfig
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::HealthCheckLogConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/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
-
#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.
8459 8460 8461 |
# File 'generated/google/apis/compute_v1/classes.rb', line 8459 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
8456 8457 8458 |
# File 'generated/google/apis/compute_v1/classes.rb', line 8456 def enable @enable end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8464 8465 8466 |
# File 'generated/google/apis/compute_v1/classes.rb', line 8464 def update!(**args) @enable = args[:enable] if args.key?(:enable) end |