Commit 17445e0c by Mitsuhiro Tanda

fix alert feature

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