HomeSort by relevance Sort by last modified time
    Searched refs:bucketBoundaries (Results 1 - 10 of 10) sorted by null

  /external/opencensus-java/api/src/test/java/io/opencensus/stats/
BucketBoundariesTest.java 31 /** Unit tests for {@link io.opencensus.stats.BucketBoundaries}. */
40 BucketBoundaries bucketBoundaries = BucketBoundaries.create(buckets);
41 assertThat(bucketBoundaries.getBoundaries()).isEqualTo(buckets);
50 BucketBoundaries bucketBoundaries = BucketBoundaries.create(original);
54 assertThat(bucketBoundaries.getBoundaries()).isNotEqualTo(original);
55 assertThat(bucketBoundaries.getBoundaries()).isEqualTo(expected)
    [all...]
AggregationTest.java 45 BucketBoundaries bucketBoundaries = BucketBoundaries.create(Arrays.asList(0.1, 2.2, 33.3));
46 Distribution distribution = Distribution.create(bucketBoundaries);
47 assertThat(distribution.getBucketBoundaries()).isEqualTo(bucketBoundaries);
53 thrown.expectMessage("bucketBoundaries");
63 Distribution.create(BucketBoundaries.create(Arrays.asList(-10.0, 1.0, 5.0))),
64 Distribution.create(BucketBoundaries.create(Arrays.asList(-10.0, 1.0, 5.0))))
66 Distribution.create(BucketBoundaries.create(Arrays.asList(0.0, 1.0, 5.0))),
67 Distribution.create(BucketBoundaries.create(Arrays.asList(0.0, 1.0, 5.0)))
    [all...]
  /external/opencensus-java/api/src/main/java/io/opencensus/stats/
BucketBoundaries.java 33 public abstract class BucketBoundaries {
36 * Returns a {@code BucketBoundaries} with the given buckets.
38 * @param bucketBoundaries the boundaries for the buckets in the underlying histogram.
39 * @return a new {@code BucketBoundaries} with the specified boundaries.
40 * @throws NullPointerException if {@code bucketBoundaries} is null.
41 * @throws IllegalArgumentException if {@code bucketBoundaries} is not sorted.
44 public static final BucketBoundaries create(List<Double> bucketBoundaries) {
45 Utils.checkNotNull(bucketBoundaries, "bucketBoundaries");
    [all...]
Aggregation.java 182 public static Distribution create(BucketBoundaries bucketBoundaries) {
183 Utils.checkNotNull(bucketBoundaries, "bucketBoundaries");
184 return new AutoValue_Aggregation_Distribution(bucketBoundaries);
193 public abstract BucketBoundaries getBucketBoundaries();
  /external/opencensus-java/api/src/main/java/io/opencensus/metrics/export/
Distribution.java 155 * @param bucketBoundaries the bucket boundaries of a distribution (given explicitly). The
160 public static BucketOptions explicitOptions(List<Double> bucketBoundaries) {
161 return ExplicitOptions.create(bucketBoundaries);
196 * @param bucketBoundaries the bucket boundaries of a distribution (given explicitly). The
201 private static ExplicitOptions create(List<Double> bucketBoundaries) {
202 Utils.checkNotNull(bucketBoundaries, "bucketBoundaries");
204 Collections.unmodifiableList(new ArrayList<Double>(bucketBoundaries));
209 private static void checkBucketBoundsAreSorted(List<Double> bucketBoundaries) {
210 if (bucketBoundaries.size() >= 1)
    [all...]
  /external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/stats/
MutableAggregation.java 32 import io.opencensus.stats.BucketBoundaries;
265 private final BucketBoundaries bucketBoundaries;
273 private MutableDistribution(BucketBoundaries bucketBoundaries) {
274 this.bucketBoundaries = bucketBoundaries;
275 int buckets = bucketBoundaries.getBoundaries().size() + 1;
280 this.exemplars = bucketBoundaries.getBoundaries().isEmpty() ? null : new Exemplar[buckets];
288 static MutableDistribution create(BucketBoundaries bucketBoundaries)
    [all...]
  /external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/stats/
RecordUtilsTest.java 34 import io.opencensus.stats.BucketBoundaries;
78 BucketBoundaries bucketBoundaries = BucketBoundaries.create(Arrays.asList(-1.0, 0.0, 1.0));
110 Distribution.create(bucketBoundaries), MEASURE_DOUBLE);
MutableAggregationTest.java 45 import io.opencensus.stats.BucketBoundaries;
63 private static final BucketBoundaries BUCKET_BOUNDARIES =
64 BucketBoundaries.create(Arrays.asList(-10.0, 0.0, 10.0));
65 private static final BucketBoundaries BUCKET_BOUNDARIES_EMPTY =
66 BucketBoundaries.create(Collections.<Double>emptyList());
78 BucketBoundaries bucketBoundaries = BucketBoundaries.create(Arrays.asList(0.1, 2.2, 33.3));
79 MutableDistribution mutableDistribution = MutableDistribution.create(bucketBoundaries);
96 thrown.expectMessage("bucketBoundaries should not be null.")
    [all...]
  /external/opencensus-java/exporters/stats/stackdriver/src/main/java/io/opencensus/exporter/stats/stackdriver/
StackdriverExportUtils.java 56 import io.opencensus.stats.BucketBoundaries;
414 // Create a StackDriver Distribution from DistributionData and BucketBoundaries
417 DistributionData distributionData, BucketBoundaries bucketBoundaries) {
419 .setBucketOptions(createBucketOptions(bucketBoundaries))
433 // Create BucketOptions from BucketBoundaries
435 static BucketOptions createBucketOptions(BucketBoundaries bucketBoundaries) {
437 .setExplicitBuckets(Explicit.newBuilder().addAllBounds(bucketBoundaries.getBoundaries()))
  /external/opencensus-java/contrib/zpages/src/main/java/io/opencensus/contrib/zpages/
StatszZPageHandler.java 529 List<Double> bucketBoundaries,
534 bucketBoundaries.size() == bucketCounts.size() - 1,
543 double low = i == 0 ? Double.NEGATIVE_INFINITY : bucketBoundaries.get(i - 1);
545 i == bucketCounts.size() - 1 ? Double.POSITIVE_INFINITY : bucketBoundaries.get(i);

Completed in 282 milliseconds