public sealed class ContentMatcher : IMessage<UptimeCheckConfig.Types.ContentMatcher>, IEquatable<UptimeCheckConfig.Types.ContentMatcher>, IDeepCloneable<UptimeCheckConfig.Types.ContentMatcher>, IBufferMessage, IMessage
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.
Implements
IMessage<UptimeCheckConfig.Types.ContentMatcher>, IEquatable<UptimeCheckConfig.Types.ContentMatcher>, IDeepCloneable<UptimeCheckConfig.Types.ContentMatcher>, IBufferMessage, IMessageNamespace
Google.Cloud.Monitoring.V3Assembly
Google.Cloud.Monitoring.V3.dll
Constructors
ContentMatcher()
public ContentMatcher()
ContentMatcher(UptimeCheckConfig.Types.ContentMatcher)
public ContentMatcher(UptimeCheckConfig.Types.ContentMatcher other)
Parameter | |
---|---|
Name | Description |
other | UptimeCheckConfig.Types.ContentMatcher |
Properties
Content
public string Content { get; set; }
String or regex content to match. Maximum 1024 bytes. An empty content
string indicates no content matching is to be performed.
Property Value | |
---|---|
Type | Description |
String |
Matcher
public UptimeCheckConfig.Types.ContentMatcher.Types.ContentMatcherOption Matcher { get; set; }
The type of content matcher that will be applied to the server output,
compared to the content
string when the check is run.
Property Value | |
---|---|
Type | Description |
UptimeCheckConfig.Types.ContentMatcher.Types.ContentMatcherOption |