JsonPathMatcher(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Information needed to perform a JSONPath content match. Used for
ContentMatcherOption::MATCHES_JSON_PATH
and
ContentMatcherOption::NOT_MATCHES_JSON_PATH
.
Attributes | |
---|---|
Name | Description |
json_path |
str
JSONPath within the response output pointing to the expected ContentMatcher::content to match against.
|
json_matcher |
google.cloud.monitoring_v3.types.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption
The type of JSONPath match that will be applied to the JSON output ( ContentMatcher.content )
|
Classes
JsonPathMatcherOption
JsonPathMatcherOption(value)
Options to perform JSONPath content matching.
Values:
JSON_PATH_MATCHER_OPTION_UNSPECIFIED (0):
No JSONPath matcher type specified (not
valid).
EXACT_MATCH (1):
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.
REGEX_MATCH (2):
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.