Class: Google::Cloud::Monitoring::V3::AlertPolicy::Condition::LogMatch

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#filter::String

Returns Required. A logs-based filter. See Advanced Logs Queries for how this filter should be constructed.

Returns:

  • (::String)

    Required. A logs-based filter. See Advanced Logs Queries for how this filter should be constructed.



427
428
429
430
431
432
433
434
435
436
437
438
439
# File 'proto_docs/google/monitoring/v3/alert.rb', line 427

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 valueExtractors for syntax and examples.

Returns:

  • (::Google::Protobuf::Map{::String => ::String})

    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 valueExtractors for syntax and examples.



427
428
429
430
431
432
433
434
435
436
437
438
439
# File 'proto_docs/google/monitoring/v3/alert.rb', line 427

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