Skip to content

Commit

Permalink
add matcher attribute to contentmatchers (#3607)
Browse files Browse the repository at this point in the history
* add matcher attribute to contentmatcher

* removed the required field as its mandatory

* tab removed and used spaces
  • Loading branch information
venkykuberan authored Jun 9, 2020
1 parent 91fe747 commit a5485f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions products/monitoring/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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"
}
}
`, suffix, path, project, pwd, host,
Expand Down

0 comments on commit a5485f6

Please sign in to comment.