firecracker_rs_sdk/models/
metrics.rs

1use std::path::PathBuf;
2
3use serde::{Deserialize, Serialize};
4
5/// Describes the configuration option for the metrics capability.
6#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord, Hash)]
7pub struct Metrics {
8    /// Path to the named pipe or file where the JSON-formatted metrics are flushed.
9    /// Required: true
10    #[serde(rename = "metrics_path")]
11    pub metrics_path: PathBuf,
12}