1// Copyright 2021 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4use fuchsia_inspect as inspect;
5use fuchsia_inspect_derive::Inspect;
67#[derive(Inspect, Default, Debug)]
8pub struct SamplerExecutorStats {
9pub total_project_samplers_configured: inspect::UintProperty,
10pub healthily_exited_samplers: inspect::UintProperty,
11pub errorfully_exited_samplers: inspect::UintProperty,
12pub reboot_exited_samplers: inspect::UintProperty,
13pub inspect_node: fuchsia_inspect::Node,
14}
1516impl SamplerExecutorStats {
17pub fn new() -> Self {
18Self::default()
19 }
20}
2122#[derive(Inspect, Default, Debug)]
23pub struct ProjectSamplerStats {
24/// Total number of unique project samplers for this project.
25pub project_sampler_count: inspect::UintProperty,
26/// Total number of configured metrics across all
27 /// project samplers for this project..
28pub metrics_configured: inspect::UintProperty,
29/// Total number of cobalt logs sent on the behalf of this project.
30pub cobalt_logs_sent: inspect::UintProperty,
31 inspect_node: fuchsia_inspect::Node,
32}
3334impl ProjectSamplerStats {
35pub fn new() -> Self {
36Self::default()
37 }
38}