Chromium Code Reviews| Index: components/rappor/proto/rappor_metric.proto |
| diff --git a/components/rappor/proto/rappor_metric.proto b/components/rappor/proto/rappor_metric.proto |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..df8f8b760534fa77d51b8cb8bff9fea6b69bc92d |
| --- /dev/null |
| +++ b/components/rappor/proto/rappor_metric.proto |
| @@ -0,0 +1,41 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| +// |
| +// Contains information collected by the RAPPOR (Randomized Aggregatable |
| +// Privacy-Preserving Ordinal Responses) system. |
| +// |
| +// For a full description of the rappor metrics, see |
| +// http://www.chromium.org/developers/design-documents/rappor |
| + |
| +syntax = "proto2"; |
| + |
| +option optimize_for = LITE_RUNTIME; |
| + |
| +package rappor; |
| + |
| +// Next tag: 4 |
| +message RapporReports { |
| + // Which version of the Rappor scheme generated these reports. |
| + optional int32 version = 1; |
|
Ilya Sherman
2014/02/13 01:39:03
Hmm, is the Rappor scheme expected to change? I'm
Steven Holte
2014/02/13 05:11:12
This was added in response to someone else's comme
Ilya Sherman
2014/02/13 23:23:08
I don't feel strongly either, but this does seem t
Steven Holte
2014/02/14 02:53:28
I suppose protobufs have optional fields and defau
|
| + |
| + // Which cohort these reports belong to. The RAPPOR participants are |
| + // partioned into cohorts in different ways, to allow better statistics and |
| + // increased coverage. In particular, the cohort will serve to choose the |
| + // hash functions used for Bloom-filter-based reports. |
| + optional int32 cohort = 2; |
|
Ilya Sherman
2014/02/13 01:39:03
It would be nice to document the expected amount o
Steven Holte
2014/02/13 05:11:12
Done.
|
| + |
| + // Each Report contains the values generated by the RAPPOR process for one |
| + // metric. |
| + message Report { |
| + // The name of the metric, hashed. |
|
Ilya Sherman
2014/02/13 01:39:03
Please document which hash function is used.
Steven Holte
2014/02/13 05:11:12
Done.
|
| + optional fixed64 name_hash = 1; |
| + |
| + // The sequence of bits produced by random coin flips in |
| + // RapporMetric::GetReport(). For a complete description of RAPPOR |
| + // metrics, refer to the design document at: |
| + // http://www.chromium.org/developers/design-documents/rappor |
| + optional bytes bits = 2; |
| + } |
| + repeated Report report = 3; |
| +} |