Stackdriver Monitoring V3 Client - Class JsonPathMatcher (1.4.0)

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
NameDescription
data array

Optional. Data for populating the Message object.

↳ json_path string

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

↳ json_matcher int

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

getJsonPath

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

Returns
TypeDescription
string

setJsonPath

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getJsonMatcher

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

Returns
TypeDescription
int

setJsonMatcher

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this