2014-04-23 2 views
1

통계 수집기를 사용하는 사용자 지정 보고서에 사용자 지정 차원을 추가 할 수없고 아래에 언급 된 변수 정책을 추출 할 수 없습니다.통계 수집기 정책 - 사용자 지정 차원을 추가 할 수 없습니다.

나는 튜토리얼과 워드 프로세서에서 주어진 모든 단계를 따라 왔지만 아직도 붙어있다.

추출 VARIABLE 정책

<?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> 
+0

Apigee Edge에서 디버그를 사용하도록 설정 한 다음 프록시를 통해 요청을 보낼 수 있습니까? 요청이 디버그보기에 캡처 된 것을 보면 파일을 다운로드하고 여기에 첨부하십시오. 디버그 파일은 통계 변수에 값이로드되는지 이해하는 데 도움이됩니다. –

+0

사용자가 직면 한 문제의 성격을 알려주십시오. 사용자 지정 보고서를 만들 때 statscollector 정책에서 언급 한 사용자 지정 차원이 보이지 않거나 statscollector 정책을 실행할 때 오류가 발생했을 수 있습니다. 귀하의 조직 이름도 알려주십시오. –

답변

0

귀하의 정책 때문에, (당신이 http://apigee.com/docs/analytics-services/content/analyze-api-message-content-using-custom-analytics에서 샘플을 수정하지 않은 것처럼 즉, 보이는) 잘 봐 문제는 정책 첨부 또는 배포 가능성이 높습니다. 프록시가 예상 된 환경에 배포되어 있는지 확인하십시오. 당신의 API 프록시가 제대로, 당신의 ProxyEndpoint 구성을 게시하시기 바랍니다 배포하는 경우 암호 https://api.enterprise.apigee.com/v1/o/ {ORG_NAME}/API를/{API_NAME}/배포

및 : 컬 -u 이메일 :이 작업을 수행하기 위해 API를 사용하는 것이 유용 할 수 있습니다 API 프록시에 전송하려는 요청을 가져오고 거기에서 가져옵니다.

관련 문제