Stackdriver Monitoring V3 Client - Class ContentMatcher (1.9.0)

Reference documentation and code samples for the Stackdriver Monitoring V3 Client class ContentMatcher.

Optional. Used to perform content matching. This allows matching based on substrings and regular expressions, together with their negations. Only the first 4 MB of an HTTP or HTTPS check's response (and the first 1 MB of a TCP check's response) are examined for purposes of content matching.

Generated from protobuf message google.monitoring.v3.UptimeCheckConfig.ContentMatcher

Namespace

Google \ Cloud \ Monitoring \ V3 \ UptimeCheckConfig

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ content string

String, regex or JSON content to match. Maximum 1024 bytes. An empty content string indicates no content matching is to be performed.

↳ matcher int

The type of content matcher that will be applied to the server output, compared to the content string when the check is run.

↳ json_path_matcher Google\Cloud\Monitoring\V3\UptimeCheckConfig\ContentMatcher\JsonPathMatcher

Matcher information for MATCHES_JSON_PATH and NOT_MATCHES_JSON_PATH

getContent

String, regex or JSON content to match. Maximum 1024 bytes. An empty content string indicates no content matching is to be performed.

Returns
TypeDescription
string

setContent

String, regex or JSON content to match. Maximum 1024 bytes. An empty content string indicates no content matching is to be performed.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMatcher

The type of content matcher that will be applied to the server output, compared to the content string when the check is run.

Returns
TypeDescription
int

setMatcher

The type of content matcher that will be applied to the server output, compared to the content string when the check is run.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getJsonPathMatcher

Matcher information for MATCHES_JSON_PATH and NOT_MATCHES_JSON_PATH

Returns
TypeDescription
Google\Cloud\Monitoring\V3\UptimeCheckConfig\ContentMatcher\JsonPathMatcher|null

hasJsonPathMatcher

setJsonPathMatcher

Matcher information for MATCHES_JSON_PATH and NOT_MATCHES_JSON_PATH

Parameter
NameDescription
var Google\Cloud\Monitoring\V3\UptimeCheckConfig\ContentMatcher\JsonPathMatcher
Returns
TypeDescription
$this

getAdditionalMatcherInfo

Returns
TypeDescription
string