Hello
i tried to expose a custom field to be available in the statistic collector and from a documentation perspective I think i have done everything but still data don't appear maybe someone knows what I did wrong.
Operation is done on post flow:
- GetAccesToAppData
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<AccessEntity async="false" continueOnError="false" enabled="true" name="Access-Entity-App-Statistic">
<DisplayName>Access App statistic data</DisplayName>
<Properties/>
<EntityType value="app"/>
<EntityIdentifier ref="apigee.developer.app.name" type="appname"/>
<SecondaryIdentifier ref="oauthv2accesstoken.GenerateAccessTokenByCC.developer.email" type="developeremail"/>
</AccessEntity>
- Extract variable that I want to use in statistics
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ExtractVariables async="false" continueOnError="true" enabled="true" name="Extract-Variables-StatisticData">
<DisplayName>Extract-Variables-StatisticData</DisplayName>
<Source clearPayload="false">AccessEntity.Access-Entity-App-Statistic</Source>
<VariablePrefix>statisticData</VariablePrefix>
<XMLPayload stopPayloadProcessing="false">
<Variable name="businessUnit" type="string">
<XPath>//App/Attributes/Attribute[Name='businessUnit']/Value/text()</XPath>
</Variable>
</XMLPayload>
</ExtractVariables>
- Put variable to statistic collector
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<StatisticsCollector async="false" continueOnError="false" enabled="true" name="BusinessUnitStatisticsCollector">
<DisplayName>BusinessUnitStatisticsCollector</DisplayName>
<Statistics>
<Statistic name="businessUnit" ref="statisticData.businessUnit" type="string"/>
</Statistics>
</StatisticsCollector>
On trace, i see that ever step go through and in details, i see that the variable is created correctly with the correct value but still, i don't get this data in the custom report - i waited for a day
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |