Stackdriver Monitoring V3 Client - Class ContentMatcher (1.3.2)

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ content string

String or regex 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.

getContent

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

Returns
TypeDescription
string

setContent

String or regex 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