Skip to content

Instantly share code, notes, and snippets.

@jdiez17
Created September 3, 2014 20:21
Show Gist options
  • Save jdiez17/14cd6e64f97d147c39e5 to your computer and use it in GitHub Desktop.
Save jdiez17/14cd6e64f97d147c39e5 to your computer and use it in GitHub Desktop.
package agent
import (
"encoding/json"
"fmt"
)
type Event struct {
Agent string
Source string
Payload interface{}
}
type CPUEvent struct {
Value float64
Timestamp int64
}
{"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