General layout of the file is the following: first define the report metrics that need to be used in the report, then define the layout of the subsections that are visible in the report.
An example partial report definition file:
<partialReport name="com.allinea.myReport"
xmlns="http://www.allinea.com/2016/AllineaReports">
<reportMetrics>
<!-- multiple <reportMetric> elements can be defined -->
<!-- source attribute must be set to "metric" -->
<reportMetric id="com.allinea.metrics.sample.average"
tooltip="Metric tooltip."
displayName="Average of custom interrupt metric"
units="/s"
colour="hsl(19, 70, 71)"
source="metric">
<!-- metricRef: reference to an entry in metricdefinitions element -->
<!-- sampleValue: data value from each sample to take: min, max, mean or sum across processes -->
<!-- aggregation: how to aggregate per-sample values into a single value: min, max, mean across time -->
<sourceDetails metricRef="com.allinea.metrics.sample.interrupts"
sampleValue="mean"
aggregation="mean"/>
</reportMetric>
</reportMetrics>
<subsections>
<!-- multiple <subsection> elements can be defined -->
<subsection id="my_metrics"
heading="My metrics"
colour="hsl(23, 83, 59)">
<text>Section one:</text>
<!-- multiple <entry> elements can be defined -->
<entry reportMetric="com.allinea.metrics.sample.average"
group="interruptGroup" />
</subsection>
</subsections>
</partialReport>
<partialReport name="com.allinea.myReport"
xmlns="http://www.allinea.com/2016/AllineaReports">
</partialReport>
namexmlnsxmlns="http://www.allinea.com/2016/AllineaReports" attribute must be included in the <partialReport> element.Each <reportMetric> element describes a single metric that is stored as a double value.
<reportMetric id="com.allinea.metrics.sample.average"
displayName="Average of custom interrupt metric" tooltip="Metric
tooltip." units="/s" colour="hsl(19, 70, 71)"
idA unique identifier for this metric. This is used to reference this metric in <entry> elements. Ids with dots in their value must not be substrings of each other.
For example, com.allinea.metrics.sample is a substring of com.allinea.metrics.sample.average and therefore not allowed. See Reserved Names/IDs and Restrictions for reserved names.
displayNametooltip (optional)unitscolour (optional)sourcemetric.Describes the details of the source metric used in this report element.
<sourceDetails metricRef="com.allinea.metrics.sample.interrupts"
sampleValue="mean" aggregation="mean"/>
metricRefsampleValuemin/max/mean).aggregationmin/max/mean).Describes the layout of the data to be displayed.
<subsection id="my_metrics"
heading="My metrics"
colour="hsl(23, 83, 59)">
<!-- can add a <text> element with further description -->
<!-- multiple <entry> elements can be defined -->
</subsection>
idheadingcolour (optional)Describes one of the metrics to be listed in the subsections of the report.
<entry reportMetric="com.allinea.metrics.sample.average"
group="interruptGroup" />
reportMetricgroup (optional)group attribute is used to determine how to scale comparison bars that indicate the relative size of two or more metric values. If two <entry> elements have the same value for their group attribute, they are considered comparable and have comparison bars drawn using the same scale.