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

Commit 5a93197

Browse files
Merge pull request #52 from ripa1993/feature/support-aws-athena
Add support for AWS Athena datasource
2 parents 8807848 + 4928a52 commit 5a93197

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

datasource.go

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

76+
// Used by Athena
77+
Catalog string `json:"catalog,omitempty"`
78+
Database string `json:"database,omitempty"`
79+
OutputLocation string `json:"outputLocation,omitempty"`
80+
Workgroup string `json:"workgroup,omitempty"`
81+
7682
// Used by Github
7783
GitHubURL string `json:"githubUrl,omitempty"`
7884

@@ -92,11 +98,15 @@ type JSONData struct {
9298
MaxConcurrentShardRequests int64 `json:"maxConcurrentShardRequests,omitempty"`
9399

94100
// Used by Cloudwatch
95-
AuthType string `json:"authType,omitempty"`
96-
AssumeRoleArn string `json:"assumeRoleArn,omitempty"`
97-
DefaultRegion string `json:"defaultRegion,omitempty"`
98101
CustomMetricsNamespaces string `json:"customMetricsNamespaces,omitempty"`
99-
Profile string `json:"profile,omitempty"`
102+
103+
// Used by Cloudwatch, Athena
104+
AuthType string `json:"authType,omitempty"`
105+
AssumeRoleArn string `json:"assumeRoleArn,omitempty"`
106+
DefaultRegion string `json:"defaultRegion,omitempty"`
107+
Endpoint string `json:"endpoint,omitempty"`
108+
ExternalID string `json:"externalId,omitempty"`
109+
Profile string `json:"profile,omitempty"`
100110

101111
// Used by OpenTSDB
102112
TsdbVersion string `json:"tsdbVersion,omitempty"`
@@ -202,7 +212,7 @@ type SecureJSONData struct {
202212
BasicAuthPassword string `json:"basicAuthPassword,omitempty"`
203213
httpHeaderValues []string
204214

205-
// Used by Cloudwatch
215+
// Used by Cloudwatch, Athena
206216
AccessKey string `json:"accessKey,omitempty"`
207217
SecretKey string `json:"secretKey,omitempty"`
208218

0 commit comments

Comments
 (0)