1/* 2 * Copyright (C) 2020 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16syntax = "proto2"; 17 18package cuttlefish; 19 20import "common.proto"; 21import "cf_metrics_event.proto"; 22 23// Wrapper for Cuttlefish log events 24// Next index: 7 25message CuttlefishLogEvent { 26 // Defines the device class that this log was sourced from. 27 // This may not be the same device which uploaded the log event. 28 // Next index: 3 29 enum DeviceType { 30 // The log event was sourced from an unspecified device type. 31 CUTTLEFISH_DEVICE_TYPE_UNSPECIFIED = 0; 32 33 // A log event that was sourced from a Cuttlefish host device. 34 CUTTLEFISH_DEVICE_TYPE_HOST = 1; 35 36 // A log event that was sent by an Cuttlefish guest device. 37 CUTTLEFISH_DEVICE_TYPE_GUEST = 2; 38 } 39 40 // Local time on the event source device of when this event occurred. 41 optional Timestamp timestamp_ms = 1; 42 43 // The type of device this log event originated from. 44 optional DeviceType device_type = 2; 45 46 // The identifier for this session. 47 optional string session_id = 6; 48 49 // The version of Cuttlefish that's sending the log event. 50 optional string cuttlefish_version = 4; 51 52 // An event encompassing metrics data 53 optional MetricsEvent metrics_event = 5; 54} 55