/** * Get the errors and the number of occurrences for each of the errors for the * time cutoffs provided. Note that the counts provided by this function may * differ from the ones provided by getErrorCounts since the message store is * purged at regular intervals to prevent it from growing without bounds, * while the store for the counts is purged less frequently. * * @param cutoffs * list of timestamp cutoffs(in seconds) for which the counts are * desired * @return list of maps corresponding for each cutoff provided; each map * contains the error and the number of times the error occurred in * the time period */ public List<Map<String, Element>> getErrorMessagesAndCounts(List<Long> cutoffs) { return this.getElementsAndCounts(errors, cutoffs, errorsPurgeInformation); }
/** * Get the warning and the number of occurrences for each of the warnings for * the time cutoffs provided. Note that the counts provided by this function * may differ from the ones provided by getWarningCounts since the message * store is purged at regular intervals to prevent it from growing without * bounds, while the store for the counts is purged less frequently. * * @param cutoffs * list of timestamp cutoffs(in seconds) for which the counts are * desired * @return list of maps corresponding for each cutoff provided; each map * contains the warning and the number of times the error occurred in * the time period */ public List<Map<String, Element>> getWarningMessagesAndCounts( List<Long> cutoffs) { return this.getElementsAndCounts(warnings, cutoffs, warningsPurgeInformation); }