The best approach is going to depend on what you’d like to do with your data and what data points are valuable to you. If you’d like to show the number of chips per player, I would recommend creating a device structure similar to your virtual layout. The way you have currently structured your data will not allow you to graph the number of chips per player, as the data is stored in a Time Series database.
Looking at your payload, it looks as though you have at least one constant, possibly two:
player. The way you store your data is going to depend on your use case, but I would recommend creating your devices in Losant to build a virtual representation of your environment.
If your goal is to visualize this data with a graph, you could create devices for your table and seat structure or your player structure:
If you were to take the
seat model, you could then have each device contain a
username string attribute and a
chip count number attribute. You’d then be able to visualize on a graph the number of chips per playing user based on the seat.
If you are looking to visualize all users and see how many chips they have available, you would want to create a device for each user, but this can be costly as far as devices go depending on the number of players you will have.
Let me know if either of these will work for your use case!