Autopsy  4.18.0
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

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 68 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 94 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 667 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 185 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 535 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 608 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 152 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 164 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 72 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 73 of file HealthMonitorDashboard.java.

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

Definition at line 86 of file HealthMonitorDashboard.java.

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

Definition at line 70 of file HealthMonitorDashboard.java.

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

Definition at line 87 of file HealthMonitorDashboard.java.

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

Definition at line 78 of file HealthMonitorDashboard.java.

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

Definition at line 83 of file HealthMonitorDashboard.java.

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

Definition at line 80 of file HealthMonitorDashboard.java.

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

Definition at line 79 of file HealthMonitorDashboard.java.

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

Definition at line 81 of file HealthMonitorDashboard.java.

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

Definition at line 82 of file HealthMonitorDashboard.java.

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

Definition at line 84 of file HealthMonitorDashboard.java.

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

Definition at line 85 of file HealthMonitorDashboard.java.


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

Copyright © 2012-2021 Basis Technology. Generated on: Thu Jul 8 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.