Class AvailCalculations
- java.lang.Object
-
- org.opennms.reporting.availability.AvailCalculations
-
public class AvailCalculations extends Object
AvailCalculations does all computations for all reports for a category. The types include Last 30 days daily availability Last 30 days total availability Last 30 days daily service availability Last Months Top 20 offenders Last Months Top 20 Service outages Last N Months Availability Last Months Daily Availability Last Months Total Availability Last Months Daily Service Availability Month To Date Daily Availability Month To Date Total Availability- Author:
- Jacinta Remedios
-
-
Constructor Summary
Constructors Constructor Description AvailCalculations(List<Node> nodes, long endTime, long lastMonthEndTime, List<String> monitoredServices, Report report, Map<Double,List<String>> offenders, double warning, double normal, String comments, String name, String format, String monthFormat, int catIndex, int sectionIndex)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSectionIndex()
getSectionIndex
-
-
-
Constructor Detail
-
AvailCalculations
public AvailCalculations(List<Node> nodes, long endTime, long lastMonthEndTime, List<String> monitoredServices, Report report, Map<Double,List<String>> offenders, double warning, double normal, String comments, String name, String format, String monthFormat, int catIndex, int sectionIndex)
Constructor- Parameters:
nodes
- List of nodesendTime1
- End time ( end of yesterday in milliseconds)lastMonthEndTime
- Last months end time (end of the last day of last month in milliseconds)monitoredServices
- Monitored services belonging to the category.report
- Report class.offenders
- Map of all offenders -- percent/(list of node) pairsformat
- Value can be "SVG / all"warning
- a double.normal
- a double.comments
- aString
object.name
- aString
object.monthFormat
- aString
object.catIndex
- a int.sectionIndex
- a int.
-
-