xref: /openbmc/bmcweb/features/redfish/schema/dmtf/csdl/DriveMetrics_v1.xml (revision c6d7a45d427f9a6d9e761afcf305761dca60d7cf)
12bde4061SEd Tanous<?xml version="1.0" encoding="UTF-8"?>
22bde4061SEd Tanous<!---->
32bde4061SEd Tanous<!--################################################################################               -->
4f2a8e57eSGunnar Mills<!--# Redfish Schema:  DriveMetrics v1.2.1                                                         -->
52bde4061SEd Tanous<!--#                                                                                              -->
62bde4061SEd Tanous<!--# For a detailed change log, see the README file contained in the DSP8010 bundle,              -->
72bde4061SEd Tanous<!--# available at http://www.dmtf.org/standards/redfish                                           -->
8d125652eSGunnar Mills<!--# Copyright 2014-2025 DMTF in cooperation with Storage Networking Industry Association (SNIA). -->
92bde4061SEd Tanous<!--# For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright         -->
102bde4061SEd Tanous<!--################################################################################               -->
112bde4061SEd Tanous<!---->
122bde4061SEd Tanous<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">
132bde4061SEd Tanous
142bde4061SEd Tanous  <edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/csd01/complete/vocabularies/Org.OData.Core.V1.xml">
152bde4061SEd Tanous    <edmx:Include Namespace="Org.OData.Core.V1" Alias="OData"/>
162bde4061SEd Tanous  </edmx:Reference>
172bde4061SEd Tanous  <edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/csd01/complete/vocabularies/Org.OData.Capabilities.V1.xml">
182bde4061SEd Tanous    <edmx:Include Namespace="Org.OData.Capabilities.V1" Alias="Capabilities"/>
192bde4061SEd Tanous  </edmx:Reference>
202bde4061SEd Tanous  <edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/csd01/complete/vocabularies/Org.OData.Measures.V1.xml">
212bde4061SEd Tanous    <edmx:Include Namespace="Org.OData.Measures.V1" Alias="Measures"/>
222bde4061SEd Tanous  </edmx:Reference>
232bde4061SEd Tanous  <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Resource_v1.xml">
242bde4061SEd Tanous    <edmx:Include Namespace="Resource.v1_0_0"/>
252bde4061SEd Tanous  </edmx:Reference>
262bde4061SEd Tanous  <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/RedfishExtensions_v1.xml">
272bde4061SEd Tanous    <edmx:Include Namespace="RedfishExtensions.v1_0_0" Alias="Redfish"/>
282bde4061SEd Tanous  </edmx:Reference>
292bde4061SEd Tanous  <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/StorageControllerMetrics_v1.xml">
302bde4061SEd Tanous    <edmx:Include Namespace="StorageControllerMetrics"/>
312bde4061SEd Tanous  </edmx:Reference>
322bde4061SEd Tanous
332bde4061SEd Tanous  <edmx:DataServices>
342bde4061SEd Tanous
352bde4061SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="DriveMetrics">
362bde4061SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
37f2a8e57eSGunnar Mills      <Annotation Term="Redfish.Language" String="en"/>
382bde4061SEd Tanous
392bde4061SEd Tanous      <EntityType Name="DriveMetrics" BaseType="Resource.v1_0_0.Resource" Abstract="true">
402bde4061SEd Tanous        <Annotation Term="OData.Description" String="The usage and health statistics for a drive."/>
41f2a8e57eSGunnar Mills        <Annotation Term="OData.LongDescription" String="The `DriveMetrics` schema shall contain the usage and health statistics for a drive in a Redfish implementation."/>
422bde4061SEd Tanous        <Annotation Term="Capabilities.InsertRestrictions">
432bde4061SEd Tanous          <Record>
442bde4061SEd Tanous            <PropertyValue Property="Insertable" Bool="false"/>
452bde4061SEd Tanous          </Record>
462bde4061SEd Tanous        </Annotation>
472bde4061SEd Tanous        <Annotation Term="Capabilities.UpdateRestrictions">
482bde4061SEd Tanous          <Record>
492bde4061SEd Tanous            <PropertyValue Property="Updatable" Bool="false"/>
502bde4061SEd Tanous          </Record>
512bde4061SEd Tanous        </Annotation>
522bde4061SEd Tanous        <Annotation Term="Capabilities.DeleteRestrictions">
532bde4061SEd Tanous          <Record>
542bde4061SEd Tanous            <PropertyValue Property="Deletable" Bool="false"/>
552bde4061SEd Tanous          </Record>
562bde4061SEd Tanous        </Annotation>
572bde4061SEd Tanous        <Annotation Term="Redfish.Uris">
582bde4061SEd Tanous          <Collection>
592bde4061SEd Tanous            <String>/redfish/v1/Systems/{ComputerSystemId}/Storage/{StorageId}/Drives/{DriveId}/Metrics</String>
602bde4061SEd Tanous            <String>/redfish/v1/Chassis/{ChassisId}/Drives/{DriveId}/Metrics</String>
612bde4061SEd Tanous            <String>/redfish/v1/CompositionService/ResourceBlocks/{ResourceBlockId}/Storage/{StorageId}/Drives/{DriveId}/Metrics</String>
622bde4061SEd Tanous            <String>/redfish/v1/CompositionService/ResourceBlocks/{ResourceBlockId}/Drives/{DriveId}/Metrics</String>
632bde4061SEd Tanous            <String>/redfish/v1/CompositionService/ResourceBlocks/{ResourceBlockId}/Systems/{ComputerSystemId}/Storage/{StorageId}/Drives/{DriveId}/Metrics</String>
642bde4061SEd Tanous            <String>/redfish/v1/ResourceBlocks/{ResourceBlockId}/Storage/{StorageId}/Drives/{DriveId}/Metrics</String>
652bde4061SEd Tanous            <String>/redfish/v1/ResourceBlocks/{ResourceBlockId}/Drives/{DriveId}/Metrics</String>
662bde4061SEd Tanous            <String>/redfish/v1/ResourceBlocks/{ResourceBlockId}/Systems/{ComputerSystemId}/Storage/{StorageId}/Drives/{DriveId}/Metrics</String>
672bde4061SEd Tanous          </Collection>
682bde4061SEd Tanous        </Annotation>
69*c6d7a45dSGunnar Mills        <Annotation Term="Redfish.DeprecatedUris">
70*c6d7a45dSGunnar Mills          <Collection>
71*c6d7a45dSGunnar Mills            <String>/redfish/v1/Systems/{ComputerSystemId}/Storage/{StorageId}/Drives/{DriveId}/Metrics</String>
72*c6d7a45dSGunnar Mills            <String>/redfish/v1/CompositionService/ResourceBlocks/{ResourceBlockId}/Storage/{StorageId}/Drives/{DriveId}/Metrics</String>
73*c6d7a45dSGunnar Mills            <String>/redfish/v1/CompositionService/ResourceBlocks/{ResourceBlockId}/Systems/{ComputerSystemId}/Storage/{StorageId}/Drives/{DriveId}/Metrics</String>
74*c6d7a45dSGunnar Mills            <String>/redfish/v1/ResourceBlocks/{ResourceBlockId}/Storage/{StorageId}/Drives/{DriveId}/Metrics</String>
75*c6d7a45dSGunnar Mills            <String>/redfish/v1/ResourceBlocks/{ResourceBlockId}/Systems/{ComputerSystemId}/Storage/{StorageId}/Drives/{DriveId}/Metrics</String>
76*c6d7a45dSGunnar Mills          </Collection>
77*c6d7a45dSGunnar Mills        </Annotation>
782bde4061SEd Tanous      </EntityType>
792bde4061SEd Tanous    </Schema>
802bde4061SEd Tanous
812bde4061SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="DriveMetrics.v1_0_0">
822bde4061SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
832bde4061SEd Tanous      <Annotation Term="Redfish.Release" String="2023.1"/>
842bde4061SEd Tanous
852bde4061SEd Tanous      <EntityType Name="DriveMetrics" BaseType="DriveMetrics.DriveMetrics">
862bde4061SEd Tanous        <Property Name="CorrectableIOReadErrorCount" Type="Edm.Int64">
872bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
882bde4061SEd Tanous          <Annotation Term="OData.Description" String="The number of correctable read errors for the lifetime of the drive."/>
892bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the number of correctable read errors for the lifetime of the drive."/>
902bde4061SEd Tanous        </Property>
912bde4061SEd Tanous        <Property Name="CorrectableIOWriteErrorCount" Type="Edm.Int64">
922bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
932bde4061SEd Tanous          <Annotation Term="OData.Description" String="The number of correctable write errors for the lifetime of the drive."/>
942bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the number of correctable write errors for the lifetime of the drive."/>
952bde4061SEd Tanous        </Property>
962bde4061SEd Tanous        <Property Name="UncorrectableIOReadErrorCount" Type="Edm.Int64">
972bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
982bde4061SEd Tanous          <Annotation Term="OData.Description" String="The number of uncorrectable read errors for the lifetime of the drive."/>
992bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the number of uncorrectable read errors for the lifetime of the drive."/>
1002bde4061SEd Tanous        </Property>
1012bde4061SEd Tanous        <Property Name="UncorrectableIOWriteErrorCount" Type="Edm.Int64">
1022bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
1032bde4061SEd Tanous          <Annotation Term="OData.Description" String="The number of uncorrectable write errors for the lifetime of the drive."/>
1042bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the number of uncorrectable write errors for the lifetime of the drive."/>
1052bde4061SEd Tanous        </Property>
1062bde4061SEd Tanous        <Property Name="BadBlockCount" Type="Edm.Int64">
1072bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
1082bde4061SEd Tanous          <Annotation Term="OData.Description" String="The total number of bad blocks reported by the drive."/>
1092bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the total number of bad blocks reported by the drive."/>
1102bde4061SEd Tanous        </Property>
1112bde4061SEd Tanous        <Property Name="PowerOnHours" Type="Edm.Decimal">
1122bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
1132bde4061SEd Tanous          <Annotation Term="OData.Description" String="The number of power-on hours for the lifetime of the drive."/>
1142bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the number of power-on hours for the lifetime of the drive."/>
1152bde4061SEd Tanous        </Property>
1162bde4061SEd Tanous        <Property Name="NVMeSMART" Type="StorageControllerMetrics.NVMeSMARTMetrics" Nullable="false">
1172bde4061SEd Tanous          <Annotation Term="OData.Description" String="The NVMe SMART metrics for the drive."/>
1182bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="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."/>
1192bde4061SEd Tanous        </Property>
1202bde4061SEd Tanous        <Property Name="Actions" Type="DriveMetrics.v1_0_0.Actions" Nullable="false">
1212bde4061SEd Tanous          <Annotation Term="OData.Description" String="The available actions for this resource."/>
1222bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the available actions for this resource."/>
1232bde4061SEd Tanous        </Property>
1242bde4061SEd Tanous      </EntityType>
1252bde4061SEd Tanous
1262bde4061SEd Tanous      <ComplexType Name="Actions">
1272bde4061SEd Tanous        <Annotation Term="OData.AdditionalProperties" Bool="false"/>
1282bde4061SEd Tanous        <Annotation Term="OData.Description" String="The available actions for this resource."/>
1292bde4061SEd Tanous        <Annotation Term="OData.LongDescription" String="This type shall contain the available actions for this resource."/>
1302bde4061SEd Tanous        <Property Name="Oem" Type="DriveMetrics.v1_0_0.OemActions" Nullable="false">
1312bde4061SEd Tanous          <Annotation Term="OData.Description" String="The available OEM-specific actions for this resource."/>
1322bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the available OEM-specific actions for this resource."/>
1332bde4061SEd Tanous        </Property>
1342bde4061SEd Tanous      </ComplexType>
1352bde4061SEd Tanous
1362bde4061SEd Tanous      <ComplexType Name="OemActions">
1372bde4061SEd Tanous        <Annotation Term="OData.AdditionalProperties" Bool="true"/>
1382bde4061SEd Tanous        <Annotation Term="OData.Description" String="The available OEM-specific actions for this resource."/>
1392bde4061SEd Tanous        <Annotation Term="OData.LongDescription" String="This type shall contain the available OEM-specific actions for this resource."/>
1402bde4061SEd Tanous      </ComplexType>
1412bde4061SEd Tanous    </Schema>
1422bde4061SEd Tanous
1432bde4061SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="DriveMetrics.v1_0_1">
1442bde4061SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
1452bde4061SEd Tanous      <Annotation Term="OData.Description" String="This version was created to correct various typographical errors."/>
1462bde4061SEd Tanous      <EntityType Name="DriveMetrics" BaseType="DriveMetrics.v1_0_0.DriveMetrics"/>
1472bde4061SEd Tanous    </Schema>
1482bde4061SEd Tanous
149f2a8e57eSGunnar Mills    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="DriveMetrics.v1_0_2">
150f2a8e57eSGunnar Mills      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
151f2a8e57eSGunnar Mills      <Annotation Term="OData.Description" String="This version was created to force the regeneration of OpenAPI schemas to properly express nullable properties with external references.  It was also created to correct various typographical errors."/>
152f2a8e57eSGunnar Mills      <EntityType Name="DriveMetrics" BaseType="DriveMetrics.v1_0_1.DriveMetrics"/>
153f2a8e57eSGunnar Mills    </Schema>
154f2a8e57eSGunnar Mills
1552bde4061SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="DriveMetrics.v1_1_0">
1562bde4061SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
1572bde4061SEd Tanous      <Annotation Term="Redfish.Release" String="2023.2"/>
1582bde4061SEd Tanous
1592bde4061SEd Tanous      <EntityType Name="DriveMetrics" BaseType="DriveMetrics.v1_0_0.DriveMetrics">
1602bde4061SEd Tanous        <Property Name="NativeCommandQueueDepth" Type="Edm.Int64">
1612bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
1622bde4061SEd Tanous          <Annotation Term="OData.Description" String="The current depth of the Native Command Queue."/>
1632bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the current depth of the Native Command Queue as defined by the SATA Specification."/>
1642bde4061SEd Tanous        </Property>
1652bde4061SEd Tanous      </EntityType>
1662bde4061SEd Tanous    </Schema>
1672bde4061SEd Tanous
1682bde4061SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="DriveMetrics.v1_1_1">
1692bde4061SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
1702bde4061SEd Tanous      <Annotation Term="OData.Description" String="This version was created to correct various typographical errors."/>
1712bde4061SEd Tanous      <EntityType Name="DriveMetrics" BaseType="DriveMetrics.v1_1_0.DriveMetrics"/>
1722bde4061SEd Tanous    </Schema>
1732bde4061SEd Tanous
174f2a8e57eSGunnar Mills    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="DriveMetrics.v1_1_2">
175f2a8e57eSGunnar Mills      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
176f2a8e57eSGunnar Mills      <Annotation Term="OData.Description" String="This version was created to force the regeneration of OpenAPI schemas to properly express nullable properties with external references.  It was also created to correct various typographical errors."/>
177f2a8e57eSGunnar Mills      <EntityType Name="DriveMetrics" BaseType="DriveMetrics.v1_1_1.DriveMetrics"/>
178f2a8e57eSGunnar Mills    </Schema>
179f2a8e57eSGunnar Mills
1802bde4061SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="DriveMetrics.v1_2_0">
1812bde4061SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
1822bde4061SEd Tanous      <Annotation Term="Redfish.Release" String="2023.3"/>
1832bde4061SEd Tanous
1842bde4061SEd Tanous      <EntityType Name="DriveMetrics" BaseType="DriveMetrics.v1_1_1.DriveMetrics">
1852bde4061SEd Tanous        <Property Name="ReadIOKiBytes" Type="Edm.Int64">
1862bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
1872bde4061SEd Tanous          <Annotation Term="OData.Description" String="The number of kibibytes read."/>
1882bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the total number of kibibytes read from the time of last reset or wrap."/>
1892bde4061SEd Tanous          <Annotation Term="Measures.Unit" String="KiBy"/>
1902bde4061SEd Tanous        </Property>
1912bde4061SEd Tanous        <Property Name="WriteIOKiBytes" Type="Edm.Int64">
1922bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
1932bde4061SEd Tanous          <Annotation Term="OData.Description" String="The number of kibibytes written."/>
1942bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the total number of kibibytes written from the time of last reset or wrap."/>
1952bde4061SEd Tanous          <Annotation Term="Measures.Unit" String="KiBy"/>
1962bde4061SEd Tanous        </Property>
1972bde4061SEd Tanous      </EntityType>
1982bde4061SEd Tanous    </Schema>
1992bde4061SEd Tanous
200f2a8e57eSGunnar Mills    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="DriveMetrics.v1_2_1">
201f2a8e57eSGunnar Mills      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
202f2a8e57eSGunnar Mills      <Annotation Term="OData.Description" String="This version was created to force the regeneration of OpenAPI schemas to properly express nullable properties with external references.  It was also created to correct various typographical errors."/>
203f2a8e57eSGunnar Mills      <EntityType Name="DriveMetrics" BaseType="DriveMetrics.v1_2_0.DriveMetrics"/>
204f2a8e57eSGunnar Mills    </Schema>
205f2a8e57eSGunnar Mills
2062bde4061SEd Tanous  </edmx:DataServices>
2072bde4061SEd Tanous</edmx:Edmx>
208