object Metric
- Alphabetic
- By Inheritance
- Metric
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- type Counter[-In] = Metric[MetricKeyType.Counter, In, MetricState.Counter]
- implicit class CounterSyntax[In] extends AnyRef
- type Frequency[-In] = Metric[MetricKeyType.Frequency, In, MetricState.Frequency]
- type Gauge[-In] = Metric[MetricKeyType.Gauge, In, MetricState.Gauge]
- implicit class GaugeSyntax[In] extends AnyRef
- type Histogram[-In] = Metric[MetricKeyType.Histogram, In, MetricState.Histogram]
- implicit class InvariantSyntax[Type, In, Out] extends AnyRef
- type Summary[-In] = Metric[MetricKeyType.Summary, In, MetricState.Summary]
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
counter(name: String, description: String): Counter[Long]
A counter, which can be incremented by longs.
-
def
counter(name: String): Counter[Long]
A counter, which can be incremented by longs.
-
def
counterDouble(name: String, description: String): Counter[Double]
A counter, which can be incremented by doubles.
-
def
counterDouble(name: String): Counter[Double]
A counter, which can be incremented by doubles.
-
def
counterInt(name: String, description: String): Counter[Int]
A counter, which can be incremented by integers.
-
def
counterInt(name: String): Counter[Int]
A counter, which can be incremented by integers.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
frequency(name: String, description: String): Frequency[String]
A string histogram metric, which keeps track of the counts of different strings.
-
def
frequency(name: String): Frequency[String]
A string histogram metric, which keeps track of the counts of different strings.
-
def
fromMetricKey[Type <: MetricKeyType](key: MetricKey[Type]): Metric[Type, Metric.fromMetricKey.Type.In, Metric.fromMetricKey.Type.Out]
Creates a metric from a metric key.
Creates a metric from a metric key. This is the primary constructor for zio.metrics.Metric.
-
def
gauge(name: String, description: String): Gauge[Double]
A gauge, which can be set to a value.
-
def
gauge(name: String): Gauge[Double]
A gauge, which can be set to a value.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
histogram(name: String, description: String, boundaries: Boundaries): Histogram[Double]
A numeric histogram metric, which keeps track of the count of numbers that fall in bins with the specified boundaries.
-
def
histogram(name: String, boundaries: Boundaries): Histogram[Double]
A numeric histogram metric, which keeps track of the count of numbers that fall in bins with the specified boundaries.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
succeed[Out](out: ⇒ Out): Metric[Unit, Any, Out]
Creates a metric that ignores input and produces constant output.
-
def
summary(name: String, description: String, maxAge: zio.Duration, maxSize: Int, error: Double, quantiles: Chunk[Double]): Summary[Double]
A summary metric.
-
def
summary(name: String, maxAge: zio.Duration, maxSize: Int, error: Double, quantiles: Chunk[Double]): Summary[Double]
A summary metric.
- def summaryInstant(name: String, description: String, maxAge: zio.Duration, maxSize: Int, error: Double, quantiles: Chunk[Double]): Summary[(Double, Instant)]
- def summaryInstant(name: String, maxAge: zio.Duration, maxSize: Int, error: Double, quantiles: Chunk[Double]): Summary[(Double, Instant)]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def timer(name: String, description: String, chronoUnit: ChronoUnit, boundaries: Chunk[Double]): Metric[MetricKeyType.Histogram, zio.Duration, MetricState.Histogram]
- def timer(name: String, chronoUnit: ChronoUnit, boundaries: Chunk[Double]): Metric[MetricKeyType.Histogram, zio.Duration, MetricState.Histogram]
-
def
timer(name: String, description: String, chronoUnit: ChronoUnit): Metric[MetricKeyType.Histogram, zio.Duration, MetricState.Histogram]
Creates a timer metric, based on a histogram, which keeps track of durations in the specified unit of time (milliseconds, seconds, etc.).
Creates a timer metric, based on a histogram, which keeps track of durations in the specified unit of time (milliseconds, seconds, etc.). The unit of time will automatically be added to the metric as a tag ("time_unit: milliseconds").
-
def
timer(name: String, chronoUnit: ChronoUnit): Metric[MetricKeyType.Histogram, zio.Duration, MetricState.Histogram]
Creates a timer metric, based on a histogram, which keeps track of durations in the specified unit of time (milliseconds, seconds, etc.).
Creates a timer metric, based on a histogram, which keeps track of durations in the specified unit of time (milliseconds, seconds, etc.). The unit of time will automatically be added to the metric as a tag ("time_unit: milliseconds").
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
object
runtime
Core metrics that are updated by the ZIO runtime system.