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 authored and GitHub committed 2021-07-09 13:43:22 +02:00
1 parent 56903582ce
commit ea2ba06b93
6 files changed
+22 -19

No files matched your search

+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