This repository was archived by the owner on Mar 17, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +19
-14
lines changed Expand file tree Collapse file tree 7 files changed +19
-14
lines changed Original file line number Diff line number Diff line change 11package gapi
22
33import (
4- "github.com/gobs/pretty"
54 "testing"
5+
6+ "github.com/gobs/pretty"
67)
78
89const (
@@ -121,7 +122,7 @@ func TestNewAlertNotification(t *testing.T) {
121122 DisableResolveMessage : true ,
122123 SendReminder : true ,
123124 Frequency : "15m" ,
124- Settings : map [string ]string {
125+ Settings : map [string ]string {
125126126127 },
127128 }
@@ -149,7 +150,7 @@ func TestUpdateAlertNotification(t *testing.T) {
149150 DisableResolveMessage : true ,
150151 SendReminder : true ,
151152 Frequency : "15m" ,
152- Settings : map [string ]string {
153+ Settings : map [string ]string {
153154154155 },
155156 }
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const (
2828 "slug": "production-overview"
2929 }
3030 }`
31-
31+
3232 getDashboardsJSON = `[
3333 {
3434 "id": 1,
@@ -138,7 +138,7 @@ func TestDashboardDelete(t *testing.T) {
138138 if err == nil {
139139 t .Errorf ("%d not detected" , code )
140140 }
141- }
141+ }
142142}
143143
144144func TestDashboards (t * testing.T ) {
@@ -159,4 +159,4 @@ func TestDashboards(t *testing.T) {
159159 if dashboards [0 ].Id != 1 || dashboards [0 ].Title != "Grafana Stats" {
160160 t .Error ("Not correctly parsing returned dashboards." )
161161 }
162- }
162+ }
Original file line number Diff line number Diff line change @@ -78,12 +78,12 @@ type JSONData struct {
7878 // Used by Prometheus
7979 HttpMethod string `json:"httpMethod,omitempty"`
8080 QueryTimeout string `json:"queryTimeout,omitempty"`
81-
81+
8282 // Used by Stackdriver
8383 AuthenticationType string `json:"authenticationType,omitempty"`
84- ClientEmail string `json:"clientEmail,omitempty"`
84+ ClientEmail string `json:"clientEmail,omitempty"`
8585 DefaultProject string `json:"defaultProject,omitempty"`
86- TokenUri string `json:"tokenUri,omitempty"`
86+ TokenUri string `json:"tokenUri,omitempty"`
8787}
8888
8989// SecureJSONData is a representation of the datasource `secureJsonData` property
@@ -98,7 +98,7 @@ type SecureJSONData struct {
9898 // Used by Cloudwatch
9999 AccessKey string `json:"accessKey,omitempty"`
100100 SecretKey string `json:"secretKey,omitempty"`
101-
101+
102102 // Used by Stackdriver
103103 PrivateKey string `json:"privateKey,omitempty"`
104104}
Original file line number Diff line number Diff line change 11package gapi
22
33import (
4- "github.com/gobs/pretty"
54 "testing"
5+
6+ "github.com/gobs/pretty"
67)
78
89const (
Original file line number Diff line number Diff line change 11package gapi
22
33import (
4- "github.com/gobs/pretty"
54 "testing"
5+
6+ "github.com/gobs/pretty"
67)
78
89const (
Original file line number Diff line number Diff line change 11package gapi
22
33import (
4- "github.com/gobs/pretty"
54 "testing"
5+
6+ "github.com/gobs/pretty"
67)
78
89const (
Original file line number Diff line number Diff line change 11package gapi
22
33import (
4- "github.com/gobs/pretty"
54 "testing"
5+
6+ "github.com/gobs/pretty"
67)
78
89const (
You can’t perform that action at this time.
0 commit comments