-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 metric descriptor unit to google_logging_metric #2286
Add metric descriptor unit to google_logging_metric #2286
Conversation
Hi! I'm the modular magician, I work on Magic Modules. Pull request statusesNo diff detected in Ansible. New Pull RequestsI built this PR into one or more new PRs on other repositories, and when those are closed, this PR will also be merged and closed. |
products/logging/terraform.yaml
Outdated
@@ -38,6 +38,8 @@ overrides: !ruby/object:Overrides::ResourceOverrides | |||
properties: | |||
metricDescriptor.labels.valueType: !ruby/object:Overrides::Terraform::PropertyOverride | |||
custom_flatten: 'templates/terraform/custom_flatten/default_if_empty.erb' | |||
metricDescriptor.unit: !ruby/object:Overrides::Terraform::PropertyOverride | |||
default_from_api: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does the API default to? As far as I know we're trying to avoid Optional+Computed when possible - might be better to just set a default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, sure, good to know. I can default it to "1". Thanks!
Hi! I'm the modular magician, I work on Magic Modules. Pull request statusesterraform-provider-google-beta already has an open PR. New Pull RequestsI built this PR into one or more new PRs on other repositories, and when those are closed, this PR will also be merged and closed. |
bf244c1
to
60969b1
Compare
Hi! I'm the modular magician, I work on Magic Modules. Pull request statusesterraform-provider-google-beta already has an open PR. New Pull RequestsI didn't open any new pull requests because of this PR. |
60969b1
to
59b4bfa
Compare
Fixes hashicorp/terraform-provider-google#3881
added
metric_descriptor.unit
togoogle_logging_metric
resourceRelease Note for Downstream PRs (will be copied)