question: private boolean useMetric ( MetricRule rule , Metric metric ) { if ( rule . awsDimensionSelect == null && rule . awsDimensionSelectRegex == null ) { return true ; } if ( rule . awsDimensionSelect != null && metricsIsInAwsDimensionSelect ( rule , metric ) ) { return true ; } if ( rule . awsDimensionSelectRegex != null && metricIsInAwsDimensionSelectRegex ( rule , metric ) ) { return true ; } return false ; }
target:  Check if a metric should be used according to `aws_dimension_select` or `aws_dimension_select_regex`