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