public class TrafficCounterService extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TrafficCounterService.Interval |
static class |
TrafficCounterService.TrafficHistogram |
| Constructor and Description |
|---|
TrafficCounterService(MongoConnection mongoConnection,
MongoJackObjectMapperProvider mapper) |
| Modifier and Type | Method and Description |
|---|---|
TrafficCounterService.TrafficHistogram |
clusterTrafficOfLastDays(org.joda.time.Duration daysToIncludeDuration,
TrafficCounterService.Interval interval)
Method included for backwards compatibility in pre-5.0 Graylog versions.
|
TrafficCounterService.TrafficHistogram |
clusterTrafficOfLastDays(org.joda.time.Duration daysToIncludeDuration,
TrafficCounterService.Interval interval,
boolean includeToday)
Queries traffic for the specified duration.
|
void |
updateTraffic(org.joda.time.DateTime observationTime,
NodeId nodeId,
long inLastMinute,
long outLastMinute,
long decodedLastMinute) |
@Inject public TrafficCounterService(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper)
public void updateTraffic(org.joda.time.DateTime observationTime,
NodeId nodeId,
long inLastMinute,
long outLastMinute,
long decodedLastMinute)
public TrafficCounterService.TrafficHistogram clusterTrafficOfLastDays(org.joda.time.Duration daysToIncludeDuration, TrafficCounterService.Interval interval)
clusterTrafficOfLastDays(Duration, Interval, boolean)public TrafficCounterService.TrafficHistogram clusterTrafficOfLastDays(org.joda.time.Duration daysToIncludeDuration, TrafficCounterService.Interval interval, boolean includeToday)
includeToday false, otherwise then the
end of the previous day will be used.Copyright © 2012–2022 Graylog, Inc.. All rights reserved.