Class: Google::Apis::ComputeAlpha::HealthCheckLogConfig
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::HealthCheckLogConfig
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/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.
-
#filter ⇒ String
Specifies the desired filtering of logs on this health check.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HealthCheckLogConfig
constructor
A new instance of HealthCheckLogConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ HealthCheckLogConfig
Returns a new instance of HealthCheckLogConfig
8775 8776 8777 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 8775 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
8766 8767 8768 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 8766 def enable @enable end |
#filter ⇒ String
Specifies the desired filtering of logs on this health check. If this is
unspecified and enable is true, logs are exported with LOG_TRANSITION filter.
Corresponds to the JSON property filter
8773 8774 8775 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 8773 def filter @filter end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8780 8781 8782 8783 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 8780 def update!(**args) @enable = args[:enable] if args.key?(:enable) @filter = args[:filter] if args.key?(:filter) end |