Datapoint

com.netflix.atlas.core.model.Datapoint
See theDatapoint companion object
case class Datapoint(tags: Map[String, String], timestamp: Long, value: Double, step: Long) extends TimeSeries, TimeSeq

Time series with a single value.

Value parameters

step

Step size for the datapoint. Defaults to the configured step size for the service.

tags

Metadata for the identifying the datapoint.

timestamp

Timestamp for the data point. The time is the end of an interval that starts at timestamp - step.

value

Value for the interval.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait TimeSeq
trait TimeSeries
trait TaggedItem
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def apply(t: Long): Double
def data: TimeSeq
def dsType: DsType
def id: ItemId

Unique id based on the tags.

Unique id based on the tags.

Attributes

def label: String

Inherited methods

def binaryOp(ts: TimeSeries, labelFmt: String, f: BinaryOp): TimeSeries

Attributes

Inherited from:
TimeSeries

Attributes

Inherited from:
TimeSeries
def bounded(s: Long, e: Long): ArrayTimeSeq

Attributes

Inherited from:
TimeSeq

Attributes

Inherited from:
TimeSeries
def datapoint(timestamp: Long): Datapoint

Attributes

Inherited from:
TimeSeries
def foreach(s: Long, e: Long)(f: (Long, Double) => Unit): Unit

Fast loop with no intermediate object creation.

Fast loop with no intermediate object creation.

Attributes

Inherited from:
TimeSeq
def foreach(f: (String, String) => Unit): Unit

Code that just needs to iterate over all tags should use this method. Allows for implementations to optimize how the tag data is stored and traversed.

Code that just needs to iterate over all tags should use this method. Allows for implementations to optimize how the tag data is stored and traversed.

Attributes

Inherited from:
TaggedItem
def idString: String

Standard string representation of the id.

Standard string representation of the id.

Attributes

Inherited from:
TaggedItem
def isExpired: Boolean

Returns true if the item is expired and no data is available.

Returns true if the item is expired and no data is available.

Attributes

Inherited from:
TaggedItem

Attributes

Inherited from:
TimeSeries
def mapValues(f: Double => Double): TimeSeq

Attributes

Inherited from:
TimeSeq
def offset(dur: Long): TimeSeries

Attributes

Inherited from:
TimeSeries
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def unaryOp(labelFmt: String, f: Double => Double): TimeSeries

Attributes

Inherited from:
TimeSeries
def withLabel(s: String): TimeSeries

Attributes

Inherited from:
TimeSeries
def withTags(ts: Map[String, String]): TimeSeries

Attributes

Inherited from:
TimeSeries