Worst Offenders Report
The Worst Offenders report is used to identify the points that have the most alarms during the specified date range.
Section Node
Here is a sample configuration for the report <Section> node of the XML file:
<Section>
<Title>Worst Offenders</Title>
<QueryType>WorstOffenders</QueryType>
<WorstOffenderCount>2</WorstOffenderCount>
<Start_Date>H=0 M=0 S=0</Start_Date>
<End_Date>H=23 M=59 S=59</End_Date>
<Contract_OffSet>0</Contract_OffSet>
<Filters>
<Filter>System Total</Filter>
</Filters>
<Columns>
<Column item="Site" text="Site"/>
<Column item="Service" text="Service"/>
<Column item="PointIdLong" text="Point"/>
<Column item="FacilityId" text="Facility"/>
<Column item="LongDescription" text="Description"/>
<Column item="count" text="Count">
<SummaryCalc>Sum</SummaryCalc>
<SummaryCalc>Average</SummaryCalc>
<SummaryCalc>Min</SummaryCalc>
<SummaryCalc>Max</SummaryCalc>
</Column>
</Columns>
</Section>
See CygNet Alarm Manager Reports for an explanation of the required <Config> and <Jobs> nodes at the top of the report XML file.
Elements
The following table describes each configuration element.
| Element | Description |
|---|---|
|
<Title> |
The name of the Worksheet tab in Excel for XLSX and PDF formatted reports or the name of the file for CSV and XML formatted reports. |
|
<QueryType> |
The query type is WorstOffenders for this report. |
|
<WorstOffenderCount> |
Specifies the number of points to display. |
|
<Start_Date> |
The starting date to use when the <Backfill> is set to "Yes". Valid values are relative timestamps. For example:
In the above examples, "d" and "h" represent the interval. Other intervals include:
|
|
<End_Date> |
The ending date to use when the <Backfill> is set to "Yes". See <Start_Date> for valid values. |
|
<Contract_OffSet> |
The contract hour offset to use in the calculation. Use 0 for no contract hour. |
|
<Filters> |
Used to specify which filter to use for the report. This is the referenced filter name and is specified in the <Filter> node of the <Filters> element. |
|
<Columns> |
The list of <Column> nodes specifying which columns to display in the report. |
Attributes
The following table describes each configuration attribute of a column node.
| Attribute | Description |
|---|---|
|
item |
The item to display in the cell. Valid values are facility attributes, point attributes and real-time record attributes. See Enumeration Attributes for more information. |
|
text |
The text value to display for the column header. |
Summary calculations can be added to any column. See Adding Summary Calculations for information on configuration.


