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

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

Overview

Information needed to perform a JSONPath content match. Used for ContentMatcherOption::MATCHES_JSON_PATH and ContentMatcherOption::NOT_MATCHES_JSON_PATH.

Defined Under Namespace

Modules: JsonPathMatcherOption

Instance Attribute Summary collapse

Instance Attribute Details

#json_matcher::Google::Cloud::Monitoring::V3::UptimeCheckConfig::ContentMatcher::JsonPathMatcher::JsonPathMatcherOption

Returns The type of JSONPath match that will be applied to the JSON output (ContentMatcher.content).

Returns:



486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
# File 'proto_docs/google/monitoring/v3/uptime.rb', line 486

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

  # Options to perform JSONPath content matching.
  module JsonPathMatcherOption
    # No JSONPath matcher type specified (not valid).
    JSON_PATH_MATCHER_OPTION_UNSPECIFIED = 0

    # Selects 'exact string' matching. The match succeeds if the content at
    # the `json_path` within the output is exactly the same as the
    # `content` string.
    EXACT_MATCH = 1

    # Selects regular-expression matching. The match succeeds if the
    # content at the `json_path` within the output matches the regular
    # expression specified in the `content` string.
    REGEX_MATCH = 2
  end
end

#json_path::String

Returns JSONPath within the response output pointing to the expected ContentMatcher::content to match against.

Returns:

  • (::String)

    JSONPath within the response output pointing to the expected ContentMatcher::content to match against.



486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
# File 'proto_docs/google/monitoring/v3/uptime.rb', line 486

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

  # Options to perform JSONPath content matching.
  module JsonPathMatcherOption
    # No JSONPath matcher type specified (not valid).
    JSON_PATH_MATCHER_OPTION_UNSPECIFIED = 0

    # Selects 'exact string' matching. The match succeeds if the content at
    # the `json_path` within the output is exactly the same as the
    # `content` string.
    EXACT_MATCH = 1

    # Selects regular-expression matching. The match succeeds if the
    # content at the `json_path` within the output matches the regular
    # expression specified in the `content` string.
    REGEX_MATCH = 2
  end
end