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, regex or JSON 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 |
↳ json_path_matcher |
Google\Cloud\Monitoring\V3\UptimeCheckConfig\ContentMatcher\JsonPathMatcher
Matcher information for |
getContent
String, regex or JSON content to match. Maximum 1024 bytes. An empty
content
string indicates no content matching is to be performed.
Returns | |
---|---|
Type | Description |
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 | |
---|---|
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 |
getJsonPathMatcher
Matcher information for MATCHES_JSON_PATH
and NOT_MATCHES_JSON_PATH
Returns | |
---|---|
Type | Description |
Google\Cloud\Monitoring\V3\UptimeCheckConfig\ContentMatcher\JsonPathMatcher|null |
hasJsonPathMatcher
setJsonPathMatcher
Matcher information for MATCHES_JSON_PATH
and NOT_MATCHES_JSON_PATH
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Monitoring\V3\UptimeCheckConfig\ContentMatcher\JsonPathMatcher
|
Returns | |
---|---|
Type | Description |
$this |
getAdditionalMatcherInfo
Returns | |
---|---|
Type | Description |
string |