Reference documentation and code samples for the Cloud Monitoring V3 API module Google::Cloud::Monitoring::V3::UptimeCheckConfig::ContentMatcher::ContentMatcherOption.
Options to perform content matching.
Constants
CONTENT_MATCHER_OPTION_UNSPECIFIED
value: 0 No content matcher type specified (maintained for backward
compatibility, but deprecated for future use).
Treated as CONTAINS_STRING.
CONTAINS_STRING
value: 1 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.
NOT_CONTAINS_STRING
value: 2 Selects negation of substring matching. The match succeeds if the
output does NOT contain the content string.
MATCHES_REGEX
value: 3 Selects regular-expression matching. The match succeeds if the output
matches the regular expression specified in the content string.
Regex matching is only supported for HTTP/HTTPS checks.
NOT_MATCHES_REGEX
value: 4 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.
MATCHES_JSON_PATH
value: 5 Selects JSONPath matching. See JsonPathMatcher for details on when
the match succeeds. JSONPath matching is only supported for HTTP/HTTPS
checks.
NOT_MATCHES_JSON_PATH
value: 6 Selects JSONPath matching. See JsonPathMatcher for details on when
the match succeeds. Succeeds when output does NOT match as specified.
JSONPath is only supported for HTTP/HTTPS checks.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Monitoring V3 API - Module Google::Cloud::Monitoring::V3::UptimeCheckConfig::ContentMatcher::ContentMatcherOption (v1.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.6.1 (latest)](/ruby/docs/reference/google-cloud-monitoring-v3/latest/Google-Cloud-Monitoring-V3-UptimeCheckConfig-ContentMatcher-ContentMatcherOption)\n- [1.6.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.6.0/Google-Cloud-Monitoring-V3-UptimeCheckConfig-ContentMatcher-ContentMatcherOption)\n- [1.5.1](/ruby/docs/reference/google-cloud-monitoring-v3/1.5.1/Google-Cloud-Monitoring-V3-UptimeCheckConfig-ContentMatcher-ContentMatcherOption)\n- [1.4.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.4.0/Google-Cloud-Monitoring-V3-UptimeCheckConfig-ContentMatcher-ContentMatcherOption)\n- [1.3.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.3.0/Google-Cloud-Monitoring-V3-UptimeCheckConfig-ContentMatcher-ContentMatcherOption)\n- [1.2.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.2.0/Google-Cloud-Monitoring-V3-UptimeCheckConfig-ContentMatcher-ContentMatcherOption)\n- [1.1.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.1.0/Google-Cloud-Monitoring-V3-UptimeCheckConfig-ContentMatcher-ContentMatcherOption)\n- [1.0.1](/ruby/docs/reference/google-cloud-monitoring-v3/1.0.1/Google-Cloud-Monitoring-V3-UptimeCheckConfig-ContentMatcher-ContentMatcherOption)\n- [0.18.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.18.0/Google-Cloud-Monitoring-V3-UptimeCheckConfig-ContentMatcher-ContentMatcherOption)\n- [0.17.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.17.0/Google-Cloud-Monitoring-V3-UptimeCheckConfig-ContentMatcher-ContentMatcherOption)\n- [0.16.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.16.0/Google-Cloud-Monitoring-V3-UptimeCheckConfig-ContentMatcher-ContentMatcherOption)\n- [0.15.2](/ruby/docs/reference/google-cloud-monitoring-v3/0.15.2/Google-Cloud-Monitoring-V3-UptimeCheckConfig-ContentMatcher-ContentMatcherOption)\n- [0.14.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.14.0/Google-Cloud-Monitoring-V3-UptimeCheckConfig-ContentMatcher-ContentMatcherOption)\n- [0.13.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.13.0/Google-Cloud-Monitoring-V3-UptimeCheckConfig-ContentMatcher-ContentMatcherOption)\n- [0.12.1](/ruby/docs/reference/google-cloud-monitoring-v3/0.12.1/Google-Cloud-Monitoring-V3-UptimeCheckConfig-ContentMatcher-ContentMatcherOption)\n- [0.11.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.11.0/Google-Cloud-Monitoring-V3-UptimeCheckConfig-ContentMatcher-ContentMatcherOption)\n- [0.10.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.10.0/Google-Cloud-Monitoring-V3-UptimeCheckConfig-ContentMatcher-ContentMatcherOption)\n- [0.9.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.9.0/Google-Cloud-Monitoring-V3-UptimeCheckConfig-ContentMatcher-ContentMatcherOption)\n- [0.8.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.8.0/Google-Cloud-Monitoring-V3-UptimeCheckConfig-ContentMatcher-ContentMatcherOption)\n- [0.7.1](/ruby/docs/reference/google-cloud-monitoring-v3/0.7.1/Google-Cloud-Monitoring-V3-UptimeCheckConfig-ContentMatcher-ContentMatcherOption) \nReference documentation and code samples for the Cloud Monitoring V3 API module Google::Cloud::Monitoring::V3::UptimeCheckConfig::ContentMatcher::ContentMatcherOption.\n\nOptions to perform content matching.\n\nConstants\n---------\n\n### CONTENT_MATCHER_OPTION_UNSPECIFIED\n\n**value:** 0 \nNo content matcher type specified (maintained for backward\ncompatibility, but deprecated for future use).\nTreated as `CONTAINS_STRING`.\n\n### CONTAINS_STRING\n\n**value:** 1 \nSelects substring matching. The match succeeds if the output contains\nthe `content` string. This is the default value for checks without\na `matcher` option, or where the value of `matcher` is\n`CONTENT_MATCHER_OPTION_UNSPECIFIED`.\n\n### NOT_CONTAINS_STRING\n\n**value:** 2 \nSelects negation of substring matching. The match succeeds if the\noutput does *NOT* contain the `content` string.\n\n### MATCHES_REGEX\n\n**value:** 3 \nSelects regular-expression matching. The match succeeds if the output\nmatches the regular expression specified in the `content` string.\nRegex matching is only supported for HTTP/HTTPS checks.\n\n### NOT_MATCHES_REGEX\n\n**value:** 4 \nSelects negation of regular-expression matching. The match succeeds if\nthe output does *NOT* match the regular expression specified in the\n`content` string. Regex matching is only supported for HTTP/HTTPS\nchecks.\n\n### MATCHES_JSON_PATH\n\n**value:** 5 \nSelects JSONPath matching. See `JsonPathMatcher` for details on when\nthe match succeeds. JSONPath matching is only supported for HTTP/HTTPS\nchecks.\n\n### NOT_MATCHES_JSON_PATH\n\n**value:** 6 \nSelects JSONPath matching. See `JsonPathMatcher` for details on when\nthe match succeeds. Succeeds when output does *NOT* match as specified.\nJSONPath is only supported for HTTP/HTTPS checks."]]