Skip to main content

proxmox_api/generated/nodes/node/
report.rs

1#[derive(Debug, Clone)]
2pub struct ReportClient<T> {
3    client: T,
4    path: String,
5}
6impl<T> ReportClient<T>
7where
8    T: crate::client::Client,
9{
10    pub fn new(client: T, parent_path: &str) -> Self {
11        Self {
12            client,
13            path: format!("{}{}", parent_path, "/report"),
14        }
15    }
16}
17impl<T> ReportClient<T>
18where
19    T: crate::client::Client,
20{
21    #[doc = "Gather various systems information about a node"]
22    #[doc = ""]
23    #[doc = "Permission check: perm(\"/nodes/{node}\", [\"Sys.Audit\"])"]
24    pub async fn get(&self) -> Result<String, T::Error> {
25        let path = self.path.to_string();
26        self.client.get(&path, &()).await
27    }
28}