public final class TimeWindow extends Object
Modifier and Type | Method and Description |
---|---|
int |
getBuckets() |
String |
getName() |
long |
getPeriod() |
int |
getResolution() |
static TimeWindow |
of(int resolution,
long period,
String name)
Factory method to create a new TimeWindow.
|
public String getName()
public int getResolution()
public long getPeriod()
public static TimeWindow of(int resolution, long period, String name)
resolution
- the fine-grained resolution at which individual events will be
aggregated. Must be a positive factor of period
period
- the duration represented (at least at a
resolution
resolution-level accuracy)name
- a short name for the window; used to name
automatically-generated metrics based on this window. e.g.
'1m' or '12h'.public int getBuckets()
Copyright © 2009-2019 Performance Co-Pilot. All Rights Reserved.