diff --git a/products/monitoring/api.yaml b/products/monitoring/api.yaml index 90b182f83c5b..895938513e86 100644 --- a/products/monitoring/api.yaml +++ b/products/monitoring/api.yaml @@ -1623,6 +1623,15 @@ objects: name: content description: String or regex content to match (max 1024 bytes) required: true + - !ruby/object:Api::Type::Enum + name: matcher + description: The type of content matcher that will be applied to the server output, + compared to the content string when the check is run. + values: + - :CONTAINS_STRING + - :NOT_CONTAINS_STRING + - :MATCHES_REGEX + - :NON_MATCHES_REGEX - !ruby/object:Api::Type::Array name: selectedRegions description: The list of regions from which the check will be run. Some regions diff --git a/third_party/terraform/tests/resource_monitoring_uptime_check_config_test.go b/third_party/terraform/tests/resource_monitoring_uptime_check_config_test.go index 610d3ef75e0c..fce40ccee25b 100644 --- a/third_party/terraform/tests/resource_monitoring_uptime_check_config_test.go +++ b/third_party/terraform/tests/resource_monitoring_uptime_check_config_test.go @@ -106,6 +106,7 @@ resource "google_monitoring_uptime_check_config" "http" { content_matchers { content = "example" + matcher = "CONTAINS_STRING" } } `, suffix, path, project, pwd, host,