Skip to content

Commit

Permalink
Mark num_finite_buckets required for cloud logging metric bucket_op…
Browse files Browse the repository at this point in the history
…tions (#8780)

Co-authored-by: Cameron Thornton <[email protected]>
  • Loading branch information
pengq-google and c2thorn authored Aug 30, 2023
1 parent 086a67c commit 415c90d
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions mmv1/products/logging/Metric.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,28 +206,19 @@ properties:
properties:
- !ruby/object:Api::Type::Integer
name: numFiniteBuckets
at_least_one_of:
- bucket_options.0.linear_buckets.0.num_finite_buckets
- bucket_options.0.linear_buckets.0.width
- bucket_options.0.linear_buckets.0.offset
description: |
Must be greater than 0.
required: true
- !ruby/object:Api::Type::Double
name: width
at_least_one_of:
- bucket_options.0.linear_buckets.0.num_finite_buckets
- bucket_options.0.linear_buckets.0.width
- bucket_options.0.linear_buckets.0.offset
description: |
Must be greater than 0.
required: true
- !ruby/object:Api::Type::Double
name: offset
at_least_one_of:
- bucket_options.0.linear_buckets.0.num_finite_buckets
- bucket_options.0.linear_buckets.0.width
- bucket_options.0.linear_buckets.0.offset
description: |
Lower bound of the first bucket.
required: true
- !ruby/object:Api::Type::NestedObject
name: exponentialBuckets
at_least_one_of:
Expand All @@ -240,28 +231,19 @@ properties:
properties:
- !ruby/object:Api::Type::Integer
name: numFiniteBuckets
at_least_one_of:
- bucket_options.0.exponential_buckets.0.num_finite_buckets
- bucket_options.0.exponential_buckets.0.growth_factor
- bucket_options.0.exponential_buckets.0.scale
description: |
Must be greater than 0.
required: true
- !ruby/object:Api::Type::Double
name: growthFactor
at_least_one_of:
- bucket_options.0.exponential_buckets.0.num_finite_buckets
- bucket_options.0.exponential_buckets.0.growth_factor
- bucket_options.0.exponential_buckets.0.scale
description: |
Must be greater than 1.
required: true
- !ruby/object:Api::Type::Double
name: scale
at_least_one_of:
- bucket_options.0.exponential_buckets.0.num_finite_buckets
- bucket_options.0.exponential_buckets.0.growth_factor
- bucket_options.0.exponential_buckets.0.scale
description: |
Must be greater than 0.
required: true
- !ruby/object:Api::Type::NestedObject
name: explicitBuckets
at_least_one_of:
Expand Down

0 comments on commit 415c90d

Please sign in to comment.