From cd027cd11a661546d573bb5a21f5f7a3c5926da8 Mon Sep 17 00:00:00 2001 From: Max Altgelt Date: Fri, 28 Nov 2025 11:16:00 +0100 Subject: [PATCH] feat: add platform info for AIX --- thorlog/v3/hostinfo.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/thorlog/v3/hostinfo.go b/thorlog/v3/hostinfo.go index 8a07370..5b7db8d 100644 --- a/thorlog/v3/hostinfo.go +++ b/thorlog/v3/hostinfo.go @@ -168,3 +168,27 @@ func NewWindowsPlatformInfo() *PlatformInfoWindows { }, } } + +type PlatformInfoAIX struct { + jsonlog.ObjectHeader + + Name string `json:"name" textlog:"name"` + KernelName string `json:"kernel_name" textlog:"kernel_name"` + KernelVersion string `json:"kernel_version" textlog:"kernel_version"` + Proc string `json:"proc" textlog:"proc"` + Arch string `json:"arch" textlog:"arch"` +} + +func (PlatformInfoAIX) platform() {} + +const typePlatformInfoAIX = "AIX platform information" + +func init() { AddLogObjectType(typePlatformInfoAIX, &PlatformInfoAIX{}) } + +func NewAIXPlatformInfo() *PlatformInfoAIX { + return &PlatformInfoAIX{ + ObjectHeader: jsonlog.ObjectHeader{ + Type: typePlatformInfoAIX, + }, + } +}