Jiri Simsa | 756772c | 2015-03-25 15:40:54 -0700 | [diff] [blame] | 1 | // 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 Thellend | 7a44243 | 2014-08-22 09:05:08 -0700 | [diff] [blame] | 5 | // Packages stats defines the non-native types exported by the stats service. |
| 6 | package stats |
| 7 | |
| 8 | // HistogramValue is the value of Histogram objects. |
| 9 | type 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 Ahn | 58e85b8 | 2014-12-01 10:01:02 -0800 | [diff] [blame] | 14 | // 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 Thellend | 7a44243 | 2014-08-22 09:05:08 -0700 | [diff] [blame] | 18 | // Buckets contains all the buckets of the histogram. |
| 19 | Buckets []HistogramBucket |
| 20 | } |
| 21 | |
| 22 | // HistogramBucket is one histogram bucket. |
| 23 | type 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 | } |