Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard Class Reference

Classes

enum  DateRange
 

Public Member Functions

 HealthMonitorDashboard (Container parent)
 
void display ()
 

Private Member Functions

JPanel createAdminPanel ()
 
JPanel createTimingControlPanel ()
 
JPanel createTimingPanel () throws HealthMonitorException
 
JPanel createUserControlPanel ()
 
JPanel createUserPanel () throws HealthMonitorException
 
void generateCSVUserReport (File reportFile) throws HealthMonitorException
 
String getDuration (long start, long end)
 
void redisplay ()
 
void updateData () throws HealthMonitorException
 
void updateTimingMetricGraphs () throws HealthMonitorException
 
void updateUserMetricGraphs () throws HealthMonitorException
 

Private Attributes

final JFileChooserFactory chooserHelper
 
JDialog dialog = null
 
final Container parentWindow
 
JComboBox< String > timingDateComboBox = null
 
JPanel timingGraphPanel = null
 
JCheckBox timingHostCheckBox = null
 
JComboBox< String > timingHostComboBox = null
 
JCheckBox timingShowTrendLineCheckBox = null
 
JCheckBox timingSkipOutliersCheckBox = null
 
JComboBox< String > userDateComboBox = null
 
JPanel userGraphPanel = null
 

Static Private Attributes

static final String ADMIN_ACCESS_FILE_NAME = "admin"
 
static final String ADMIN_ACCESS_FILE_PATH = Paths.get(PlatformUtil.getUserConfigDirectory(), ADMIN_ACCESS_FILE_NAME).toString()
 
static final Logger logger = Logger.getLogger(HealthMonitorDashboard.class.getName())
 

Detailed Description

Dashboard for viewing metrics and controlling the health monitor.

Definition at line 69 of file HealthMonitorDashboard.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.HealthMonitorDashboard ( Container  parent)

Create an instance of the dashboard. Call display() after creation to show the dashboard.

Parameters
parentThe parent container (for centering the UI)

Definition at line 97 of file HealthMonitorDashboard.java.

Member Function Documentation

JPanel org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.createAdminPanel ( )
private

Create the admin panel. This allows the health monitor to be enabled and disabled.

Returns
the admin panel

Definition at line 671 of file HealthMonitorDashboard.java.

References org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.redisplay().

Referenced by org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.display().

JPanel org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.createTimingControlPanel ( )
private
JPanel org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.createTimingPanel ( ) throws HealthMonitorException
private

Create the panel holding the timing graphs and the controls for them.

Returns
The timing panel
Exceptions
HealthMonitorException

Definition at line 189 of file HealthMonitorDashboard.java.

References org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.createTimingControlPanel(), and org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.updateTimingMetricGraphs().

Referenced by org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.display().

JPanel org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.createUserControlPanel ( )
private
JPanel org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.createUserPanel ( ) throws HealthMonitorException
private
void org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.display ( )
void org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.generateCSVUserReport ( File  reportFile) throws HealthMonitorException
private

Generate a csv report for the last week of user data.

Parameters
reportFile
Exceptions
HealthMonitorException

Definition at line 539 of file HealthMonitorDashboard.java.

References org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.getDuration(), and org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.DateRange.ONE_WEEK.

Referenced by org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.createUserControlPanel().

String org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.getDuration ( long  start,
long  end 
)
private

Generate a string representing the time between the given timestamps.

Parameters
startThe starting timestamp.
endThe ending timestamp.
Returns
The duration as a string.

Definition at line 612 of file HealthMonitorDashboard.java.

Referenced by org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.generateCSVUserReport().

void org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.redisplay ( )
private

Delete the current dialog and create a new one. This should only be called after enabling or disabling the health monitor.

Definition at line 156 of file HealthMonitorDashboard.java.

References org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.display().

Referenced by org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.createAdminPanel().

void org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.updateData ( ) throws HealthMonitorException
private

Check the monitor enabled status and, if enabled, get the timing data.

Exceptions
HealthMonitorException

Definition at line 168 of file HealthMonitorDashboard.java.

References org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.DateRange.getMaximumTimestampRange().

Referenced by org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.display().

void org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.updateTimingMetricGraphs ( ) throws HealthMonitorException
private
void org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.updateUserMetricGraphs ( ) throws HealthMonitorException
private

Member Data Documentation

final String org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.ADMIN_ACCESS_FILE_NAME = "admin"
staticprivate

Definition at line 73 of file HealthMonitorDashboard.java.

final String org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.ADMIN_ACCESS_FILE_PATH = Paths.get(PlatformUtil.getUserConfigDirectory(), ADMIN_ACCESS_FILE_NAME).toString()
staticprivate

Definition at line 74 of file HealthMonitorDashboard.java.

final JFileChooserFactory org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.chooserHelper
private

Definition at line 90 of file HealthMonitorDashboard.java.

JDialog org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.dialog = null
private

Definition at line 87 of file HealthMonitorDashboard.java.

final Logger org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.logger = Logger.getLogger(HealthMonitorDashboard.class.getName())
staticprivate

Definition at line 71 of file HealthMonitorDashboard.java.

final Container org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.parentWindow
private

Definition at line 88 of file HealthMonitorDashboard.java.

JComboBox<String> org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.timingDateComboBox = null
private

Definition at line 79 of file HealthMonitorDashboard.java.

JPanel org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.timingGraphPanel = null
private

Definition at line 84 of file HealthMonitorDashboard.java.

JCheckBox org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.timingHostCheckBox = null
private

Definition at line 81 of file HealthMonitorDashboard.java.

JComboBox<String> org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.timingHostComboBox = null
private

Definition at line 80 of file HealthMonitorDashboard.java.

JCheckBox org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.timingShowTrendLineCheckBox = null
private

Definition at line 82 of file HealthMonitorDashboard.java.

JCheckBox org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.timingSkipOutliersCheckBox = null
private

Definition at line 83 of file HealthMonitorDashboard.java.

JComboBox<String> org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.userDateComboBox = null
private

Definition at line 85 of file HealthMonitorDashboard.java.

JPanel org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.userGraphPanel = null
private

Definition at line 86 of file HealthMonitorDashboard.java.


The documentation for this class was generated from the following file:

Copyright © 2012-2022 Basis Technology. Generated on: Tue Jun 27 2023
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.