xref: /openbmc/bmcweb/features/redfish/schema/dmtf/json-schema/DriveMetrics.v1_3_0.json (revision 5ecf7b4e1bb6988dd3403fa80b723afbe2be30ae)
1*5ecf7b4eSGunnar Mills{
2*5ecf7b4eSGunnar Mills    "$id": "http://redfish.dmtf.org/schemas/v1/DriveMetrics.v1_3_0.json",
3*5ecf7b4eSGunnar Mills    "$ref": "#/definitions/DriveMetrics",
4*5ecf7b4eSGunnar Mills    "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
5*5ecf7b4eSGunnar Mills    "copyright": "Copyright 2014-2025 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
6*5ecf7b4eSGunnar Mills    "definitions": {
7*5ecf7b4eSGunnar Mills        "Actions": {
8*5ecf7b4eSGunnar Mills            "additionalProperties": false,
9*5ecf7b4eSGunnar Mills            "description": "The available actions for this resource.",
10*5ecf7b4eSGunnar Mills            "longDescription": "This type shall contain the available actions for this resource.",
11*5ecf7b4eSGunnar Mills            "patternProperties": {
12*5ecf7b4eSGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
13*5ecf7b4eSGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
14*5ecf7b4eSGunnar Mills                    "type": [
15*5ecf7b4eSGunnar Mills                        "array",
16*5ecf7b4eSGunnar Mills                        "boolean",
17*5ecf7b4eSGunnar Mills                        "integer",
18*5ecf7b4eSGunnar Mills                        "number",
19*5ecf7b4eSGunnar Mills                        "null",
20*5ecf7b4eSGunnar Mills                        "object",
21*5ecf7b4eSGunnar Mills                        "string"
22*5ecf7b4eSGunnar Mills                    ]
23*5ecf7b4eSGunnar Mills                }
24*5ecf7b4eSGunnar Mills            },
25*5ecf7b4eSGunnar Mills            "properties": {
26*5ecf7b4eSGunnar Mills                "Oem": {
27*5ecf7b4eSGunnar Mills                    "$ref": "#/definitions/OemActions",
28*5ecf7b4eSGunnar Mills                    "description": "The available OEM-specific actions for this resource.",
29*5ecf7b4eSGunnar Mills                    "longDescription": "This property shall contain the available OEM-specific actions for this resource."
30*5ecf7b4eSGunnar Mills                }
31*5ecf7b4eSGunnar Mills            },
32*5ecf7b4eSGunnar Mills            "type": "object"
33*5ecf7b4eSGunnar Mills        },
34*5ecf7b4eSGunnar Mills        "DriveMetrics": {
35*5ecf7b4eSGunnar Mills            "additionalProperties": false,
36*5ecf7b4eSGunnar Mills            "description": "The usage and health statistics for a drive.",
37*5ecf7b4eSGunnar Mills            "longDescription": "The `DriveMetrics` schema shall contain the usage and health statistics for a drive in a Redfish implementation.",
38*5ecf7b4eSGunnar Mills            "patternProperties": {
39*5ecf7b4eSGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
40*5ecf7b4eSGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
41*5ecf7b4eSGunnar Mills                    "type": [
42*5ecf7b4eSGunnar Mills                        "array",
43*5ecf7b4eSGunnar Mills                        "boolean",
44*5ecf7b4eSGunnar Mills                        "integer",
45*5ecf7b4eSGunnar Mills                        "number",
46*5ecf7b4eSGunnar Mills                        "null",
47*5ecf7b4eSGunnar Mills                        "object",
48*5ecf7b4eSGunnar Mills                        "string"
49*5ecf7b4eSGunnar Mills                    ]
50*5ecf7b4eSGunnar Mills                }
51*5ecf7b4eSGunnar Mills            },
52*5ecf7b4eSGunnar Mills            "properties": {
53*5ecf7b4eSGunnar Mills                "@odata.context": {
54*5ecf7b4eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context"
55*5ecf7b4eSGunnar Mills                },
56*5ecf7b4eSGunnar Mills                "@odata.etag": {
57*5ecf7b4eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag"
58*5ecf7b4eSGunnar Mills                },
59*5ecf7b4eSGunnar Mills                "@odata.id": {
60*5ecf7b4eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id"
61*5ecf7b4eSGunnar Mills                },
62*5ecf7b4eSGunnar Mills                "@odata.type": {
63*5ecf7b4eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type"
64*5ecf7b4eSGunnar Mills                },
65*5ecf7b4eSGunnar Mills                "Actions": {
66*5ecf7b4eSGunnar Mills                    "$ref": "#/definitions/Actions",
67*5ecf7b4eSGunnar Mills                    "description": "The available actions for this resource.",
68*5ecf7b4eSGunnar Mills                    "longDescription": "This property shall contain the available actions for this resource."
69*5ecf7b4eSGunnar Mills                },
70*5ecf7b4eSGunnar Mills                "BadBlockCount": {
71*5ecf7b4eSGunnar Mills                    "description": "The total number of bad blocks reported by the drive.",
72*5ecf7b4eSGunnar Mills                    "longDescription": "This property shall contain the total number of bad blocks reported by the drive.",
73*5ecf7b4eSGunnar Mills                    "readonly": true,
74*5ecf7b4eSGunnar Mills                    "type": [
75*5ecf7b4eSGunnar Mills                        "integer",
76*5ecf7b4eSGunnar Mills                        "null"
77*5ecf7b4eSGunnar Mills                    ]
78*5ecf7b4eSGunnar Mills                },
79*5ecf7b4eSGunnar Mills                "CorrectableIOReadErrorCount": {
80*5ecf7b4eSGunnar Mills                    "description": "The number of correctable read errors for the lifetime of the drive.",
81*5ecf7b4eSGunnar Mills                    "longDescription": "This property shall contain the number of correctable read errors for the lifetime of the drive.",
82*5ecf7b4eSGunnar Mills                    "readonly": true,
83*5ecf7b4eSGunnar Mills                    "type": [
84*5ecf7b4eSGunnar Mills                        "integer",
85*5ecf7b4eSGunnar Mills                        "null"
86*5ecf7b4eSGunnar Mills                    ]
87*5ecf7b4eSGunnar Mills                },
88*5ecf7b4eSGunnar Mills                "CorrectableIOWriteErrorCount": {
89*5ecf7b4eSGunnar Mills                    "description": "The number of correctable write errors for the lifetime of the drive.",
90*5ecf7b4eSGunnar Mills                    "longDescription": "This property shall contain the number of correctable write errors for the lifetime of the drive.",
91*5ecf7b4eSGunnar Mills                    "readonly": true,
92*5ecf7b4eSGunnar Mills                    "type": [
93*5ecf7b4eSGunnar Mills                        "integer",
94*5ecf7b4eSGunnar Mills                        "null"
95*5ecf7b4eSGunnar Mills                    ]
96*5ecf7b4eSGunnar Mills                },
97*5ecf7b4eSGunnar Mills                "Description": {
98*5ecf7b4eSGunnar Mills                    "anyOf": [
99*5ecf7b4eSGunnar Mills                        {
100*5ecf7b4eSGunnar Mills                            "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
101*5ecf7b4eSGunnar Mills                        },
102*5ecf7b4eSGunnar Mills                        {
103*5ecf7b4eSGunnar Mills                            "type": "null"
104*5ecf7b4eSGunnar Mills                        }
105*5ecf7b4eSGunnar Mills                    ],
106*5ecf7b4eSGunnar Mills                    "readonly": true
107*5ecf7b4eSGunnar Mills                },
108*5ecf7b4eSGunnar Mills                "Id": {
109*5ecf7b4eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
110*5ecf7b4eSGunnar Mills                    "readonly": true
111*5ecf7b4eSGunnar Mills                },
112*5ecf7b4eSGunnar Mills                "LifetimeStartDateTime": {
113*5ecf7b4eSGunnar Mills                    "description": "The date and time when the drive started accumulating data for properties that contain lifetime data, such as `UncorrectableIOReadErrorCount`.",
114*5ecf7b4eSGunnar Mills                    "format": "date-time",
115*5ecf7b4eSGunnar Mills                    "longDescription": "This property shall contain the date and time when the drive started accumulating data for properties that contain lifetime data, such as `UncorrectableIOReadErrorCount`.  This might contain the same value as the production date of the drive.",
116*5ecf7b4eSGunnar Mills                    "readonly": true,
117*5ecf7b4eSGunnar Mills                    "type": [
118*5ecf7b4eSGunnar Mills                        "string",
119*5ecf7b4eSGunnar Mills                        "null"
120*5ecf7b4eSGunnar Mills                    ],
121*5ecf7b4eSGunnar Mills                    "versionAdded": "v1_3_0"
122*5ecf7b4eSGunnar Mills                },
123*5ecf7b4eSGunnar Mills                "NVMeSMART": {
124*5ecf7b4eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/StorageControllerMetrics.json#/definitions/NVMeSMARTMetrics",
125*5ecf7b4eSGunnar Mills                    "description": "The NVMe SMART metrics for the drive.",
126*5ecf7b4eSGunnar Mills                    "longDescription": "This property shall contain the NVMe SMART metrics for the drive as defined by the NVMe SMART/Health Information log page.  This property shall not be present if the service represents NVMe controllers in the drive as StorageController resources."
127*5ecf7b4eSGunnar Mills                },
128*5ecf7b4eSGunnar Mills                "Name": {
129*5ecf7b4eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
130*5ecf7b4eSGunnar Mills                    "readonly": true
131*5ecf7b4eSGunnar Mills                },
132*5ecf7b4eSGunnar Mills                "NativeCommandQueueDepth": {
133*5ecf7b4eSGunnar Mills                    "description": "The current depth of the Native Command Queue.",
134*5ecf7b4eSGunnar Mills                    "longDescription": "This property shall contain the current depth of the Native Command Queue as defined by the SATA Specification.",
135*5ecf7b4eSGunnar Mills                    "readonly": true,
136*5ecf7b4eSGunnar Mills                    "type": [
137*5ecf7b4eSGunnar Mills                        "integer",
138*5ecf7b4eSGunnar Mills                        "null"
139*5ecf7b4eSGunnar Mills                    ],
140*5ecf7b4eSGunnar Mills                    "versionAdded": "v1_1_0"
141*5ecf7b4eSGunnar Mills                },
142*5ecf7b4eSGunnar Mills                "Oem": {
143*5ecf7b4eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
144*5ecf7b4eSGunnar Mills                    "description": "The OEM extension property.",
145*5ecf7b4eSGunnar Mills                    "longDescription": "This property shall contain the OEM extensions.  All values for properties that this object contains shall conform to the Redfish Specification-described requirements."
146*5ecf7b4eSGunnar Mills                },
147*5ecf7b4eSGunnar Mills                "PowerOnHours": {
148*5ecf7b4eSGunnar Mills                    "description": "The number of power-on hours for the lifetime of the drive.",
149*5ecf7b4eSGunnar Mills                    "longDescription": "This property shall contain the number of power-on hours for the lifetime of the drive.",
150*5ecf7b4eSGunnar Mills                    "readonly": true,
151*5ecf7b4eSGunnar Mills                    "type": [
152*5ecf7b4eSGunnar Mills                        "number",
153*5ecf7b4eSGunnar Mills                        "null"
154*5ecf7b4eSGunnar Mills                    ]
155*5ecf7b4eSGunnar Mills                },
156*5ecf7b4eSGunnar Mills                "ReadIOKiBytes": {
157*5ecf7b4eSGunnar Mills                    "description": "The number of kibibytes read.",
158*5ecf7b4eSGunnar Mills                    "longDescription": "This property shall contain the total number of kibibytes read from the time of last reset or wrap.",
159*5ecf7b4eSGunnar Mills                    "readonly": true,
160*5ecf7b4eSGunnar Mills                    "type": [
161*5ecf7b4eSGunnar Mills                        "integer",
162*5ecf7b4eSGunnar Mills                        "null"
163*5ecf7b4eSGunnar Mills                    ],
164*5ecf7b4eSGunnar Mills                    "units": "KiBy",
165*5ecf7b4eSGunnar Mills                    "versionAdded": "v1_2_0"
166*5ecf7b4eSGunnar Mills                },
167*5ecf7b4eSGunnar Mills                "UncorrectableIOReadErrorCount": {
168*5ecf7b4eSGunnar Mills                    "description": "The number of uncorrectable read errors for the lifetime of the drive.",
169*5ecf7b4eSGunnar Mills                    "longDescription": "This property shall contain the number of uncorrectable read errors for the lifetime of the drive.",
170*5ecf7b4eSGunnar Mills                    "readonly": true,
171*5ecf7b4eSGunnar Mills                    "type": [
172*5ecf7b4eSGunnar Mills                        "integer",
173*5ecf7b4eSGunnar Mills                        "null"
174*5ecf7b4eSGunnar Mills                    ]
175*5ecf7b4eSGunnar Mills                },
176*5ecf7b4eSGunnar Mills                "UncorrectableIOWriteErrorCount": {
177*5ecf7b4eSGunnar Mills                    "description": "The number of uncorrectable write errors for the lifetime of the drive.",
178*5ecf7b4eSGunnar Mills                    "longDescription": "This property shall contain the number of uncorrectable write errors for the lifetime of the drive.",
179*5ecf7b4eSGunnar Mills                    "readonly": true,
180*5ecf7b4eSGunnar Mills                    "type": [
181*5ecf7b4eSGunnar Mills                        "integer",
182*5ecf7b4eSGunnar Mills                        "null"
183*5ecf7b4eSGunnar Mills                    ]
184*5ecf7b4eSGunnar Mills                },
185*5ecf7b4eSGunnar Mills                "WriteIOKiBytes": {
186*5ecf7b4eSGunnar Mills                    "description": "The number of kibibytes written.",
187*5ecf7b4eSGunnar Mills                    "longDescription": "This property shall contain the total number of kibibytes written from the time of last reset or wrap.",
188*5ecf7b4eSGunnar Mills                    "readonly": true,
189*5ecf7b4eSGunnar Mills                    "type": [
190*5ecf7b4eSGunnar Mills                        "integer",
191*5ecf7b4eSGunnar Mills                        "null"
192*5ecf7b4eSGunnar Mills                    ],
193*5ecf7b4eSGunnar Mills                    "units": "KiBy",
194*5ecf7b4eSGunnar Mills                    "versionAdded": "v1_2_0"
195*5ecf7b4eSGunnar Mills                }
196*5ecf7b4eSGunnar Mills            },
197*5ecf7b4eSGunnar Mills            "required": [
198*5ecf7b4eSGunnar Mills                "@odata.id",
199*5ecf7b4eSGunnar Mills                "@odata.type",
200*5ecf7b4eSGunnar Mills                "Id",
201*5ecf7b4eSGunnar Mills                "Name"
202*5ecf7b4eSGunnar Mills            ],
203*5ecf7b4eSGunnar Mills            "type": "object"
204*5ecf7b4eSGunnar Mills        },
205*5ecf7b4eSGunnar Mills        "OemActions": {
206*5ecf7b4eSGunnar Mills            "additionalProperties": true,
207*5ecf7b4eSGunnar Mills            "description": "The available OEM-specific actions for this resource.",
208*5ecf7b4eSGunnar Mills            "longDescription": "This type shall contain the available OEM-specific actions for this resource.",
209*5ecf7b4eSGunnar Mills            "patternProperties": {
210*5ecf7b4eSGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
211*5ecf7b4eSGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
212*5ecf7b4eSGunnar Mills                    "type": [
213*5ecf7b4eSGunnar Mills                        "array",
214*5ecf7b4eSGunnar Mills                        "boolean",
215*5ecf7b4eSGunnar Mills                        "integer",
216*5ecf7b4eSGunnar Mills                        "number",
217*5ecf7b4eSGunnar Mills                        "null",
218*5ecf7b4eSGunnar Mills                        "object",
219*5ecf7b4eSGunnar Mills                        "string"
220*5ecf7b4eSGunnar Mills                    ]
221*5ecf7b4eSGunnar Mills                }
222*5ecf7b4eSGunnar Mills            },
223*5ecf7b4eSGunnar Mills            "properties": {},
224*5ecf7b4eSGunnar Mills            "type": "object"
225*5ecf7b4eSGunnar Mills        }
226*5ecf7b4eSGunnar Mills    },
227*5ecf7b4eSGunnar Mills    "language": "en",
228*5ecf7b4eSGunnar Mills    "owningEntity": "DMTF",
229*5ecf7b4eSGunnar Mills    "release": "2025.3",
230*5ecf7b4eSGunnar Mills    "title": "#DriveMetrics.v1_3_0.DriveMetrics"
231*5ecf7b4eSGunnar Mills}