MathExpr

com.netflix.atlas.core.model.MathExpr
See theMathExpr companion trait
object MathExpr

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
MathExpr.type

Members list

Type members

Classlikes

case class Abs(expr: TimeSeriesExpr) extends UnaryMathExpr

Attributes

Supertypes
trait Serializable
trait Double => Double
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Add(expr1: TimeSeriesExpr, expr2: TimeSeriesExpr) extends BinaryMathExpr

Attributes

Supertypes
trait Serializable
trait (Double, Double) => Double
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
sealed trait AggrMathExpr extends TimeSeriesExpr

Attributes

Supertypes
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class Count
class Max
class Min
class Sum
case class And(expr1: TimeSeriesExpr, expr2: TimeSeriesExpr) extends BinaryMathExpr

Attributes

Supertypes
trait Serializable
trait (Double, Double) => Double
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class As(expr: TimeSeriesExpr, original: String, replacement: String) extends TimeSeriesExpr

Map a tag key name to an alternate name.

Map a tag key name to an alternate name.

Value parameters

expr

Input expression to act on.

original

Original tag name that should be replaced.

replacement

Replacement tag name that should be used going forward.

Attributes

Supertypes
trait Serializable
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
trait (Double, Double) => Double
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
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
Show all
case class ClampMax(expr: TimeSeriesExpr, max: Double) extends TimeSeriesExpr, UnaryOp

Attributes

Supertypes
trait Serializable
trait Double => Double
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ClampMin(expr: TimeSeriesExpr, min: Double) extends TimeSeriesExpr, UnaryOp

Attributes

Supertypes
trait Serializable
trait Double => Double
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Constant(v: Double) extends TimeSeriesExpr

Attributes

Supertypes
trait Serializable
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Count(expr: TimeSeriesExpr) extends AggrMathExpr

Attributes

Supertypes
trait Serializable
trait AggrMathExpr
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Divide(expr1: TimeSeriesExpr, expr2: TimeSeriesExpr) extends BinaryMathExpr

Attributes

Supertypes
trait Serializable
trait (Double, Double) => Double
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class FAdd(expr1: TimeSeriesExpr, expr2: TimeSeriesExpr) extends BinaryMathExpr

Attributes

Supertypes
trait Serializable
trait (Double, Double) => Double
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class FDivide(expr1: TimeSeriesExpr, expr2: TimeSeriesExpr) extends BinaryMathExpr

Attributes

Supertypes
trait Serializable
trait (Double, Double) => Double
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class FMultiply(expr1: TimeSeriesExpr, expr2: TimeSeriesExpr) extends BinaryMathExpr

Attributes

Supertypes
trait Serializable
trait (Double, Double) => Double
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class FSubtract(expr1: TimeSeriesExpr, expr2: TimeSeriesExpr) extends BinaryMathExpr

Attributes

Supertypes
trait Serializable
trait (Double, Double) => Double
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class GreaterThan(expr1: TimeSeriesExpr, expr2: TimeSeriesExpr) extends BinaryMathExpr

Attributes

Supertypes
trait Serializable
trait (Double, Double) => Double
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class GreaterThanEqual(expr1: TimeSeriesExpr, expr2: TimeSeriesExpr) extends BinaryMathExpr

Attributes

Supertypes
trait Serializable
trait (Double, Double) => Double
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class GroupBy(expr: AggrMathExpr, keys: List[String]) extends TimeSeriesExpr

Attributes

Supertypes
trait Serializable
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class LessThan(expr1: TimeSeriesExpr, expr2: TimeSeriesExpr) extends BinaryMathExpr

Attributes

Supertypes
trait Serializable
trait (Double, Double) => Double
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class LessThanEqual(expr1: TimeSeriesExpr, expr2: TimeSeriesExpr) extends BinaryMathExpr

Attributes

Supertypes
trait Serializable
trait (Double, Double) => Double
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Max(expr: TimeSeriesExpr) extends AggrMathExpr

Attributes

Supertypes
trait Serializable
trait AggrMathExpr
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Min(expr: TimeSeriesExpr) extends AggrMathExpr

Attributes

Supertypes
trait Serializable
trait AggrMathExpr
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Multiply(expr1: TimeSeriesExpr, expr2: TimeSeriesExpr) extends BinaryMathExpr

Attributes

