mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 02:02:12 +08:00
Alerting: Add header X-Grafana-Org-Id to evaluation requests (#58972)
This commit is contained in:
@ -226,6 +226,7 @@ func buildDatasourceHeaders(ctx EvaluationContext) map[string]string {
|
||||
key, ok := models.RuleKeyFromContext(ctx.Ctx)
|
||||
if ok {
|
||||
headers["X-Rule-Uid"] = key.UID
|
||||
headers["X-Grafana-Org-Id"] = strconv.FormatInt(key.OrgID, 10)
|
||||
}
|
||||
|
||||
return headers
|
||||
|
Reference in New Issue
Block a user