Skip to content

Commit 7f88ac9

Browse files
authored
Merge pull request #50 from NextronSystems/feat/aix-platforminfo
feat: add platform info for AIX
2 parents d0773f0 + 14701b9 commit 7f88ac9

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

thorlog/v3/hostinfo.go

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,28 @@ func NewWindowsPlatformInfo() *PlatformInfoWindows {
168168
},
169169
}
170170
}
171+
172+
type PlatformInfoAIX struct {
173+
jsonlog.ObjectHeader
174+
175+
// Hardware model
176+
Model string `json:"model" textlog:"model"`
177+
// OS version string, e.g. "7.3"
178+
Version string `json:"version" textlog:"version"`
179+
// Processor type, e.g. "POWER9"
180+
Proc string `json:"proc" textlog:"proc"`
181+
}
182+
183+
func (PlatformInfoAIX) platform() {}
184+
185+
const typePlatformInfoAIX = "AIX platform information"
186+
187+
func init() { AddLogObjectType(typePlatformInfoAIX, &PlatformInfoAIX{}) }
188+
189+
func NewAIXPlatformInfo() *PlatformInfoAIX {
190+
return &PlatformInfoAIX{
191+
ObjectHeader: jsonlog.ObjectHeader{
192+
Type: typePlatformInfoAIX,
193+
},
194+
}
195+
}

0 commit comments

Comments
 (0)