MCPcopy Create free account
hub / github.com/ZingerLittleBee/ServerBee / config

Function config

crates/agent/src/pinger.rs:182–189  ·  view source on GitHub ↗
(id: &str, probe_type: &str, target: &str, interval: u32)

Source from the content-addressed store, hash-verified

180 assert!(!r.success);
181 }
182
183 use serverbee_common::constants::{CAP_PING_HTTP, CAP_PING_ICMP, CAP_PING_TCP};
184
185 fn config(id: &str, probe_type: &str, target: &str, interval: u32) -> PingTaskConfig {
186 PingTaskConfig {
187 task_id: id.to_string(),
188 probe_type: probe_type.to_string(),
189 target: target.to_string(),
190 interval,
191 }
192 }

Calls

no outgoing calls

Tested by

no test coverage detected