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 //TODO(moelsherif) : This event is not converted yet in the code 32 CUTTLEFISH_DEVICE_TYPE_UNSPECIFIED = 0; 33 34 // A log event that was sourced from a Cuttlefish host device. 35 CUTTLEFISH_DEVICE_TYPE_HOST = 1; 36 37 // A log event that was sent by an Cuttlefish guest device. 38 //TODO(moelsherif) : This event is not converted yet in the code 39 CUTTLEFISH_DEVICE_TYPE_GUEST = 2; 40 } 41 42 // Local time on the event source device of when this event occurred. 43 optional Timestamp timestamp_ms = 1; 44 45 // The type of device this log event originated from. 46 optional DeviceType device_type = 2; 47 48 // The identifier for this session. 49 optional string session_id = 6; 50 51 // The version of Cuttlefish that's sending the log event. 52 optional string cuttlefish_version = 4; 53 54 // An event encompassing metrics data 55 optional MetricsEvent metrics_event = 5; 56} 57