Alerting: improve alerting default datasource search when extracting alerts (#29993)

* improve alerting search datasource

* correct the xorm get usage

* adding default datasource unittest
This commit is contained in:
ying-jeanne
2021-01-07 21:33:17 +01:00
committed by GitHub
parent bf0d940e6d
commit 2a9c625c9f
7 changed files with 290 additions and 16 deletions
+6
View File
@@ -208,6 +208,12 @@ type GetDataSourcesQuery struct {
Result []*DataSource
}
type GetDefaultDataSourceQuery struct {
OrgId int64
User *SignedInUser
Result *DataSource
}
type GetDataSourceByIdQuery struct {
Id int64
OrgId int64