public class AuditManager
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static DataResult |
getAuditLogs(java.lang.String[] types,
java.lang.String machine,
java.lang.Long start,
java.lang.Long end)
Retrieve the audits for a machine, possibly filtering by types and time
|
static java.util.Map<java.lang.String,java.lang.String[]> |
getAuditTypeMap()
Return the various audit type-mappings we have defined
|
static AuditReviewDto |
getFirstUnreviewed(java.lang.String machineName)
Get the time for the first unreviewed log for the specified machine
|
static AuditReviewDto |
getLastReview(java.lang.String machineName)
Get the last time-of-review for the specified machine
|
static DataResult<AuditReviewDto> |
getMachineReviewSections(java.lang.String machineName)
Retrieve the set of audit sections, possibly for a specified machine
|
static DataResult<AuditMachineDto> |
getMachines()
Retrieve the set of all machines we know about
|
static AuditReviewDto |
getReviewInfo(java.lang.String machine,
long start,
long end)
Retrieve the review info for a specified machine/time
|
static void |
markReviewed(java.lang.String machine,
java.lang.Long start,
java.lang.Long end,
java.lang.String username)
Mark a machine/start/end as reviewed.
|
public static void markReviewed(java.lang.String machine,
java.lang.Long start,
java.lang.Long end,
java.lang.String username)
throws java.io.IOException
machine - Machine namestart - Start time in ms from epochend - End time in ms from epochusername - User marking the reviewjava.io.IOException - Thrown when the audit review log isn't writeablepublic static DataResult getAuditLogs(java.lang.String[] types, java.lang.String machine, java.lang.Long start, java.lang.Long end)
types - The types to look for (e.g. "DAEMON_START"); can be nullmachine - The machine namestart - The start time; can be nullend - The end time; can be nullpublic static java.util.Map<java.lang.String,java.lang.String[]> getAuditTypeMap()
public static AuditReviewDto getFirstUnreviewed(java.lang.String machineName)
machineName - The machine to find review times forpublic static AuditReviewDto getLastReview(java.lang.String machineName)
machineName - The machine to find review times forpublic static DataResult<AuditMachineDto> getMachines()
public static DataResult<AuditReviewDto> getMachineReviewSections(java.lang.String machineName)
machineName - The machine to get review sections for; can be nullpublic static AuditReviewDto getReviewInfo(java.lang.String machine, long start, long end) throws java.io.IOException
machine - The machine namestart - The start time in ms from the epochend - The end time in ms from the epochjava.io.IOException - Throws when the audit review file is unreadable