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

Commit 0ef0d76

Browse files
committed
Linting
1 parent 05e23a1 commit 0ef0d76

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

slo.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ type DashboardRef struct {
6262
// DestinationDatasource defines model for DestinationDatasource.
6363
type DestinationDatasource struct {
6464
Type *string `json:"type,omitempty"`
65-
Uid *string `json:"uid,omitempty"`
65+
UID *string `json:"uid,omitempty"`
6666
}
6767

6868
// FreeformQuery defines model for FreeformQuery.
@@ -132,7 +132,7 @@ type Slo struct {
132132
Objectives []Objective `json:"objectives"`
133133
Query Query `json:"query"`
134134
ReadOnly *ReadOnly `json:"readOnly,omitempty"`
135-
Uuid string `json:"uuid"`
135+
UUID string `json:"uuid"`
136136
}
137137

138138
// Status defines model for Status.

slo_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ func TestSLOs(t *testing.T) {
3535
if err != nil {
3636
t.Error(err)
3737
}
38-
if slo.Uuid != "qkkrknp12w6tmsdcrfkdf" {
39-
t.Errorf("incorrect UID - expected qkkrknp12w6tmsdcrfkdf, got %s", slo.Uuid)
38+
if slo.UUID != "qkkrknp12w6tmsdcrfkdf" {
39+
t.Errorf("incorrect UID - expected qkkrknp12w6tmsdcrfkdf, got %s", slo.UUID)
4040
}
4141
})
4242

@@ -70,7 +70,7 @@ func TestSLOs(t *testing.T) {
7070
slo := generateSlo()
7171
slo.Description = "Updated Description"
7272

73-
err := client.UpdateSlo(slo.Uuid, slo)
73+
err := client.UpdateSlo(slo.UUID, slo)
7474

7575
if err != nil {
7676
t.Error(err)

0 commit comments

Comments
 (0)