(self: &Arc<Self>, monitor_id: i32)
| 883 | } |
| 884 | |
| 885 | pub async fn pause_monitor(self: &Arc<Self>, monitor_id: i32) -> Result<()> { |
| 886 | let _: bool = self |
| 887 | .call( |
| 888 | "pauseMonitor", |
| 889 | vec![serde_json::to_value(monitor_id).unwrap()], |
| 890 | "/ok", |
| 891 | true, |
| 892 | ) |
| 893 | .await?; |
| 894 | |
| 895 | Ok(()) |
| 896 | } |
| 897 | |
| 898 | pub async fn resume_monitor(self: &Arc<Self>, monitor_id: i32) -> Result<()> { |
| 899 | let _: bool = self |
no test coverage detected