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:



428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
# File 'proto_docs/google/monitoring/v3/uptime.rb', line 428

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.



428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
# File 'proto_docs/google/monitoring/v3/uptime.rb', line 428

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