mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-04-30 01:28:03 +00:00
Expose node's IP address via feed (#491)
* Fix typos Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * core: Extend `feed::LocatedNode` message with optional IP address Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * core: Expose IpAddr from locator task Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * core: Expose CLI flag to handle IP Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * tests: Consider Option<String> for IP address Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * core: Add node's IP directly to the Node's details Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Adjust testing and serialize node's ip address Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * frontend: Propagate IP address for deserialization purposes Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * core: Clarify the CLI flag documentation Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
@@ -134,6 +134,7 @@ pub struct NodeDetails {
|
||||
pub version: String,
|
||||
pub validator: Option<String>,
|
||||
pub network_id: Option<String>,
|
||||
pub ip: Option<String>,
|
||||
}
|
||||
|
||||
impl FeedMessage {
|
||||
@@ -185,7 +186,7 @@ impl FeedMessage {
|
||||
3 => {
|
||||
let (
|
||||
node_id,
|
||||
(name, implementation, version, validator, network_id),
|
||||
(name, implementation, version, validator, network_id, ip),
|
||||
stats,
|
||||
io,
|
||||
hardware,
|
||||
@@ -205,6 +206,7 @@ impl FeedMessage {
|
||||
version,
|
||||
validator,
|
||||
network_id,
|
||||
ip,
|
||||
},
|
||||
stats,
|
||||
block_details,
|
||||
|
||||
Reference in New Issue
Block a user