Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Commit 8807848

Browse files
Merge pull request #50 from Gary-H9/add-github-datasource
🔧 Add required elements for GitHub Datasource
2 parents ef551f5 + bd9579e commit 8807848

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

datasource.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ type JSONData struct {
7373
TLSSkipVerify bool `json:"tlsSkipVerify,omitempty"`
7474
httpHeaderNames []string
7575

76+
// Used by Github
77+
GitHubURL string `json:"githubUrl,omitempty"`
78+
7679
// Used by Graphite
7780
GraphiteVersion string `json:"graphiteVersion,omitempty"`
7881

@@ -209,6 +212,9 @@ type SecureJSONData struct {
209212
// Used by Prometheus and Elasticsearch
210213
SigV4AccessKey string `json:"sigV4AccessKey,omitempty"`
211214
SigV4SecretKey string `json:"sigV4SecretKey,omitempty"`
215+
216+
// Used by GitHub
217+
AccessToken string `json:"accessToken,omitempty"`
212218
}
213219

214220
// Required to avoid recursion during unmarshal

0 commit comments

Comments
 (0)