You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified that alertStrategy is included in the response when I manually make an API call. The policy in question has an alertStrategy set, with the autoClose value changed from the default.
Environment details
which product (packages/*): @google-cloud/monitoring version 4.0.0
The documentation you're referencing is exposing the REST API, whereas this library is autogenerated code from grpc. Likely, this property hasn't been exposed (you can look through here, where alertStrategy is missing, and which is what we use to autogenerate the libraries). The REST API client library is here, and it seems like it does expose the alertStrategy property. You can use this submodule to directly interact with the monitoring REST API.
The response from alertPolicyServiceClient.listAlertPolicies() does not include policy.alertStrategy.
alertStrategy is inlcuded in the API documentation https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.alertPolicies#alertstrategy
I have verified that alertStrategy is included in the response when I manually make an API call. The policy in question has an alertStrategy set, with the autoClose value changed from the default.
Environment details
Steps to reproduce
npm install --save @google-cloud/monitoring typescript ts-node
The text was updated successfully, but these errors were encountered: