Hey Team -
I have an API where I'd like to accept an arbitrary list of metric values, where the key is always a name, and the value is Any of the supported types. Imagine a list of events, but in Flatbuffers.
````JSON
{
timestamp: 1472086911,
events: [
{ name: "count", value: 12 },
{ name: "activity_type", value: "walking" }
]
}
````
You get the idea.. Basically an event is always a name (string), value (Any), and value_type.
What's a good strategy to have a table where the rows contain a column with a run-time type. I think there's some trick to using Unions here that is not immediately apparent to me. Would I do this:
union Event { IntEvent, StringEvent, DoubleEvent }
And that sorta thing?