Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add matcher attribute to contentmatchers #3607

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions products/monitoring/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1623,6 +1623,16 @@ 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
required: true
venkykuberan marked this conversation as resolved.
Show resolved Hide resolved
- !ruby/object:Api::Type::Array
name: selectedRegions
description: The list of regions from which the check will be run. Some regions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ resource "google_monitoring_uptime_check_config" "http" {

content_matchers {
content = "example"
matcher = "CONTAINS_STRING"
venkykuberan marked this conversation as resolved.
Show resolved Hide resolved
}
}
`, suffix, path, project, pwd, host,
Expand Down