unplugged-system/device/google/cuttlefish/host/commands/metrics/proto/cf_log.proto

55 lines
1.7 KiB
Protocol Buffer

/*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";
package cuttlefish;
import "common.proto";
import "cf_metrics_event.proto";
// Wrapper for Cuttlefish log events
// Next index: 7
message CuttlefishLogEvent {
// Defines the device class that this log was sourced from.
// This may not be the same device which uploaded the log event.
// Next index: 3
enum DeviceType {
// The log event was sourced from an unspecified device type.
CUTTLEFISH_DEVICE_TYPE_UNSPECIFIED = 0;
// A log event that was sourced from a Cuttlefish host device.
CUTTLEFISH_DEVICE_TYPE_HOST = 1;
// A log event that was sent by an Cuttlefish guest device.
CUTTLEFISH_DEVICE_TYPE_GUEST = 2;
}
// Local time on the event source device of when this event occurred.
optional Timestamp timestamp_ms = 1;
// The type of device this log event originated from.
optional DeviceType device_type = 2;
// The identifier for this session.
optional string session_id = 6;
// The version of Cuttlefish that's sending the log event.
optional string cuttlefish_version = 4;
// An event encompassing metrics data
optional MetricsEvent metrics_event = 5;
}