blob: 1835f804652275c7b6d877696474f83e8eec8386 [file] [log] [blame]
Jiri Simsa756772c2015-03-25 15:40:54 -07001// Copyright 2015 The Vanadium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
Robin Thellend7a442432014-08-22 09:05:08 -07005// Packages stats defines the non-native types exported by the stats service.
6package stats
7
8// HistogramValue is the value of Histogram objects.
9type HistogramValue struct {
10 // Count is the total number of values added to the histogram.
11 Count int64
12 // Sum is the sum of all the values added to the histogram.
13 Sum int64
Jungho Ahn58e85b82014-12-01 10:01:02 -080014 // Min is the minimum of all the values added to the histogram.
15 Min int64
16 // Max is the maximum of all the values added to the histogram.
17 Max int64
Robin Thellend7a442432014-08-22 09:05:08 -070018 // Buckets contains all the buckets of the histogram.
19 Buckets []HistogramBucket
20}
21
22// HistogramBucket is one histogram bucket.
23type HistogramBucket struct {
24 // LowBound is the lower bound of the bucket.
25 LowBound int64
26 // Count is the number of values in the bucket.
27 Count int64
28}