Skip to content

Commit

Permalink
Update JSON encoding (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcronin authored Mar 21, 2023
1 parent b32f086 commit ed2bbc7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.73.4
1.73.5
4 changes: 2 additions & 2 deletions client/metric_dashboards.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ type UnifiedGroup struct {
}

type UnifiedPosition struct {
XPos int `json:"x_pos"`
YPos int `json:"y_pos"`
XPos int `json:"x-pos"`
YPos int `json:"y-pos"`
Width int `json:"width"`
Height int `json:"height"`
}
Expand Down
8 changes: 4 additions & 4 deletions lightstep/resource_dashboard_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ resource "lightstep_dashboard" "test" {
name = "responses"
type = "timeseries"
rank = 0
x_pos = 0
y_pos = 0
x_pos = 16
y_pos = 6
width = 32
height = 10
Expand Down Expand Up @@ -311,8 +311,8 @@ resource "lightstep_dashboard" "test" {
resource.TestCheckResourceAttr(resourceName, "group.0.title", "Title"),
resource.TestCheckResourceAttr(resourceName, "group.0.rank", "0"),
resource.TestCheckResourceAttr(resourceName, "group.0.visibility_type", "explicit"),
resource.TestCheckResourceAttr(resourceName, "group.0.chart.0.x_pos", "0"),
resource.TestCheckResourceAttr(resourceName, "group.0.chart.0.y_pos", "0"),
resource.TestCheckResourceAttr(resourceName, "group.0.chart.0.x_pos", "16"),
resource.TestCheckResourceAttr(resourceName, "group.0.chart.0.y_pos", "6"),
resource.TestCheckResourceAttr(resourceName, "group.0.chart.0.width", "32"),
resource.TestCheckResourceAttr(resourceName, "group.0.chart.0.height", "10"),
),
Expand Down

0 comments on commit ed2bbc7

Please sign in to comment.