Hi Josh,
Welcome to the black art of Genesys Engage statistics ;)
As you've probably discovered, the PSDK describes the API properties for a stat definition, but doesn't go into details about the values for those properties. There are essentially two reasons for this: 1) the values are documented in the Stat Server User's Guide, and 2) the values can vary based on the stat definition you are building.
So, the first thing I'd suggest is to get familiar with the Stat Server User's Guide (
https://docs.genesys.com/Documentation/RTME/8.5.1/User/Welcome) as it is the source of truth on how to conure up a statistic definition. However, the Stat Server User's Guide was written to describe how to define a statistic in Genesys Administrator, so you'll have to make some mental programming translations to make this fit the PSDK objects.
I don't have a specific code example for you in C#, but I have a sample of the JSON payload for the GWS-based Stat API, that uses the PSDK under the covers. You can adapt this to your needs:
{ "statisticId":"CallAnswered", "definition":{ "notificationMode":"Immediate", "subject":"DNAction", "intervalType": "GrowingWindow", "dynamicTimeProfile": "00:00+18:00", "category":"TotalNumber", "mainMask":"CallAnswered" }, "objectId":"<agent_group_name>", "objectType":"GroupAgents" }I imagine you're getting hung up on the dynamicTimeProfile item above for your growing window. In the Stat Server User's Guide you can find a detailed discussion on how time profiles are specified for Growing interval types here:
https://docs.genesys.com/Documentation/RTME/latest/User/TimeProfilesLet us know if you get it working or have any further problems.
------------------------------
Jim Crespino
Senior Director, Developer Evangelism
Genesys
https://developer.genesys.com------------------------------