Supertypes
trait Serializable
trait (Double, Double) => Double
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class NamedRewrite(name: String, displayExpr: Expr, evalExpr: TimeSeriesExpr, context: Context, groupByRewrite: Option[(Expr, List[String]) => Expr]) extends TimeSeriesExpr

Named rewrites are used to keep track of the user intent for operations and macros that are defined in terms of other basic operations. For example, :avg is not available as a basic aggregate type, it is a rewrite to query,:sum,query,:count,:div. However, for the user it is better if we can show query,:avg when dumping the expression as a string.

Named rewrites are used to keep track of the user intent for operations and macros that are defined in terms of other basic operations. For example, :avg is not available as a basic aggregate type, it is a rewrite to query,:sum,query,:count,:div. However, for the user it is better if we can show query,:avg when dumping the expression as a string.

Value parameters

context

Evaluation context for the initial creation time. This context is used to re-evaluate the rewrite using the original context if the overall expression is rewritten (Expr.rewrite()) later.

displayExpr

Expression that is displayed to the user when creating the expression string.

evalExpr

Expression that is evaluated.

name

Name of the operation, e.g., avg.

Attributes

Supertypes
trait Serializable
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Negate(expr: TimeSeriesExpr) extends UnaryMathExpr

Attributes

Supertypes
trait Serializable
trait Double => Double
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Or(expr1: TimeSeriesExpr, expr2: TimeSeriesExpr) extends BinaryMathExpr

Attributes

Supertypes
trait Serializable
trait (Double, Double) => Double
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class PerStep(expr: TimeSeriesExpr) extends UnaryMathExpr

Attributes

Supertypes
trait Serializable
trait Double => Double
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Percentiles(expr: GroupBy, percentiles: List[Double]) extends TimeSeriesExpr

Compute estimated percentile values using counts for well known buckets. See spectator PercentileBuckets for more information. The input will be grouped by the percentile key with each key value being the bucket index. The output will be one line per requested percentile.

Compute estimated percentile values using counts for well known buckets. See spectator PercentileBuckets for more information. The input will be grouped by the percentile key with each key value being the bucket index. The output will be one line per requested percentile.

Value parameters

expr

Input data expression. The value should be a sum or group by. The group by list should include the 'percentile' key. If using the :percentiles word to construct the instance then other aggregate types, such as max, will automatically be converted to sum and the percentile key will be added into the group by clause.

percentiles

List of percentiles to compute. Each value should be in the range [0.0, 100.0].

Attributes

Supertypes
trait Serializable
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Power(expr1: TimeSeriesExpr, expr2: TimeSeriesExpr) extends BinaryMathExpr

Attributes

Supertypes
trait Serializable
trait (Double, Double) => Double
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case object Random extends TimeSeriesExpr

Generate a time series that appears to be random noise for the purposes of experimentation and generating sample data. To ensure that the line is deterministic and reproducible it actually is based on a hash of the timestamp.

Generate a time series that appears to be random noise for the purposes of experimentation and generating sample data. To ensure that the line is deterministic and reproducible it actually is based on a hash of the timestamp.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Random.type
case class SeededRandom(seed: Int) extends TimeSeriesExpr

Same as [Random], but allows the user to specify a seed to vary the input. This allows multiple sample lines to be produced with different values.

Same as [Random], but allows the user to specify a seed to vary the input. This allows multiple sample lines to be produced with different values.

Attributes

Supertypes
trait Serializable
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Sine(expr: TimeSeriesExpr) extends UnaryMathExpr

Attributes

Supertypes
trait Serializable
trait Double => Double
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Sqrt(expr: TimeSeriesExpr) extends UnaryMathExpr

Attributes

Supertypes
trait Serializable
trait Double => Double
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Subtract(expr1: TimeSeriesExpr, expr2: TimeSeriesExpr) extends BinaryMathExpr

Attributes

Supertypes
trait Serializable
trait (Double, Double) => Double
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Sum(expr: TimeSeriesExpr) extends AggrMathExpr

Attributes

Supertypes
trait Serializable
trait AggrMathExpr
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Time(mode: String) extends TimeSeriesExpr

Attributes

Supertypes
trait Serializable
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class TimeSpan(s: String, e: String, zone: ZoneId) extends TimeSeriesExpr

Attributes

Supertypes
trait Serializable
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
trait Double => Double
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class Abs
class Negate
class PerStep
class Sine
class Sqrt