Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Enum Class TimeSeriesParams.MetricType
java.lang.Object
java.lang.Enum<TimeSeriesParams.MetricType>
org.elasticsearch.index.mapper.TimeSeriesParams.MetricType
- All Implemented Interfaces:
Serializable
,Comparable<TimeSeriesParams.MetricType>
,Constable
- Enclosing class:
- TimeSeriesParams
There are various types of metric used in time-series aggregations and downsampling.
Each supports different field types and different calculations.
Two of these, the COUNTER and GAUGE apply to most numerical types, mapping a single number,
while the POSITION metric applies only to geo_point and therefor a pair of numbers (lat,lon).
To simplify code that depends on this difference, we use the parameter `scalar==true` for
single number metrics, and `false` for the POSITION metric.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeSeriesParams.MetricType
fromString
(String value) static TimeSeriesParams.MetricType[]
scalar()
an array of metrics representing simple numerical values, like GAUGE and COUNTERString[]
list of aggregations supported for downsampling this metricfinal String
toString()
static TimeSeriesParams.MetricType
Returns the enum constant of this class with the specified name.static TimeSeriesParams.MetricType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GAUGE
-
COUNTER
-
POSITION
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
supportedAggs
list of aggregations supported for downsampling this metric -
scalar
an array of metrics representing simple numerical values, like GAUGE and COUNTER -
toString
- Overrides:
toString
in classEnum<TimeSeriesParams.MetricType>
-
fromString
-