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 provides documentation for the \u003ccode\u003eContentMatcher\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Monitoring.V3\u003c/code\u003e namespace, specifically for version 2.4.0 of the library.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eContentMatcher\u003c/code\u003e is used for matching substrings and regular expressions in the content of uptime checks, including negations, with a limitation of the first 4 MB for HTTP/HTTPS checks and 1 MB for TCP checks.\u003c/p\u003e\n"],["\u003cp\u003eThe page lists multiple versions of \u003ccode\u003eContentMatcher\u003c/code\u003e, from 2.3.0 up to the latest version 3.15.0, showcasing the evolution of the class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eContentMatcher\u003c/code\u003e class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the \u003ccode\u003eObject\u003c/code\u003e class, offering functionalities for content matching, equality checks, cloning, and message buffering.\u003c/p\u003e\n"],["\u003cp\u003eThe class has properties \u003ccode\u003eContent\u003c/code\u003e, to represent the string or regex content to match, and \u003ccode\u003eMatcher\u003c/code\u003e, to set the type of content matcher to be applied during the check, alongside two constructors to initiate the \u003ccode\u003eContentMatcher\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,[]]