wowza_rest_rust/streaming_engine/
stats.rs

1pub mod current
2{
3    use super::super::prelude::*;
4    pub fn get(api_serv_url: &str) -> Result<CurrentMachineStatistics, Error>
5    {
6        let req =
7            isahc::http::Request::get(format!("{}/v2/machine/monitoring/current", api_serv_url))
8                .header("Accept", "application/json")
9                .body(())
10                .map_err(|e| Error::HttpError(e))?;
11        isahc::send(req)
12            .map_err(|e| Error::IsahcError(e))?
13            .body_mut()
14            .json()
15            .map_err(|e| Error::JsonError(e))
16    }
17}