CloudWatch: Add macro for resolving period in SEARCH expressions (#60435)
* interpolate macro in the backend * refactor logger in cloudwatch query * revert added metrics * add docs * apply pr feedback * fix broken test * fix spelling
This commit is contained in:
@@ -24,7 +24,7 @@ func (e *cloudWatchExecutor) buildMetricDataQuery(logger log.Logger, query *mode
|
||||
mdq.Label = &query.Label
|
||||
}
|
||||
|
||||
switch query.GetGMDAPIMode(logger) {
|
||||
switch query.GetGetMetricDataAPIMode() {
|
||||
case models.GMDApiModeMathExpression:
|
||||
mdq.Period = aws.Int64(int64(query.Period))
|
||||
mdq.Expression = aws.String(query.Expression)
|
||||
|
||||
Reference in New Issue
Block a user