mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-02 00:49:11 +00:00
Simplified getAlertHistoryIndexNameForTime()
Original commit: elastic/x-pack-elasticsearch@08ce6daf75
This commit is contained in:
parent
4048bfe55c
commit
56a121109d
@ -146,9 +146,7 @@ public class AlertActionManager extends AbstractComponent {
|
||||
* Calculates the correct alert history index name for a given time using alertHistoryIndexTimeFormat
|
||||
*/
|
||||
public static String getAlertHistoryIndexNameForTime(DateTime time) {
|
||||
StringBuffer sb = new StringBuffer(ALERT_HISTORY_INDEX_PREFIX);
|
||||
alertHistoryIndexTimeFormat.printTo(sb, time);
|
||||
return sb.toString();
|
||||
return ALERT_HISTORY_INDEX_PREFIX + alertHistoryIndexTimeFormat.print(time);
|
||||
}
|
||||
|
||||
private void doStart() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user