-
Notifications
You must be signed in to change notification settings - Fork 581
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
[google-cloud-monitoring] cannot create log-based alerting policy #4361
Comments
Having the exact same issue. Im using google-cloud-node version: 4.0.0 |
Have the exact same issue today. Any update? Is it simply not possible currently to create a I tried getting the JSON from an existing alert, using the API to delete that alert, and then recreate it (removing the fields
The code for this is available here, though it is just a tweaked version of an example from the docs. |
Note: that same JS definition works as JSON when using
|
Environment details
Steps to reproduce
The error in the response is:
So it seems that the
conditionMatchedLog
subtype is not supported yet by the nodejs client, only the metric-based alerts seem to be supported.Following this: https://cloud.google.com/monitoring/alerts/policies-in-api#log-polices
and this: https://cloud.google.com/logging/docs/alerting/log-based-alerts#lba-api-create
it does seem to be supported through the API using the gcloud cli.
The text was updated successfully, but these errors were encountered: