Issue #1523 - Finalize registry and data delivery stats

Former-commit-id: d691b22ff903b2231e2a04747a8b4f93174ec4e3
This commit is contained in:
Mike Duff 2013-01-23 14:40:23 -06:00
parent 1bc6e7c2e4
commit 561e83454f
4 changed files with 54 additions and 11 deletions

View file

@ -33,7 +33,8 @@ import java.util.Map;
* *
* Date Ticket# Engineer Description * Date Ticket# Engineer Description
* ------------ ---------- ----------- -------------------------- * ------------ ---------- ----------- --------------------------
* Nov 8, 2012 728 mpduff Initial creation * Nov 08, 2012 728 mpduff Initial creation.
* Jan 23, 2013 1523 mpduff Fix list length.
* *
* </pre> * </pre>
* *
@ -149,7 +150,7 @@ public class StatsEventData {
* @return * @return
*/ */
public String[] getAttributes() { public String[] getAttributes() {
return attributeList.toArray(new String[groupList.size()]); return attributeList.toArray(new String[attributeList.size()]);
} }
/** /**

View file

@ -250,7 +250,6 @@ public class UnitUtils implements ISerializableObject {
break; break;
case TIME: case TIME:
units = TIME_UNIT_LOOKUP.keySet(); units = TIME_UNIT_LOOKUP.keySet();
// units = TimeConversion.getDataUnits();
break; break;
case COUNT: case COUNT:
units = new HashSet<String>(); units = new HashSet<String>();

View file

@ -0,0 +1,29 @@
<statisticsConfig>
<!-- Event Type should be fully qualified name of stat event -->
<statisticsEvent type="com.raytheon.uf.common.datadelivery.event.retrieval.SubscriptionRetrievalEvent"
displayName="Subscription Retrieval" category="Data Delivery">
<statisticsGroup name="plugin" displayName="Data Type" />
<statisticsGroup name="provider" displayName="Data Provider" />
<statisticsGroup name="owner" displayName="Owner" />
<statisticsGroup name="network" displayName="Network Route" />
<statisticsGroup name="subscriptionType" displayName="Subscription Type" />
<statisticsAggregate field="numFailed"
displayName="Number of Failed Subscriptions" displayUnit="Count" />
<statisticsAggregate field="numComplete"
displayName="Number of Completed Subscriptions" displayUnit="Count" />
</statisticsEvent>
<statisticsEvent type="com.raytheon.uf.common.datadelivery.event.retrieval.DataRetrievalEvent"
displayName="Data Retrieval" category="Data Delivery">
<statisticsGroup name="plugin" displayName="Data Type" />
<statisticsGroup name="provider" displayName="Data Provider" />
<statisticsGroup name="owner" displayName="Owner" />
<statisticsGroup name="network" displayName="Network Route" />
<!--
Display unit options are bytes, KB, MB, GB
-->
<statisticsAggregate field="bytes"
displayName="Amount of Data Downloaded" displayUnit="MB" />
<statisticsAggregate field="numRecords"
displayName="Number of Records Downloaded" displayUnit="Count" />
</statisticsEvent>
</statisticsConfig>

View file

@ -0,0 +1,14 @@
<statisticsConfig>
<!-- Event Type should be fully qualified name of stat event -->
<statisticsEvent type="com.raytheon.uf.common.registry.event.RegistryStatisticsEvent"
displayName="Registry Statistics" category="Registry">
<statisticsGroup name="owner" displayName="Transaction Owner" />
<statisticsGroup name="status" displayName="Transaction Status" />
<statisticsGroup name="type" displayName="Transaction Type" />
<!--
Display unit options are ms, Seconds, Minutes, Hours
-->
<statisticsAggregate field="duration"
displayName="Total Registry Duration" displayUnit="Minutes" />
</statisticsEvent>
</statisticsConfig>