Class

com.netflix.atlas.core.model.MathExpr

Percentiles

Related Doc: package MathExpr

Permalink

case class Percentiles(expr: DataExpr.GroupBy, percentiles: List[Double]) extends TimeSeriesExpr with Product with Serializable

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.

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].

Linear Supertypes
Serializable, Serializable, TimeSeriesExpr, Expr, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Percentiles
  2. Serializable
  3. Serializable
  4. TimeSeriesExpr
  5. Expr
  6. Product
  7. Equals
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Percentiles(expr: DataExpr.GroupBy, percentiles: List[Double])

    Permalink

    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].

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  6. def dataExprs: List[DataExpr]

    Permalink

    The underlying data expressions that supply input for the evaluation.

    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.

    Definition Classes
    PercentilesTimeSeriesExpr
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def eval(context: EvalContext, data: Map[DataExpr, List[TimeSeries]]): ResultSet

    Permalink
    Definition Classes
    PercentilesTimeSeriesExpr
  9. def eval(context: EvalContext, data: List[TimeSeries]): ResultSet

    Permalink
    Definition Classes
    TimeSeriesExpr
  10. val expr: DataExpr.GroupBy

    Permalink

    Input data expression.

    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.

  11. def exprString: String

    Permalink

    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.

    Definition Classes
    Expr
  12. def finalGrouping: List[String]

    Permalink

    Returns the final grouping for the expression.

    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.

    Definition Classes
    PercentilesTimeSeriesExpr
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  14. def groupByKey(tags: Map[String, String]): Option[String]

    Permalink

    Returns the grouping key generated for a given tag map.

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

    Definition Classes
    PercentilesTimeSeriesExpr
  15. def isGrouped: Boolean

    Permalink

    Returns true if the result is grouped.

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

    Definition Classes
    PercentilesTimeSeriesExpr
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  20. val percentiles: List[Double]

    Permalink

    List of percentiles to compute.

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

  21. def rewrite(f: PartialFunction[Expr, Expr]): Expr

    Permalink

    Rewrite the expression using the specified function.

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

    Definition Classes
    Expr
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

    Permalink
    Definition Classes
    Percentiles → AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. def withOffset(d: Duration): TimeSeriesExpr

    Permalink

    Apply a time shift to all underlying data expressions.

    Apply a time shift to all underlying data expressions.

    Definition Classes
    TimeSeriesExpr

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Serializable

Inherited from TimeSeriesExpr

Inherited from Expr

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped