TimeSeriesExpr

com.netflix.atlas.core.model.TimeSeriesExpr
trait TimeSeriesExpr extends Expr

Base type for expressions that have a set of time series as the result.

Attributes

Graph
Supertypes
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
trait DataExpr
class Count
class Max
class Min
class Sum
class All
class GroupBy
trait FilterExpr
class Filter
class BottomK
class TopK
class Stat
trait StatExpr
object StatAvg
object StatCount
object StatLast
object StatMax
object StatMin
object StatTotal
trait MathExpr
trait AggrMathExpr
class Count
class Max
class Min
class Sum
class As
class Add
class And
class Divide
class FAdd
class FDivide
class FMultiply
class FSubtract
class GreaterThan
class LessThan
class Multiply
class Or
class Power
class Subtract
class ClampMax
class ClampMin
class Constant
class GroupBy
class NamedRewrite
class Percentiles
object Random
class SeededRandom
class Time
class TimeSpan
class Abs
class Negate
class PerStep
class Sine
class Sqrt
trait StatefulExpr
trait OnlineExpr
class Delay
class Derivative
class Des
class Integral
class RollingCount
class RollingMax
class RollingMean
class RollingMin
class RollingSum
class SlidingDes
class Trend
Show all

Members list

Value members

Abstract methods

def dataExprs: List[DataExpr]

The underlying data expressions that supply input for the evaluation. These are used to fetch data from the data stores. There may be some expressions types that generate data and will have an empty set. Examples are constants, random, or time.

The underlying data expressions that supply input for the evaluation. These are used to fetch data from the data stores. There may be some expressions types that generate data and will have an empty set. Examples are constants, random, or time.

Attributes

def eval(context: EvalContext, data: Map[DataExpr, List[TimeSeries]]): ResultSet
def finalGrouping: List[String]

Returns the final grouping for the expression. For non-grouped expressions this will be an empty list. If a multi-level group by is used, then this will return the grouping of the final result and ignore any intermediate groupings.

Returns the final grouping for the expression. For non-grouped expressions this will be an empty list. If a multi-level group by is used, then this will return the grouping of the final result and ignore any intermediate groupings.

Attributes

def groupByKey(tags: Map[String, String]): Option[String]

Returns the grouping key generated for a given tag map. All keys for the group by must be present in the map.

Returns the grouping key generated for a given tag map. All keys for the group by must be present in the map.

Attributes

def isGrouped: Boolean

Returns true if the result is grouped. See GroupBy operators.

Returns true if the result is grouped. See GroupBy operators.

Attributes

Concrete methods

def eval(context: EvalContext, data: List[TimeSeries]): ResultSet
def withOffset(d: Duration): TimeSeriesExpr

Apply a time shift to all underlying data expressions.

Apply a time shift to all underlying data expressions.

Attributes

Inherited methods

def exprString: String

Returns a string that can be executed with the stack interpreter to create this expression.

Returns a string that can be executed with the stack interpreter to create this expression.

Attributes

Inherited from:
Expr
def productElementName(n: Int): String

Attributes

Inherited from:
Product
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def productPrefix: String

Attributes

Inherited from:
Product
def rewrite(f: PartialFunction[Expr, Expr]): Expr

Rewrite the expression using the specified function. The default implementation will try to recursively apply the rewrite to case classes.

Rewrite the expression using the specified function. The default implementation will try to recursively apply the rewrite to case classes.

Attributes

Inherited from:
Expr

Inherited and Abstract methods

def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals
def productArity: Int

Attributes

Inherited from:
Product
def productElement(n: Int): Any

Attributes

Inherited from:
Product