1
我無法使用統計信息收集器在自定義報告中添加自定義維度,並提取下面提到的可變策略。統計信息收集器策略 - 無法添加自定義維度
我遵循教程和文檔中給出的所有步驟,但仍然卡住了。
EXTRACT可變政策
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ExtractVariables async="false" continueOnError="false" enabled="true" name="Extract- Variables-1">
<DisplayName>Extract Variables 1</DisplayName>
<FaultRules/>
<Properties/>
<Source clearPayload="false">response</Source>
<VariablePrefix></VariablePrefix>
<XMLPayload stopPayloadProcessing="false">
<Namespaces>
<Namespace prefix="yweather">http://xml.weather.yahoo.com/ns/rss/1.0</Namespace>
</Namespaces>
<Variable name="weather.location" type="string">
<XPath>/rss/channel/link</XPath>
</Variable>
<Variable name="weather.condition" type="string">
<XPath>/rss/channel/item/yweather:condition/@text</XPath>
</Variable>
<Variable name="weather.forecast_today" type="string">
<XPath>/rss/channel/item/yweather:forecast[1]/@text</XPath>
</Variable>
<Variable name="weather.forecast_tommorow" type="string">
<XPath>/rss/channel/item/yweather:forecast[2]/@text</XPath>
</Variable>
</XMLPayload>
</ExtractVariables>
統計收集政策
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<StatisticsCollector async="false" continueOnError="false" enabled="true" name="Statistics-Collector-1">
<DisplayName>Statistics Collector 1</DisplayName>
<FaultRules/>
<Properties/>
<Statistics>
<Statistic name="location" ref="weather.location" type="string">Earth</Statistic>
<Statistic name="condition" ref="weather.condition" type="string">Sunny</Statistic>
<Statistic name="forecast_today" ref="weather.forecast_today" type="string">Rainy</Statistic>
<Statistic name="forecast_tomorrow" ref="weather.forecast_tomorrow" type="string">Balmy</Statistic>
</Statistics>
</StatisticsCollector>
您可以在Apigee Edge中啓用調試,然後通過您的代理髮送請求嗎?當您在調試視圖中看到請求被捕獲時,請下載該文件並將其附加到此處。調試文件有助於理解統計變量是否加載了任何值。 –
您是否可以告訴我們您面臨的問題的性質,例如,您在創建自定義報告時沒有看到statscollector策略中提到的自定義維度,或者在運行statscollector策略時出現錯誤。請讓我們知道您的組織名稱。 –