(factor float64)
| 150 | } |
| 151 | |
| 152 | func ValidateNativeHistogramBucketFactor(factor float64) error { |
| 153 | if factor <= 1 { |
| 154 | return fmt.Errorf("metrics_generator.native_histogram_bucket_factor must be greater than 1") |
| 155 | } |
| 156 | return nil |
| 157 | } |
| 158 | |
| 159 | func ValidateCostAttributionDimensions(dimensions map[string]string) error { |
| 160 | seenLabels := make(map[string]string) |