From fc4b41a3743a8ed8de6c52993fc37219124176ad Mon Sep 17 00:00:00 2001 From: Lennart Elsen Date: Wed, 12 Jun 2024 21:27:36 +0200 Subject: [PATCH] [feature] GoQuery: rename hostname attribute to host in table output (#331) Closes #330 Co-authored-by: Lennart Elsen --- pkg/types/columns.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/types/columns.go b/pkg/types/columns.go index ebfc8e57..e87403af 100644 --- a/pkg/types/columns.go +++ b/pkg/types/columns.go @@ -53,7 +53,7 @@ const ( // Below enumerate the data type names used across goProbe const ( TimeName = "time" - HostnameName = "hostname" + HostnameName = "host" HostIDName = "hostid" IfaceName = "iface" @@ -321,7 +321,7 @@ func ParseQueryType(queryType string) (attributes []Attribute, selector LabelSel case IfaceName: selector.Iface = true continue - case HostnameName: + case HostnameName, "hostname": // NOTE: the "hostname" alias is here specifically for backwards compatibility in v4 selector.Hostname = true continue case HostIDName: