Issue #1523 - Finalize registry and data delivery stats
Former-commit-id: d691b22ff903b2231e2a04747a8b4f93174ec4e3
This commit is contained in:
parent
1bc6e7c2e4
commit
561e83454f
4 changed files with 54 additions and 11 deletions
|
@ -26,17 +26,18 @@ import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stats Event helper object.
|
* Stats Event helper object.
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
*
|
*
|
||||||
* SOFTWARE HISTORY
|
* SOFTWARE HISTORY
|
||||||
*
|
*
|
||||||
* 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>
|
||||||
*
|
*
|
||||||
* @author mpduff
|
* @author mpduff
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
*/
|
*/
|
||||||
|
@ -136,7 +137,7 @@ public class StatsEventData {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the group list
|
* Get the group list
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public String[] getGroups() {
|
public String[] getGroups() {
|
||||||
|
@ -145,16 +146,16 @@ public class StatsEventData {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the attribute list
|
* Get the attribute list
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public String[] getAttributes() {
|
public String[] getAttributes() {
|
||||||
return attributeList.toArray(new String[groupList.size()]);
|
return attributeList.toArray(new String[attributeList.size()]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the group name from the display name.
|
* Get the group name from the display name.
|
||||||
*
|
*
|
||||||
* @param displayName
|
* @param displayName
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -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>();
|
||||||
|
|
|
@ -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>
|
|
@ -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>
|
Loading…
Add table
Reference in a new issue