This API documentation is for Ballerina 1.2.0. View API documentation for the latest release.

Record - observe : StatisticConfig

This represents the statistic configuration that can be used to instatiate gauge metric.


  • percentiles float[]
  • The percentiles that needs to be calculated.

  • timeWindow int
  • The time window (in milli seconds) in which variation of the values are considered.

  • buckets int
  • The number of buckets used in the sliding time window.