Step

com.netflix.atlas.core.util.Step
object Step

Utilities for computing and rounding times based on the step size for a dataset.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Step.type

Members list

Value members

Concrete methods

def compute(primary: Long, width: Int, start: Long, end: Long): Long

Compute an appropriate step size so that each datapoint shown for the graph has at least one pixel. The computed step must be a multiple of the primary step that is passed in.

Compute an appropriate step size so that each datapoint shown for the graph has at least one pixel. The computed step must be a multiple of the primary step that is passed in.

Value parameters

end

end time for the graph

primary

step size that the input data is stored with

start

start time for the graph

width

width in pixels available for rendering the line

Attributes

def round(primary: Long, step: Long): Long

Round an arbitrary step to the next largest allowed step size.

Round an arbitrary step to the next largest allowed step size.

Attributes