Skip to content

Commit

Permalink
Added support for request-based SLIs in monitoring SLO (#3491) (#6353)
Browse files Browse the repository at this point in the history
* initial slo resource

* whitespace and update mask

* add exactly X of to slo descriptions

* unit tests

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored May 12, 2020
1 parent 93047df commit 0c6a726
Show file tree
Hide file tree
Showing 7 changed files with 760 additions and 15 deletions.
3 changes: 3 additions & 0 deletions .changelog/3491.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
monitoring: Added `request_based` SLI support to `google_monitoring_slo`
```
3 changes: 2 additions & 1 deletion google/resource_app_engine_domain_mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@ func resourceAppEngineDomainMappingUpdate(d *schema.ResourceData, meta interface
updateMask := []string{}

if d.HasChange("ssl_settings") {
updateMask = append(updateMask, "ssl_settings.certificate_id,ssl_settings.ssl_management_type")
updateMask = append(updateMask, "ssl_settings.certificate_id",
"ssl_settings.ssl_management_type")
}
// updateMask is a URL parameter but not present in the schema, so replaceVars
// won't set it
Expand Down
3 changes: 2 additions & 1 deletion google/resource_kms_crypto_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ func resourceKMSCryptoKeyUpdate(d *schema.ResourceData, meta interface{}) error
}

if d.HasChange("rotation_period") {
updateMask = append(updateMask, "rotationPeriod,nextRotationTime")
updateMask = append(updateMask, "rotationPeriod",
"nextRotationTime")
}

if d.HasChange("version_template") {
Expand Down
Loading

0 comments on commit 0c6a726

Please sign in to comment.