Closed bafonins closed 3 years ago
Summary:
We need to uniquely identify events. References: https://github.com/TheThingsNetwork/lorawan-stack/pull/570
Why do we need this?
Currently a combination of time and name is used as the key, however this can cause overlaps.
What is already there? What do you see now?
Event
What is missing? What do you want to see?
id
Environment:
stack
Can you do this yourself and submit a Pull Request?
I can do that with guidance from someone who is familiar with the way events work.
As far as I can see, events with the exact same timestamp should not happen, meaning that
cc @johanstokking
My proposal would be:
ulid.MustNew(ulid.Now(), rand.Reader).String()
Summary:
We need to uniquely identify events. References: https://github.com/TheThingsNetwork/lorawan-stack/pull/570
Why do we need this?
Currently a combination of time and name is used as the key, however this can cause overlaps.
What is already there? What do you see now?
Event
proto, see https://github.com/TheThingsNetwork/lorawan-stack/blob/master/api/events.protoWhat is missing? What do you want to see?
id
entry that uniquely identifies the eventEnvironment:
stack
Can you do this yourself and submit a Pull Request?
I can do that with guidance from someone who is familiar with the way events work.