-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed datatype of stampedreading to float32 for now, created far mo…
…re realistic data for readings, changed the rate at which data is polled and sent to server to be more realistic
- Loading branch information
Evan Langlais
committed
Apr 8, 2019
1 parent
57b36ec
commit d35dd79
Showing
3 changed files
with
235 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
package main | ||
|
||
type StampedReading struct { | ||
Timestamp int `json:"timestamp"` | ||
Value interface{} `json:"value"` | ||
Timestamp int `json:"timestamp"` | ||
Value float32 `json:"value"` | ||
} | ||
|
||
type Packet struct { | ||
ID int `json:"id"` | ||
Kind string `json:"kind"` | ||
Message []byte `json:"message"` | ||
} | ||
|
||
type Metric struct { | ||
Name string | ||
LBound float32 | ||
UBound float32 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters