Reference documentation and code samples for the Google Cloud Monitoring v3 API enum UptimeCheckConfig.Types.ContentMatcher.Types.ContentMatcherOption.
Selects substring matching. The match succeeds if the output contains
the content string. This is the default value for checks without
a matcher option, or where the value of matcher is
CONTENT_MATCHER_OPTION_UNSPECIFIED.
MatchesRegex
Selects regular-expression matching. The match succeeds of the output
matches the regular expression specified in the content string.
Regex matching is only supported for HTTP/HTTPS checks.
NotContainsString
Selects negation of substring matching. The match succeeds if the
output does NOT contain the content string.
NotMatchesRegex
Selects negation of regular-expression matching. The match succeeds if
the output does NOT match the regular expression specified in the
content string. Regex matching is only supported for HTTP/HTTPS
checks.
Unspecified
No content matcher type specified (maintained for backward
compatibility, but deprecated for future use).
Treated as CONTAINS_STRING.
[[["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 page provides documentation for the \u003ccode\u003eContentMatcherOption\u003c/code\u003e enum within the Google Cloud Monitoring v3 API, detailing options for content matching in uptime checks.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation covers various versions of the API, ranging from version 2.3.0 to the latest version 3.15.0, with links to specific documentation pages for each.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eContentMatcherOption\u003c/code\u003e enum supports several matching types, including \u003ccode\u003eContainsString\u003c/code\u003e, \u003ccode\u003eMatchesRegex\u003c/code\u003e, \u003ccode\u003eNotContainsString\u003c/code\u003e, \u003ccode\u003eNotMatchesRegex\u003c/code\u003e, and \u003ccode\u003eUnspecified\u003c/code\u003e, each with specific behavior.\u003c/p\u003e\n"],["\u003cp\u003eThe provided options allow for checks based on whether the content contains or does not contain a specific string or matches or does not match a given regular expression.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eContainsString\u003c/code\u003e is the default matcher if no other is specified or if \u003ccode\u003eCONTENT_MATCHER_OPTION_UNSPECIFIED\u003c/code\u003e is used, and \u003ccode\u003eUnspecified\u003c/code\u003e is deprecated.\u003c/p\u003e\n"]]],[],null,[]]