tembo_api_client/models/
probe.rs1use serde::{Deserialize, Serialize};
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct Probe {
15 #[serde(rename = "initialDelaySeconds")]
16 pub initial_delay_seconds: i32,
17 #[serde(rename = "path")]
18 pub path: String,
19 #[serde(rename = "port")]
20 pub port: i32,
21}
22
23impl Probe {
24 pub fn new(initial_delay_seconds: i32, path: String, port: i32) -> Probe {
25 Probe {
26 initial_delay_seconds,
27 path,
28 port,
29 }
30 }
31}