Skip to content

Commit

Permalink
struct tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Preetam committed Apr 5, 2015
1 parent c33e93f commit 8c91ae7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions catena.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ import (
// A Point is a single observation of a time series metric. It
// has a timestamp and a value.
type Point struct {
Timestamp int64
Value float64
Timestamp int64 `json:"timestamp"`
Value float64 `json:"value"`
}

// A Row is a Point with Source and Metric fields.
type Row struct {
Source string
Metric string
Source string `json:"source"`
Metric string `json:"metric"`
Point
}

Expand Down

0 comments on commit 8c91ae7

Please sign in to comment.