Created
September 3, 2014 20:21
-
-
Save jdiez17/14cd6e64f97d147c39e5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
package agent | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
type Event struct { | |
Agent string | |
Source string | |
Payload interface{} | |
} | |
type CPUEvent struct { | |
Value float64 | |
Timestamp int64 | |
} |
This file contains hidden or 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
{"Agent":"cpu","Source":"InfiniteImprobabilityDrive","Payload":{"Value":2.75,"Timestamp":1409775646}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment