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

Method pause_maintenance

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

Source from the content-addressed store, hash-verified

1054 }
1055
1056 pub async fn pause_maintenance(self: &Arc<Self>, maintenance_id: i32) -> Result<()> {
1057 let _: bool = self
1058 .call(
1059 "pauseMaintenance",
1060 vec![serde_json::to_value(maintenance_id).unwrap()],
1061 "/ok",
1062 true,
1063 )
1064 .await?;
1065
1066 Ok(())
1067 }
1068
1069 pub async fn resume_maintenance(self: &Arc<Self>, maintenance_id: i32) -> Result<()> {
1070 let _: bool = self

Callers 1

handleFunction · 0.80

Calls 1

callMethod · 0.45

Tested by

no test coverage detected