Commit 17445e0c by Mitsuhiro Tanda

fix alert feature

parent 8243ac39
......@@ -3,7 +3,6 @@ package cloudwatch
import (
"context"
"errors"
"fmt"
"regexp"
"sort"
"strconv"
......@@ -58,14 +57,14 @@ func (e *CloudWatchExecutor) Query(ctx context.Context, dsInfo *models.DataSourc
var err error
switch queryType {
case "timeSeriesQuery":
result, err = e.executeTimeSeriesQuery(ctx, queryContext)
break
case "metricFindQuery":
result, err = e.executeMetricFindQuery(ctx, queryContext)
break
case "timeSeriesQuery":
fallthrough
default:
err = fmt.Errorf("missing querytype")
result, err = e.executeTimeSeriesQuery(ctx, queryContext)
break
}
return result, err
......
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