xref: /aosp_15_r20/external/cronet/third_party/metrics_proto/reporting_info.proto (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1// Copyright 2017 The Chromium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5syntax = "proto2";
6
7option optimize_for = LITE_RUNTIME;
8option java_package = "org.chromium.components.metrics";
9
10package metrics;
11
12// Extra information attached to reports by client at upload time.
13// Next tag: 5
14message ReportingInfo {
15  // Number of times upload of the current report has been attempted.
16  optional int32 attempt_count = 1;
17
18  // The HTTP response/error code of the last upload attempt.
19  optional int32 last_response_code = 2;
20
21  // The NET_ERROR code of the last upload attempt.
22  // See chromium's net/base/net_error_list.h for examples.
23  optional int32 last_error_code = 3;
24
25  // True if the last upload attempt was over HTTPS.
26  optional bool last_attempt_was_https = 4;
27}
28