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 | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ content |
string
String or regex content to match. Maximum 1024 bytes. An empty |
↳ matcher |
int
The type of content matcher that will be applied to the server output, compared to the |
getContent
String or regex content to match. Maximum 1024 bytes. An empty content
string indicates no content matching is to be performed.
Returns | |
---|---|
Type | Description |
string |
setContent
String or regex content to match. Maximum 1024 bytes. An empty content
string indicates no content matching is to be performed.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |