xref: /openbmc/bmcweb/features/redfish/schema/dmtf/csdl/NetworkAdapterMetrics_v1.xml (revision d125652e8a30dfeaad88bbfa5b1e04a80610469c)
12bde4061SEd Tanous<?xml version="1.0" encoding="UTF-8"?>
22bde4061SEd Tanous<!---->
32bde4061SEd Tanous<!--################################################################################       -->
4f2a8e57eSGunnar Mills<!--# Redfish Schema:  NetworkAdapterMetrics v1.1.0                                        -->
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                                   -->
8*d125652eSGunnar Mills<!--# Copyright 2014-2025 DMTF.                                                            -->
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/RedfishExtensions_v1.xml">
242bde4061SEd Tanous    <edmx:Include Namespace="RedfishExtensions.v1_0_0" Alias="Redfish"/>
252bde4061SEd Tanous    <edmx:Include Namespace="Validation.v1_0_0" Alias="Validation"/>
262bde4061SEd Tanous  </edmx:Reference>
272bde4061SEd Tanous  <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Resource_v1.xml">
282bde4061SEd Tanous    <edmx:Include Namespace="Resource.v1_0_0"/>
292bde4061SEd Tanous  </edmx:Reference>
302bde4061SEd Tanous
312bde4061SEd Tanous  <edmx:DataServices>
322bde4061SEd Tanous
332bde4061SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="NetworkAdapterMetrics">
342bde4061SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
35f2a8e57eSGunnar Mills      <Annotation Term="Redfish.Language" String="en"/>
362bde4061SEd Tanous
372bde4061SEd Tanous      <EntityType Name="NetworkAdapterMetrics" BaseType="Resource.v1_0_0.Resource" Abstract="true">
382bde4061SEd Tanous        <Annotation Term="OData.Description" String="The NetworkAdapterMetrics schema contains usage and health statistics for a network adapter."/>
392bde4061SEd Tanous        <Annotation Term="OData.LongDescription" String="This resource shall represent the network metrics for a single network adapter in a Redfish implementation."/>
402bde4061SEd Tanous        <Annotation Term="OData.AdditionalProperties" Bool="false"/>
412bde4061SEd Tanous        <Annotation Term="Capabilities.InsertRestrictions">
422bde4061SEd Tanous          <Record>
432bde4061SEd Tanous            <PropertyValue Property="Insertable" Bool="false"/>
442bde4061SEd Tanous          </Record>
452bde4061SEd Tanous        </Annotation>
462bde4061SEd Tanous        <Annotation Term="Capabilities.UpdateRestrictions">
472bde4061SEd Tanous          <Record>
482bde4061SEd Tanous            <PropertyValue Property="Updatable" Bool="false"/>
492bde4061SEd Tanous          </Record>
502bde4061SEd Tanous        </Annotation>
512bde4061SEd Tanous        <Annotation Term="Capabilities.DeleteRestrictions">
522bde4061SEd Tanous          <Record>
532bde4061SEd Tanous            <PropertyValue Property="Deletable" Bool="false"/>
542bde4061SEd Tanous          </Record>
552bde4061SEd Tanous        </Annotation>
562bde4061SEd Tanous        <Annotation Term="Redfish.Uris">
572bde4061SEd Tanous          <Collection>
582bde4061SEd Tanous            <String>/redfish/v1/Chassis/{ChassisId}/NetworkAdapters/{NetworkAdapterId}/Metrics</String>
592bde4061SEd Tanous          </Collection>
602bde4061SEd Tanous        </Annotation>
612bde4061SEd Tanous      </EntityType>
62f2a8e57eSGunnar Mills
63f2a8e57eSGunnar Mills      <Action Name="ResetMetrics" IsBound="true">
64f2a8e57eSGunnar Mills        <Parameter Name="NetworkAdapterMetrics" Type="NetworkAdapterMetrics.v1_0_0.Actions"/>
65f2a8e57eSGunnar Mills        <Annotation Term="OData.Description" String="This action resets the summary metrics related to this device."/>
66f2a8e57eSGunnar Mills        <Annotation Term="OData.LongDescription" String="This action shall reset any time intervals or counted values for this device."/>
67f2a8e57eSGunnar Mills        <Annotation Term="Redfish.Revisions">
68f2a8e57eSGunnar Mills          <Collection>
69f2a8e57eSGunnar Mills            <Record>
70f2a8e57eSGunnar Mills              <PropertyValue Property="Kind" EnumMember="Redfish.RevisionKind/Added"/>
71f2a8e57eSGunnar Mills              <PropertyValue Property="Version" String="v1_1_0"/>
72f2a8e57eSGunnar Mills            </Record>
73f2a8e57eSGunnar Mills          </Collection>
74f2a8e57eSGunnar Mills        </Annotation>
75f2a8e57eSGunnar Mills      </Action>
762bde4061SEd Tanous    </Schema>
772bde4061SEd Tanous
782bde4061SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="NetworkAdapterMetrics.v1_0_0">
792bde4061SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
802bde4061SEd Tanous      <Annotation Term="Redfish.Release" String="2021.1"/>
812bde4061SEd Tanous
822bde4061SEd Tanous      <EntityType Name="NetworkAdapterMetrics" BaseType="NetworkAdapterMetrics.NetworkAdapterMetrics">
832bde4061SEd Tanous        <Property Name="HostBusRXPercent" Type="Edm.Decimal">
842bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
852bde4061SEd Tanous          <Annotation Term="OData.Description" String="The host bus, such as PCIe, RX utilization as a percentage."/>
862bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the host bus, such as PCIe, RX utilization as a percentage, typically `0` to `100`, which is calculated by dividing the total bytes received by the theoretical max."/>
872bde4061SEd Tanous          <Annotation Term="Validation.Minimum" Int="0"/>
882bde4061SEd Tanous          <Annotation Term="Measures.Unit" String="%"/>
892bde4061SEd Tanous        </Property>
902bde4061SEd Tanous        <Property Name="HostBusTXPercent" Type="Edm.Decimal">
912bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
922bde4061SEd Tanous          <Annotation Term="OData.Description" String="The host bus, such as PCIe, TX utilization as a percentage."/>
932bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the host bus, such as PCIe, TX utilization as a percentage, typically `0` to `100`, which is calculated by dividing the total bytes transmitted by the theoretical max."/>
942bde4061SEd Tanous          <Annotation Term="Validation.Minimum" Int="0"/>
952bde4061SEd Tanous          <Annotation Term="Measures.Unit" String="%"/>
962bde4061SEd Tanous        </Property>
972bde4061SEd Tanous        <Property Name="CPUCorePercent" Type="Edm.Decimal">
982bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
992bde4061SEd Tanous          <Annotation Term="OData.Description" String="The device CPU core utilization as a percentage."/>
1002bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the device CPU core utilization as a percentage, typically `0` to `100`."/>
1012bde4061SEd Tanous          <Annotation Term="Validation.Minimum" Int="0"/>
1022bde4061SEd Tanous          <Annotation Term="Measures.Unit" String="%"/>
1032bde4061SEd Tanous        </Property>
1042bde4061SEd Tanous        <Property Name="NCSIRXFrames" Type="Edm.Int64">
1052bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
1062bde4061SEd Tanous          <Annotation Term="OData.Description" String="The total number of NC-SI frames received since reset."/>
1072bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the total number of NC-SI frames received since reset, including both passthrough and non-passthrough traffic."/>
1082bde4061SEd Tanous        </Property>
1092bde4061SEd Tanous        <Property Name="NCSITXFrames" Type="Edm.Int64">
1102bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
1112bde4061SEd Tanous          <Annotation Term="OData.Description" String="The total number of NC-SI frames sent since reset."/>
1122bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the total number of NC-SI frames sent since reset, including both passthrough and non-passthrough traffic."/>
1132bde4061SEd Tanous        </Property>
1142bde4061SEd Tanous        <Property Name="NCSIRXBytes" Type="Edm.Int64">
1152bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
1162bde4061SEd Tanous          <Annotation Term="OData.Description" String="The total number of NC-SI bytes received since reset."/>
1172bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the total number of NC-SI bytes received since reset, including both passthrough and non-passthrough traffic."/>
1182bde4061SEd Tanous          <Annotation Term="Measures.Unit" String="By"/>
1192bde4061SEd Tanous        </Property>
1202bde4061SEd Tanous        <Property Name="NCSITXBytes" Type="Edm.Int64">
1212bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
1222bde4061SEd Tanous          <Annotation Term="OData.Description" String="The total number of NC-SI bytes sent since reset."/>
1232bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the total number of NC-SI bytes sent since reset, including both passthrough and non-passthrough traffic."/>
1242bde4061SEd Tanous          <Annotation Term="Measures.Unit" String="By"/>
1252bde4061SEd Tanous        </Property>
1262bde4061SEd Tanous        <Property Name="RXBytes" Type="Edm.Int64">
1272bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
1282bde4061SEd Tanous          <Annotation Term="OData.Description" String="The total number of bytes received since reset."/>
1292bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the total number of bytes received since reset, including host and remote management passthrough traffic, and inclusive of all protocol overhead."/>
1302bde4061SEd Tanous          <Annotation Term="Measures.Unit" String="By"/>
1312bde4061SEd Tanous        </Property>
1322bde4061SEd Tanous        <Property Name="RXMulticastFrames" Type="Edm.Int64">
1332bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
1342bde4061SEd Tanous          <Annotation Term="OData.Description" String="The total number of good multicast frames received since reset."/>
1352bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the total number of good multicast frames received since reset."/>
1362bde4061SEd Tanous        </Property>
1372bde4061SEd Tanous        <Property Name="RXUnicastFrames" Type="Edm.Int64">
1382bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
1392bde4061SEd Tanous          <Annotation Term="OData.Description" String="The total number of good unicast frames received since reset."/>
1402bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the total number of good unicast frames received since reset."/>
1412bde4061SEd Tanous        </Property>
1422bde4061SEd Tanous        <Property Name="TXBytes" Type="Edm.Int64">
1432bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
1442bde4061SEd Tanous          <Annotation Term="OData.Description" String="The total number of bytes transmitted since reset."/>
1452bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the total number of bytes transmitted since reset, including host and remote management passthrough traffic, and inclusive of all protocol overhead."/>
1462bde4061SEd Tanous          <Annotation Term="Measures.Unit" String="By"/>
1472bde4061SEd Tanous        </Property>
1482bde4061SEd Tanous        <Property Name="TXMulticastFrames" Type="Edm.Int64">
1492bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
1502bde4061SEd Tanous          <Annotation Term="OData.Description" String="The total number of good multicast frames transmitted since reset."/>
1512bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the total number of good multicast frames transmitted since reset."/>
1522bde4061SEd Tanous        </Property>
1532bde4061SEd Tanous        <Property Name="TXUnicastFrames" Type="Edm.Int64">
1542bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
1552bde4061SEd Tanous          <Annotation Term="OData.Description" String="The total number of good unicast frames transmitted since reset."/>
1562bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the total number of good unicast frames transmitted since reset."/>
1572bde4061SEd Tanous        </Property>
1582bde4061SEd Tanous        <Property Name="Actions" Type="NetworkAdapterMetrics.v1_0_0.Actions" Nullable="false">
1592bde4061SEd Tanous          <Annotation Term="OData.Description" String="The available actions for this resource."/>
1602bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the available actions for this resource."/>
1612bde4061SEd Tanous        </Property>
1622bde4061SEd Tanous      </EntityType>
1632bde4061SEd Tanous
1642bde4061SEd Tanous      <ComplexType Name="Actions">
1652bde4061SEd Tanous        <Annotation Term="OData.AdditionalProperties" Bool="false"/>
1662bde4061SEd Tanous        <Annotation Term="OData.Description" String="The available actions for this resource."/>
1672bde4061SEd Tanous        <Annotation Term="OData.LongDescription" String="This type shall contain the available actions for this resource."/>
1682bde4061SEd Tanous        <Property Name="Oem" Type="NetworkAdapterMetrics.v1_0_0.OemActions" Nullable="false">
1692bde4061SEd Tanous          <Annotation Term="OData.Description" String="The available OEM-specific actions for this resource."/>
1702bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the available OEM-specific actions for this resource."/>
1712bde4061SEd Tanous        </Property>
1722bde4061SEd Tanous      </ComplexType>
1732bde4061SEd Tanous
1742bde4061SEd Tanous      <ComplexType Name="OemActions">
1752bde4061SEd Tanous        <Annotation Term="OData.AdditionalProperties" Bool="true"/>
1762bde4061SEd Tanous        <Annotation Term="OData.Description" String="The available OEM-specific actions for this resource."/>
1772bde4061SEd Tanous        <Annotation Term="OData.LongDescription" String="This type shall contain the available OEM-specific actions for this resource."/>
1782bde4061SEd Tanous      </ComplexType>
1792bde4061SEd Tanous    </Schema>
1802bde4061SEd Tanous
1812bde4061SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="NetworkAdapterMetrics.v1_0_1">
1822bde4061SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
1832bde4061SEd Tanous      <Annotation Term="OData.Description" String="This version was created to clarify the range of possible values for properties with percent units."/>
1842bde4061SEd Tanous      <EntityType Name="NetworkAdapterMetrics" BaseType="NetworkAdapterMetrics.v1_0_0.NetworkAdapterMetrics"/>
1852bde4061SEd Tanous    </Schema>
1862bde4061SEd Tanous
187f2a8e57eSGunnar Mills    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="NetworkAdapterMetrics.v1_0_2">
188f2a8e57eSGunnar Mills      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
189f2a8e57eSGunnar 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."/>
190f2a8e57eSGunnar Mills      <EntityType Name="NetworkAdapterMetrics" BaseType="NetworkAdapterMetrics.v1_0_1.NetworkAdapterMetrics"/>
191f2a8e57eSGunnar Mills    </Schema>
192f2a8e57eSGunnar Mills
193f2a8e57eSGunnar Mills    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="NetworkAdapterMetrics.v1_1_0">
194f2a8e57eSGunnar Mills      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
195f2a8e57eSGunnar Mills      <Annotation Term="Redfish.Release" String="2024.1"/>
196f2a8e57eSGunnar Mills      <Annotation Term="OData.Description" String="This version was created to add the `ResetMetrics` action."/>
197f2a8e57eSGunnar Mills
198f2a8e57eSGunnar Mills      <EntityType Name="NetworkAdapterMetrics" BaseType="NetworkAdapterMetrics.v1_0_2.NetworkAdapterMetrics"/>
199f2a8e57eSGunnar Mills    </Schema>
200f2a8e57eSGunnar Mills
2012bde4061SEd Tanous  </edmx:DataServices>
2022bde4061SEd Tanous</edmx:Edmx>
203