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, + }, + } +}