Commit 9d9f0e1b by Erik Sundell Committed by GitHub

Remove false positive error message for expression and id field (#20864)

parent d8984d21
...@@ -78,8 +78,8 @@ export default class CloudWatchDatasource extends DataSourceApi<CloudWatchQuery, ...@@ -78,8 +78,8 @@ export default class CloudWatchDatasource extends DataSourceApi<CloudWatchQuery,
item.dimensions = this.convertDimensionFormat(item.dimensions, options.scopedVars); item.dimensions = this.convertDimensionFormat(item.dimensions, options.scopedVars);
item.statistics = item.statistics.map(stat => this.replace(stat, options.scopedVars, true, 'statistics')); item.statistics = item.statistics.map(stat => this.replace(stat, options.scopedVars, true, 'statistics'));
item.period = String(this.getPeriod(item, options)); // use string format for period in graph query, and alerting item.period = String(this.getPeriod(item, options)); // use string format for period in graph query, and alerting
item.id = this.replace(item.id, options.scopedVars, true, 'id'); item.id = this.templateSrv.replace(item.id, options.scopedVars);
item.expression = this.replace(item.expression, options.scopedVars, true, 'expression'); item.expression = this.templateSrv.replace(item.expression, options.scopedVars);
// valid ExtendedStatistics is like p90.00, check the pattern // valid ExtendedStatistics is like p90.00, check the pattern
const hasInvalidStatistics = item.statistics.some(s => { const hasInvalidStatistics = item.statistics.some(s => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment