Reference documentation and code samples for the Stackdriver Monitoring V3 Client class JsonPathMatcher.
Information needed to perform a JSONPath content match.
Used for ContentMatcherOption::MATCHES_JSON_PATH
and
ContentMatcherOption::NOT_MATCHES_JSON_PATH
.
Generated from protobuf message google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ json_path |
string
JSONPath within the response output pointing to the expected |
↳ json_matcher |
int
The type of JSONPath match that will be applied to the JSON output ( |
getJsonPath
JSONPath within the response output pointing to the expected
ContentMatcher::content
to match against.
Returns | |
---|---|
Type | Description |
string |
setJsonPath
JSONPath within the response output pointing to the expected
ContentMatcher::content
to match against.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getJsonMatcher
The type of JSONPath match that will be applied to the JSON output
(ContentMatcher.content
)
Returns | |
---|---|
Type | Description |
int |
setJsonMatcher
The type of JSONPath match that will be applied to the JSON output
(ContentMatcher.content
)
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |