This repository was archived by the owner on Mar 17, 2021. It is now read-only.
File tree 7 files changed +19
-14
lines changed
7 files changed +19
-14
lines changed Original file line number Diff line number Diff line change 1
1
package gapi
2
2
3
3
import (
4
- "github.com/gobs/pretty"
5
4
"testing"
5
+
6
+ "github.com/gobs/pretty"
6
7
)
7
8
8
9
const (
@@ -121,7 +122,7 @@ func TestNewAlertNotification(t *testing.T) {
121
122
DisableResolveMessage : true ,
122
123
SendReminder : true ,
123
124
Frequency : "15m" ,
124
- Settings : map [string ]string {
125
+ Settings : map [string ]string {
125
126
126
127
},
127
128
}
@@ -149,7 +150,7 @@ func TestUpdateAlertNotification(t *testing.T) {
149
150
DisableResolveMessage : true ,
150
151
SendReminder : true ,
151
152
Frequency : "15m" ,
152
- Settings : map [string ]string {
153
+ Settings : map [string ]string {
153
154
154
155
},
155
156
}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const (
28
28
"slug": "production-overview"
29
29
}
30
30
}`
31
-
31
+
32
32
getDashboardsJSON = `[
33
33
{
34
34
"id": 1,
@@ -138,7 +138,7 @@ func TestDashboardDelete(t *testing.T) {
138
138
if err == nil {
139
139
t .Errorf ("%d not detected" , code )
140
140
}
141
- }
141
+ }
142
142
}
143
143
144
144
func TestDashboards (t * testing.T ) {
@@ -159,4 +159,4 @@ func TestDashboards(t *testing.T) {
159
159
if dashboards [0 ].Id != 1 || dashboards [0 ].Title != "Grafana Stats" {
160
160
t .Error ("Not correctly parsing returned dashboards." )
161
161
}
162
- }
162
+ }
Original file line number Diff line number Diff line change @@ -78,12 +78,12 @@ type JSONData struct {
78
78
// Used by Prometheus
79
79
HttpMethod string `json:"httpMethod,omitempty"`
80
80
QueryTimeout string `json:"queryTimeout,omitempty"`
81
-
81
+
82
82
// Used by Stackdriver
83
83
AuthenticationType string `json:"authenticationType,omitempty"`
84
- ClientEmail string `json:"clientEmail,omitempty"`
84
+ ClientEmail string `json:"clientEmail,omitempty"`
85
85
DefaultProject string `json:"defaultProject,omitempty"`
86
- TokenUri string `json:"tokenUri,omitempty"`
86
+ TokenUri string `json:"tokenUri,omitempty"`
87
87
}
88
88
89
89
// SecureJSONData is a representation of the datasource `secureJsonData` property
@@ -98,7 +98,7 @@ type SecureJSONData struct {
98
98
// Used by Cloudwatch
99
99
AccessKey string `json:"accessKey,omitempty"`
100
100
SecretKey string `json:"secretKey,omitempty"`
101
-
101
+
102
102
// Used by Stackdriver
103
103
PrivateKey string `json:"privateKey,omitempty"`
104
104
}
Original file line number Diff line number Diff line change 1
1
package gapi
2
2
3
3
import (
4
- "github.com/gobs/pretty"
5
4
"testing"
5
+
6
+ "github.com/gobs/pretty"
6
7
)
7
8
8
9
const (
Original file line number Diff line number Diff line change 1
1
package gapi
2
2
3
3
import (
4
- "github.com/gobs/pretty"
5
4
"testing"
5
+
6
+ "github.com/gobs/pretty"
6
7
)
7
8
8
9
const (
Original file line number Diff line number Diff line change 1
1
package gapi
2
2
3
3
import (
4
- "github.com/gobs/pretty"
5
4
"testing"
5
+
6
+ "github.com/gobs/pretty"
6
7
)
7
8
8
9
const (
Original file line number Diff line number Diff line change 1
1
package gapi
2
2
3
3
import (
4
- "github.com/gobs/pretty"
5
4
"testing"
5
+
6
+ "github.com/gobs/pretty"
6
7
)
7
8
8
9
const (
You can’t perform that action at this time.
0 commit comments