Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions thorlog/v3/hostinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,28 @@ func NewWindowsPlatformInfo() *PlatformInfoWindows {
},
}
}

type PlatformInfoAIX struct {
jsonlog.ObjectHeader

// Hardware model
Model string `json:"model" textlog:"model"`
// OS version string, e.g. "7.3"
Version string `json:"version" textlog:"version"`
// Processor type, e.g. "POWER9"
Proc string `json:"proc" textlog:"proc"`
}

func (PlatformInfoAIX) platform() {}

const typePlatformInfoAIX = "AIX platform information"

func init() { AddLogObjectType(typePlatformInfoAIX, &PlatformInfoAIX{}) }

func NewAIXPlatformInfo() *PlatformInfoAIX {
return &PlatformInfoAIX{
ObjectHeader: jsonlog.ObjectHeader{
Type: typePlatformInfoAIX,
},
}
}