Stackdriver Monitoring V3 Client - Class ContentMatcher (1.2.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.

Generated from protobuf field string content = 1;

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.

Generated from protobuf field string content = 1;

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.

Generated from protobuf field .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2;

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.

Generated from protobuf field .google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2;

Parameter
NameDescription
var int
Returns
TypeDescription
$this