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

Public Member Functions

 DateRange (String label, long numberOfDays)
 
String getLabel ()
 
long getTimestampRange ()
 

Static Public Member Functions

static DateRange fromLabel (String text)
 
static long getMaximumTimestampRange ()
 

Public Attributes

 ONE_DAY =(Bundle.HealthMonitorDashboard_DateRange_oneDay(), 1)
 
 ONE_MONTH =(Bundle.HealthMonitorDashboard_DateRange_oneMonth(), 31)
 
 ONE_WEEK =(Bundle.HealthMonitorDashboard_DateRange_oneWeek(), 7)
 
 TWO_WEEKS =(Bundle.HealthMonitorDashboard_DateRange_twoWeeks(), 14)
 

Private Attributes

final String label
 
final long numberOfDays
 

Static Private Attributes

staticfinal long MILLISECONDS_PER_DAY = 1000 * 60 * 60 * 24
 

Detailed Description

Possible date ranges for the metrics in the UI

Definition at line 731 of file HealthMonitorDashboard.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.DateRange.DateRange ( String  label,
long  numberOfDays 
)

Definition at line 741 of file HealthMonitorDashboard.java.

Member Function Documentation

static DateRange org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.DateRange.fromLabel ( String  text)
static
String org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.DateRange.getLabel ( )

Get the name for display in the UI

Returns
the name

Definition at line 750 of file HealthMonitorDashboard.java.

static long org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.DateRange.getMaximumTimestampRange ( )
static

Get the maximum range for this enum. This should be used for querying the database for the timing metrics to display.

Returns
the maximum range in milliseconds

Definition at line 773 of file HealthMonitorDashboard.java.

Referenced by org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.updateData(), and org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.updateUserMetricGraphs().

long org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.DateRange.getTimestampRange ( )

Get the number of milliseconds represented by this date range. Compare the timestamps to ((current time in millis) - (this value)) to determine if they are in the range

Returns
the time range in milliseconds

Definition at line 760 of file HealthMonitorDashboard.java.

Referenced by org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.updateTimingMetricGraphs(), and org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.updateUserMetricGraphs().

Member Data Documentation

final String org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.DateRange.label
private

Definition at line 737 of file HealthMonitorDashboard.java.

static final long org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.DateRange.MILLISECONDS_PER_DAY = 1000 * 60 * 60 * 24
staticprivate

Definition at line 739 of file HealthMonitorDashboard.java.

final long org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.DateRange.numberOfDays
private

Definition at line 738 of file HealthMonitorDashboard.java.

org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.DateRange.ONE_DAY =(Bundle.HealthMonitorDashboard_DateRange_oneDay(), 1)
org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.DateRange.ONE_MONTH =(Bundle.HealthMonitorDashboard_DateRange_oneMonth(), 31)

Definition at line 735 of file HealthMonitorDashboard.java.

org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.DateRange.ONE_WEEK =(Bundle.HealthMonitorDashboard_DateRange_oneWeek(), 7)
org.sleuthkit.autopsy.healthmonitor.HealthMonitorDashboard.DateRange.TWO_WEEKS =(Bundle.HealthMonitorDashboard_DateRange_twoWeeks(), 14)

Definition at line 734 of file HealthMonitorDashboard.java.


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

Copyright © 2012-2022 Basis Technology. Generated on: Sat Sep 24 2022
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.