Android-cuttlefish cvd tool
guest_metrics.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2025 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 */
16
17#pragma once
18
19#include <cstdint>
20#include <string>
21#include <string_view>
22#include <vector>
23
28
29namespace cuttlefish {
30
31struct GuestInfo {
32 uint32_t instance_id;
33 std::string product_out;
34};
35
36struct Guests {
37 std::string host_artifacts;
40 std::vector<GuestInfo> guest_infos;
41};
42
44 uint32_t instance_id;
45 std::string os_version;
48};
49
51
52} // namespace cuttlefish
Definition: alloc_driver.h:20
Result< std::vector< GuestMetrics > > GetGuestMetrics(const Guests &guests)
Definition: guest_metrics.cc:30
DeviceEventType
Definition: device_event_type.h:23
tl::expected< T, StackTraceError > Result
Definition: result_type.h:30
Definition: flag_metrics.h:28
Definition: guest_metrics.h:31
uint32_t instance_id
Definition: guest_metrics.h:32
std::string product_out
Definition: guest_metrics.h:33
Definition: guest_metrics.h:43
std::string os_version
Definition: guest_metrics.h:45
uint32_t instance_id
Definition: guest_metrics.h:44
DeviceEventType event_type
Definition: guest_metrics.h:46
FlagMetrics flag_metrics
Definition: guest_metrics.h:47
Definition: guest_metrics.h:36
DeviceEventType event_type
Definition: guest_metrics.h:38
std::string host_artifacts
Definition: guest_metrics.h:37
std::vector< GuestInfo > guest_infos
Definition: guest_metrics.h:40
ParsedFlags parsed_flags
Definition: guest_metrics.h:39
Definition: parsed_flags.h:31