Skip to content

Commit 1fb3efa

Browse files
committed
[Management] Request srv monitoring.
1 parent 70695c4 commit 1fb3efa

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

nts-pool-management/src/routes/monitoring.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,22 @@ pub async fn get_work(
4141
port: None,
4242
},
4343
),
44+
(
45+
IpVersion::Srvv4,
46+
ProbeTimesourceInfo {
47+
uuid: ts.id.to_string(),
48+
domain: Some(ts.hostname.clone()),
49+
port: ts.port.map(|v| v.into()),
50+
},
51+
),
52+
(
53+
IpVersion::Srvv6,
54+
ProbeTimesourceInfo {
55+
uuid: ts.id.to_string(),
56+
domain: Some(ts.hostname.clone()),
57+
port: ts.port.map(|v| v.into()),
58+
},
59+
),
4460
]
4561
.into_iter()
4662
})

0 commit comments

Comments
 (0)