MCPcopy Create free account
hub / github.com/BigBoot/AutoKuma / pause_monitor

Method pause_monitor

kuma-client/src/client.rs:885–896  ·  view source on GitHub ↗
(self: &Arc<Self>, monitor_id: i32)

Source from the content-addressed store, hash-verified

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

Callers 2

add_monitorMethod · 0.80
handleFunction · 0.80

Calls 1

callMethod · 0.45

Tested by

no test coverage detected