-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into firmwareInventoryMetrics
- Loading branch information
Showing
8 changed files
with
225 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,17 +44,24 @@ type NVMeDriveMetrics struct { | |
// Logical Drives | ||
// /redfish/v1/Systems/X/SmartStorage/ArrayControllers/X/LogicalDrives/X/ | ||
type LogicalDriveMetrics struct { | ||
Id string `json:"Id"` | ||
CapacityMiB int `json:"CapacityMiB"` | ||
Description string `json:"Description"` | ||
InterfaceType string `json:"InterfaceType"` | ||
LogicalDriveName string `json:"LogicalDriveName"` | ||
LogicalDriveNumber int `json:"LogicalDriveNumber"` | ||
Name string `json:"Name"` | ||
Raid string `json:"Raid"` | ||
Status Status `json:"Status"` | ||
StripeSizebytes int `json:"StripeSizebytes"` | ||
VolumeUniqueIdentifier string `json:"VolumeUniqueIdentifier"` | ||
Id string `json:"Id"` | ||
CapacityMiB int `json:"CapacityMiB"` | ||
Description string `json:"Description"` | ||
DisplayName string `json:"DisplayName"` | ||
InterfaceType string `json:"InterfaceType"` | ||
Identifiers []Identifiers `json:"Identifiers"` | ||
LogicalDriveName string `json:"LogicalDriveName"` | ||
LogicalDriveNumber int `json:"LogicalDriveNumber"` | ||
Name string `json:"Name"` | ||
Raid string `json:"Raid"` | ||
RaidType string `json:"RAIDType"` | ||
Status Status `json:"Status"` | ||
StripeSizebytes int `json:"StripeSizebytes"` | ||
VolumeUniqueIdentifier string `json:"VolumeUniqueIdentifier"` | ||
} | ||
|
||
type Identifiers struct { | ||
DurableName string `json:"DurableName"` | ||
} | ||
|
||
// Disk Drives | ||
|
@@ -116,10 +123,14 @@ func (w *LocationWrapper) UnmarshalJSON(data []byte) error { | |
// /redfish/v1/Systems/X/SmartStorage/ArrayControllers/ for Logical and Physical Drives | ||
// /redfish/v1/Chassis/X/Drives/ for NVMe Drive(s) | ||
type GenericDrive struct { | ||
Members []Members `json:"Members,omitempty"` | ||
LinksUpper LinksUpper `json:"Links,omitempty"` | ||
LinksLower LinksLower `json:"links,omitempty"` | ||
MembersCount int `json:"[email protected],omitempty"` | ||
Members []Members `json:"Members,omitempty"` | ||
LinksUpper LinksUpper `json:"Links,omitempty"` | ||
LinksLower LinksLower `json:"links,omitempty"` | ||
MembersCount int `json:"[email protected],omitempty"` | ||
DriveCount int `json:"[email protected],omitempty"` | ||
StorageDrives []Link `json:"Drives,omitempty"` | ||
Volumes Link `json:"Volumes,omitempty"` | ||
Controllers Link `json:"Controllers,omitempty"` | ||
} | ||
|
||
type Members struct { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.