public class SessionStatisticsReport extends Report
Constructor | Description |
---|---|
SessionStatisticsReport(com.apptus.util.xml.XmlTree asXml,
Timeline<SessionStatistics> timeline,
TimeInterval interval,
Duration resolution,
TimeZone tz) |
Creates an SessionStatisticsReport.
|
Modifier and Type | Method | Description |
---|---|---|
void |
exportToExcel(File file) |
Writes the report to a file.
|
static SessionStatisticsReport |
parse(com.apptus.util.xml.XmlScanner scanner,
TimeZone tz) |
Creates an SessionStatisticsReport from an XML document.
|
Duration |
resolution() |
|
Timeline<SessionStatistics> |
timeline() |
exportToXml, exportToXml, isoDateTimeFormat, timeInterval
public SessionStatisticsReport(com.apptus.util.xml.XmlTree asXml, Timeline<SessionStatistics> timeline, TimeInterval interval, Duration resolution, TimeZone tz)
asXml
- An XmlTree to be used if the Report.exportToXml(java.io.File)
method is called.timeline
- A timeline of SessionStatistics
elements. Each containing common
statistics data such as number of displays, clicks, payments, etc.interval
- The time interval for the data in this report.resolution
- The resolution for the data in this report.tz
- The time zone to use when presenting this report.public static SessionStatisticsReport parse(com.apptus.util.xml.XmlScanner scanner, TimeZone tz) throws com.apptus.util.xml.FormatException, com.apptus.util.xml.SourceException
scanner
- A scanner for the XML document to parse.tz
- The time zone to use when presenting this report.AdPlacementReport
.com.apptus.util.xml.FormatException
- if the XML document does not match the expected format.com.apptus.util.xml.SourceException
- if the XML document contains errors like invalid XML or if the source is unreadable.public Duration resolution()
public Timeline<SessionStatistics> timeline()
public void exportToExcel(File file) throws FileNotFoundException
Report
exportToExcel
in class Report
file
- The file to write the report to.FileNotFoundException
- if the file does not exists or if the file is inaccessible.Copyright © 2021 Apptus Technologies AB. All rights reserved.