forked from mirror/client_golang
Polishing some doc comments
This commit is contained in:
parent
5032813742
commit
50b3332fd6
|
@ -36,8 +36,10 @@ const quantileLabel = "quantile"
|
||||||
//
|
//
|
||||||
// A typical use-case is the observation of request latencies. By default, a
|
// A typical use-case is the observation of request latencies. By default, a
|
||||||
// Summary provides the median, the 90th and the 99th percentile of the latency
|
// Summary provides the median, the 90th and the 99th percentile of the latency
|
||||||
// as rank estimations. In v0.10 of this library, default values will not compute
|
// as rank estimations. However, the default behavior will change in the
|
||||||
// any quantiles, so please set them accordingly.
|
// upcoming v0.10 of the library. There will be no rank estiamtions at all by
|
||||||
|
// default. For a sane transition, it is recommended to set the desired rank
|
||||||
|
// estimations explicitly.
|
||||||
//
|
//
|
||||||
// Note that the rank estimations cannot be aggregated in a meaningful way with
|
// Note that the rank estimations cannot be aggregated in a meaningful way with
|
||||||
// the Prometheus query language (i.e. you cannot average or add them). If you
|
// the Prometheus query language (i.e. you cannot average or add them). If you
|
||||||
|
@ -79,10 +81,10 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
// SummaryOpts bundles the options for creating a Summary metric. It is
|
// SummaryOpts bundles the options for creating a Summary metric. It is
|
||||||
// mandatory to set Name and Help to a non-empty string. Also, it is advisable
|
// mandatory to set Name and Help to a non-empty string. While all other fields
|
||||||
// to set Objectives field, as the Summary won't compute any quantiles
|
// are optional and can safely be left at their zero value, it is recommended to
|
||||||
// in v0.10 of the library. All other fields are optional and can safely
|
// explicitly set the Objectives field to the desired value as the default value
|
||||||
// be left at their zero value.
|
// will change in the upcoming v0.10 of the library.
|
||||||
type SummaryOpts struct {
|
type SummaryOpts struct {
|
||||||
// Namespace, Subsystem, and Name are components of the fully-qualified
|
// Namespace, Subsystem, and Name are components of the fully-qualified
|
||||||
// name of the Summary (created by joining these components with
|
// name of the Summary (created by joining these components with
|
||||||
|
|
Loading…
Reference in New Issue