Class: Google::Cloud::Monitoring::V3::UptimeCheckConfig::ContentMatcher::JsonPathMatcher
- Inherits:
-
Object
- Object
- Google::Cloud::Monitoring::V3::UptimeCheckConfig::ContentMatcher::JsonPathMatcher
- 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
-
#json_matcher ⇒ ::Google::Cloud::Monitoring::V3::UptimeCheckConfig::ContentMatcher::JsonPathMatcher::JsonPathMatcherOption
The type of JSONPath match that will be applied to the JSON output (
ContentMatcher.content
). -
#json_path ⇒ ::String
JSONPath within the response output pointing to the expected
ContentMatcher::content
to match against.
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
).
501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 |
# File 'proto_docs/google/monitoring/v3/uptime.rb', line 501 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.
501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 |
# File 'proto_docs/google/monitoring/v3/uptime.rb', line 501 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 |