Class: Google::Cloud::Monitoring::V3::UptimeCheckConfig::ContentMatcher

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/monitoring/v3/uptime.rb

Overview

Optional. Used to perform content matching. This allows matching based on substrings and regular expressions, together with their negations. Only the first 4 MB of an HTTP or HTTPS check's response (and the first 1 MB of a TCP check's response) are examined for purposes of content matching.

Defined Under Namespace

Modules: ContentMatcherOption

Instance Attribute Summary collapse

Instance Attribute Details

#content::String

Returns String or regex content to match. Maximum 1024 bytes. An empty content string indicates no content matching is to be performed.

Returns:

  • (::String)

    String or regex content to match. Maximum 1024 bytes. An empty content string indicates no content matching is to be performed.



319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
# File 'proto_docs/google/monitoring/v3/uptime.rb', line 319

class ContentMatcher
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Options to perform content matching.
  module ContentMatcherOption
    # No content matcher type specified (maintained for backward
    # compatibility, but deprecated for future use).
    # Treated as `CONTAINS_STRING`.
    CONTENT_MATCHER_OPTION_UNSPECIFIED = 0

    # Selects substring matching. The match succeeds if the output contains
    # the `content` string.  This is the default value for checks without
    # a `matcher` option, or where the value of `matcher` is
    # `CONTENT_MATCHER_OPTION_UNSPECIFIED`.
    CONTAINS_STRING = 1

    # Selects negation of substring matching. The match succeeds if the
    # output does _NOT_ contain the `content` string.
    NOT_CONTAINS_STRING = 2

    # Selects regular-expression matching. The match succeeds of the output
    # matches the regular expression specified in the `content` string.
    MATCHES_REGEX = 3

    # Selects negation of regular-expression matching. The match succeeds if
    # the output does _NOT_ match the regular expression specified in the
    # `content` string.
    NOT_MATCHES_REGEX = 4
  end
end

#matcher::Google::Cloud::Monitoring::V3::UptimeCheckConfig::ContentMatcher::ContentMatcherOption

Returns The type of content matcher that will be applied to the server output, compared to the content string when the check is run.

Returns:



319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
# File 'proto_docs/google/monitoring/v3/uptime.rb', line 319

class ContentMatcher
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Options to perform content matching.
  module ContentMatcherOption
    # No content matcher type specified (maintained for backward
    # compatibility, but deprecated for future use).
    # Treated as `CONTAINS_STRING`.
    CONTENT_MATCHER_OPTION_UNSPECIFIED = 0

    # Selects substring matching. The match succeeds if the output contains
    # the `content` string.  This is the default value for checks without
    # a `matcher` option, or where the value of `matcher` is
    # `CONTENT_MATCHER_OPTION_UNSPECIFIED`.
    CONTAINS_STRING = 1

    # Selects negation of substring matching. The match succeeds if the
    # output does _NOT_ contain the `content` string.
    NOT_CONTAINS_STRING = 2

    # Selects regular-expression matching. The match succeeds of the output
    # matches the regular expression specified in the `content` string.
    MATCHES_REGEX = 3

    # Selects negation of regular-expression matching. The match succeeds if
    # the output does _NOT_ match the regular expression specified in the
    # `content` string.
    NOT_MATCHES_REGEX = 4
  end
end