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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eContentMatcher\u003c/code\u003e class, part of the \u003ccode\u003eGoogle.Cloud.Monitoring.V3\u003c/code\u003e namespace, used for performing content matching in Uptime Checks.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eContentMatcher\u003c/code\u003e class can perform matching based on substrings and regular expressions, including their negations, with a limit of 4 MB for HTTP/HTTPS checks and 1 MB for TCP checks.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eContentMatcher\u003c/code\u003e class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors: a default one and another that takes an \u003ccode\u003eUptimeCheckConfig.Types.ContentMatcher\u003c/code\u003e object, and has properties \u003ccode\u003eContent\u003c/code\u003e to specify the string or regex, and \u003ccode\u003eMatcher\u003c/code\u003e to set the matching type.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of the \u003ccode\u003eContentMatcher\u003c/code\u003e with the latest version being 3.15.0 and oldest being 2.3.0.\u003c/p\u003e\n"]]],[],null,[]]