We are using Snowflake and would like to capture out player data for 'x' game like a json data using PlayFAb's Playstream event. E.g:
{ "EventName": "gamebygamelog", "EventNamespace": "title.A0D3", "EntityType": "title", "Source": "A0D3", "EventId": "7bc48a761ee94dd48dc5010f0e8a7f08", "EntityId": "A0D3", "SourceType": "GameServer", "Timestamp": "2018-09-04T11:05:13.2724789Z", "History": null, "CustomTags": null, "Reserved": null, "PlayFabEnvironment": { "Vertical": "master", "Cloud": "main", "Application": "mainserver", "Commit": "5cd811a" }, "GameID": "xxxxxxxxxxxxxxxxxxxxx", "GameType": "Normal", "Boot": 45000, "Chaal": 5760000, "Pot_limit": 46080000, "Num_P": 3, "Players": [ { "ID": Player ID "Type": type of player "SW:" wallet "Hand": Hand "Hand_Sh": Hand Strength "Bet": Player bet amount "Win": Player win amount "Folded": Whether folded or amount "Gift": Player gift spend "Tip": Player tip spend }, { }, ] "GameTime": 12.4036523 }
Can we post this structure of data using
PlayFabServerAPI.WriteTitleEventAsync(new PlayFab.ServerModels.WriteTitleEventRequest()
{
Body = data,
EventName = eventName
});