Class: Google::Cloud::Monitoring::V3::AlertPolicy::Condition::LogMatch
- Inherits:
-
Object
- Object
- Google::Cloud::Monitoring::V3::AlertPolicy::Condition::LogMatch
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/monitoring/v3/alert.rb
Overview
A condition type that checks whether a log message in the scoping project satisfies the given filter. Logs from other projects in the metrics scope are not evaluated.
Defined Under Namespace
Classes: LabelExtractorsEntry
Instance Attribute Summary collapse
-
#filter ⇒ ::String
Required.
-
#label_extractors ⇒ ::Google::Protobuf::Map{::String => ::String}
Optional.
Instance Attribute Details
#filter ⇒ ::String
Returns Required. A logs-based filter. See Advanced Logs Queries for how this filter should be constructed.
449 450 451 452 453 454 455 456 457 458 459 460 461 |
# File 'proto_docs/google/monitoring/v3/alert.rb', line 449 class LogMatch include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelExtractorsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#label_extractors ⇒ ::Google::Protobuf::Map{::String => ::String}
Returns Optional. A map from a label key to an extractor expression, which is
used to extract the value for this label key. Each entry in this map is
a specification for how data should be extracted from log entries that
match filter
. Each combination of extracted values is treated as a
separate rule for the purposes of triggering notifications. Label keys
and corresponding values can be used in notifications generated by this
condition.
Please see the documentation on logs-based metric
valueExtractor
s
for syntax and examples.
449 450 451 452 453 454 455 456 457 458 459 460 461 |
# File 'proto_docs/google/monitoring/v3/alert.rb', line 449 class LogMatch include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelExtractorsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |