Package org.graylog2.system.traffic
Interface TrafficUpdater
- All Known Implementing Classes:
TrafficCounterService
public interface TrafficUpdater
-
Method Summary
Modifier and TypeMethodDescriptionaggregateToDaily(Map<org.joda.time.DateTime, Long> histogram) static org.joda.time.DateTimegetDayBucketStart(org.joda.time.DateTime observationTime) static org.joda.time.DateTimegetHourBucketStart(org.joda.time.DateTime observationTime) voidupdateTraffic(org.joda.time.DateTime observationTime, NodeId nodeId, long inLastMinute, long outLastMinute, long decodedLastMinute)
-
Method Details
-
updateTraffic
void updateTraffic(org.joda.time.DateTime observationTime, NodeId nodeId, long inLastMinute, long outLastMinute, long decodedLastMinute) -
getDayBucketStart
static org.joda.time.DateTime getDayBucketStart(org.joda.time.DateTime observationTime) -
getHourBucketStart
static org.joda.time.DateTime getHourBucketStart(org.joda.time.DateTime observationTime) -
aggregateToDaily
-