Skip to content

Commit 653a050

Browse files
committed
tech(tsdb): add jsondata to tsdb datasource struct
1 parent 6f1a9f4 commit 653a050

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pkg/services/alerting/conditions/query.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ func (c *QueryCondition) getRequestForAlertRule(datasource *m.DataSource, timeRa
123123
BasicAuth: datasource.BasicAuth,
124124
BasicAuthUser: datasource.BasicAuthUser,
125125
BasicAuthPassword: datasource.BasicAuthPassword,
126+
JsonData: datasource.JsonData,
126127
},
127128
},
128129
},

pkg/tsdb/models.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ type DataSourceInfo struct {
3939
BasicAuth bool
4040
BasicAuthUser string
4141
BasicAuthPassword string
42+
JsonData *simplejson.Json
4243
}
4344

4445
type BatchTiming struct {

0 commit comments

Comments
 (0)