Skip to content

Instantly share code, notes, and snippets.

@whalesalad
Created June 10, 2014 00:26
Show Gist options
  • Select an option

  • Save whalesalad/86af02eed542d7b47e6a to your computer and use it in GitHub Desktop.

Select an option

Save whalesalad/86af02eed542d7b47e6a to your computer and use it in GitHub Desktop.
{
"type" : "record",
"name" : "eventtype",
"doc:" : "Schema for describing events in sensor messages",
"namespace" : "com.endgame.sensor.avro",
"fields" : [
{
"name" : "key",
"doc" : "name of the event",
"type" : "string"
},
{
"name" : "ts",
"doc" : "timestamp of the event",
"type" : ["long"]
},
{
"name" : "value",
"doc" : "data for the event",
"type" : [
"string",
"double",
{
"type": "array",
"items": [
"string",
"double",
{
"type": "array",
"items": [
"string",
"double",
"null"
]
},
{
"type": "map",
"values": [
"string",
"double",
{
"type": "array",
"items": [
"string",
"double",
{
"type": "array",
"items": ["string", "double", "null"]
},
"null"
]
},
{
"type": "map",
"values": [
"string",
"double",
{
"type": "array",
"items": [
"string",
"double",
{
"type": "array",
"items": ["string", "double", "null"]
},
"null"
]
},
"null"
]
},
"null"
]
},
"null"
]
},
{
"type": "map",
"values": [
"string",
"double",
{
"type": "array",
"items": ["string", "double", "null"]
},
{
"type": "map",
"values": [
"string",
"double",
{
"type": "array",
"items": ["string", "double", "null"]
},
"null"
]
},
"null"
]
},
"null"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment