Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.

Commit df50c0d

Browse files
authored
Add Stackdriver datasource config options (#42)
* add Stackdriver datasource config options * remove newline
1 parent cd94108 commit df50c0d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

datasource.go

+9
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ type JSONData struct {
7878
// Used by Prometheus
7979
HttpMethod string `json:"httpMethod,omitempty"`
8080
QueryTimeout string `json:"queryTimeout,omitempty"`
81+
82+
// Used by Stackdriver
83+
AuthenticationType string `json:"authenticationType,omitempty"`
84+
ClientEmail string `json:"clientEmail,omitempty"`
85+
DefaultProject string `json:"defaultProject,omitempty"`
86+
TokenUri string `json:"tokenUri,omitempty"`
8187
}
8288

8389
// SecureJSONData is a representation of the datasource `secureJsonData` property
@@ -92,6 +98,9 @@ type SecureJSONData struct {
9298
// Used by Cloudwatch
9399
AccessKey string `json:"accessKey,omitempty"`
94100
SecretKey string `json:"secretKey,omitempty"`
101+
102+
// Used by Stackdriver
103+
PrivateKey string `json:"privateKey,omitempty"`
95104
}
96105

97106
func (c *Client) NewDataSource(s *DataSource) (int64, error) {

0 commit comments

Comments
 (0)