CloudWatch/Logs: Fix log alerts in new unified alerting (#36558)

* Pass FromAlert header from new alerting

* Add better error messages
This commit is contained in:
Andrej Ocenas
2021-07-09 13:43:22 +02:00
committed by GitHub
parent 56903582ce
commit ea2ba06b93
6 changed files with 22 additions and 19 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ func (s *Service) buildGraph(req *Request) (*simple.DirectedGraph, error) {
case dsName == DatasourceName || dsUID == DatasourceUID:
node, err = buildCMDNode(dp, rn)
default: // If it's not an expression query, it's a data source query.
node, err = s.buildDSNode(dp, rn, req.OrgId)
node, err = s.buildDSNode(dp, rn, req)
}
if err != nil {
return nil, err