rdaviscc
13 years agoHelper
Difference in Metrics
Hey All,
I have an odd question. I am making a metrics dashboard for our community and I am noticing that the metrics from the administration area are not aligning with that of the API.
For instance from January 1st to March 31st.
Category Admin pulls:
Overall Topics: 609
Forum Replies: 1276
API pulls:
Overall Topics: 618
Forum Replies: 1480
The differences go in a few different places and the code I am using is:
public static String getTotalThreads(String sessionkey, String id, String startDate, String endDate) { String metric = UserUtility.parseUserMetricXML(HTTPUtility .makeRequest( "/categories/id/" + id +"/metrics/name/threads" + "?restapi.session_key=" + sessionkey + "&date_start=" + startDate + "&date_end=" + endDate)); return metric; }
and
public static String getTotalReplies(String sessionkey, String id, String startDate, String endDate) { String metric = UserUtility.parseUserMetricXML(HTTPUtility .makeRequest( "/categories/id/" + id +"/metrics/name/replies" + "?restapi.session_key=" + sessionkey + "&date_start=" + startDate + "&date_end=" + endDate)); return metric; }
the base uri where I am doing the GET to is http://community.domain.com/restapi/vc
Please let me know what I can do or atleast give me an explanation of why the metrics are different.
Thank You in advance.
Ryan