From 0cb34b53cc2d538c1c8462b5dcdc56be84a60daa Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Thu, 21 Dec 2017 15:58:35 +0000 Subject: [PATCH] introduce ParseProcessNodeID unused for now --- report/id.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/report/id.go b/report/id.go index 6b2f0b6c5..3d8b99274 100644 --- a/report/id.go +++ b/report/id.go @@ -229,6 +229,11 @@ func ParseAddressNodeID(addressNodeID string) (hostID, address string, ok bool) return split2(addressNodeID, ScopeDelim) } +// ParseProcessNodeID produces the host ID and PID from a process node ID. +func ParseProcessNodeID(processNodeID string) (hostID, pid string, ok bool) { + return split2(processNodeID, ScopeDelim) +} + // ParseECSServiceNodeID produces the cluster, service name from an ECS Service node ID func ParseECSServiceNodeID(ecsServiceNodeID string) (cluster, serviceName string, ok bool) { cluster, serviceName, ok = split2(ecsServiceNodeID, ScopeDelim)