ContentMatcher class

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.

Constructors

ContentMatcher({Input<String>? content, Input<JsonPathMatcher>? jsonPathMatcher, Input<ContentMatcherMatcher>? matcher})
Creates a new ContentMatcher. content String, regex or JSON content to match. Maximum 1024 bytes. An empty content string indicates no content matching is to be performed. jsonPathMatcher Matcher information for MATCHES_JSON_PATH and NOT_MATCHES_JSON_PATH matcher The type of content matcher that will be applied to the server output, compared to the content string when the check is run.
const
ContentMatcher.fromMap(Map<String, dynamic> map)
factory

Properties

content → Input<String>?
String, regex or JSON content to match. Maximum 1024 bytes. An empty content string indicates no content matching is to be performed.
final
hashCode → int
The hash code for this object.
no setterinherited
jsonPathMatcher → Input<JsonPathMatcher>?
Matcher information for MATCHES_JSON_PATH and NOT_MATCHES_JSON_PATH
final
matcher → Input<ContentMatcherMatcher>?
The type of content matcher that will be applied to the server output, compared to the content string when the check is run.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited