Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
Change Quantiles to ValuesAtPercentile. (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan Drutu committed Oct 2, 2018
1 parent df894b5 commit f132850
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/opencensus/proto/metrics/v1/metrics.proto
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ message MetricDescriptor {
// Some frameworks implemented Histograms as a summary of observations
// (usually things like request durations and response sizes). While it
// also provides a total count of observations and a sum of all observed
// values, it calculates configurable quantiles over a sliding time window.
// values, it calculates configurable percentiles over a sliding time window.
// This is not recommended, since it cannot be aggregated.
SUMMARY = 7;
}
Expand Down Expand Up @@ -269,15 +269,20 @@ message SummaryValue {
// (if not supported).
google.protobuf.DoubleValue sum = 2;

repeated Quantile quantiles = 3;
// Represents the value at a given percentile of a distribution.
message ValueAtPercentile {
// The percentile of a distribution. Must be in the interval
// (0.0, 100.0].
double percentile = 1;

message Quantile {
// Must be in the interval (0.0, 1.0]
double quantile = 1;

// The value of the quantile.
// The value at the given percentile of a distribution.
double value = 2;
}

// A list of values at different percentiles of the distribution calculated
// from the current snapshot. The percentiles must be monotonically
// increasing.
repeated ValueAtPercentile percentile_values = 3;
}

// Values calculated over an arbitrary time window.
Expand Down

0 comments on commit f132850

Please sign in to comment.