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

Constructor & Destructor Documentation

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

Definition at line 741 of file

Member Function Documentation

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

Get the name for display in the UI

the name

Definition at line 750 of file

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

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

the maximum range in milliseconds

Definition at line 773 of file

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

the time range in milliseconds

Definition at line 760 of file

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

Definition at line 737 of file

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

Definition at line 739 of file

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

Definition at line 738 of file

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

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

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

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