1syntax = "proto2"; 2 3package cuttlefish; 4 5import "common.proto"; 6import "cf_metrics_event.proto"; 7 8// Wrapper for Cuttlefish log events 9// Next index: 7 10message CuttlefishLogEvent { 11 // Defines the device class that this log was sourced from. 12 // This may not be the same device which uploaded the log event. 13 // Next index: 3 14 enum DeviceType { 15 // The log event was sourced from an unspecified device type. 16 CUTTLEFISH_DEVICE_TYPE_UNSPECIFIED = 0; 17 18 // A log event that was sourced from a Cuttlefish host device. 19 CUTTLEFISH_DEVICE_TYPE_HOST = 1; 20 21 // A log event that was sent by an Cuttlefish guest device. 22 CUTTLEFISH_DEVICE_TYPE_GUEST = 2; 23 } 24 25 // Local time on the event source device of when this event occurred. 26 optional Timestamp timestamp_ms = 1; 27 28 // The type of device this log event originated from. 29 optional DeviceType device_type = 2; 30 31 // The identifier for this device. 32 optional string device_id = 3; 33 34 // The identifier for this session. 35 optional string session_id = 6; 36 37 // The version of Cuttlefish that's sending the log event. 38 optional string cuttlefish_version = 4; 39 40 // An event encompassing metrics data 41 optional MetricsEvent metrics_event = 5; 42} 43