Stackdriver Monitoring V3 Client - Class JsonPathMatcher (1.10.2)

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

Namespace

Google \ Cloud \ Monitoring \ V3 \ UptimeCheckConfig \ ContentMatcher

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 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
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