1<?xml version="1.0" encoding="UTF-8"?>
2<!---->
3<!--################################################################################       -->
4<!--# Redfish Schema:  SwitchMetrics v1.0.1                                                -->
5<!--#                                                                                      -->
6<!--# For a detailed change log, see the README file contained in the DSP8010 bundle,      -->
7<!--# available at http://www.dmtf.org/standards/redfish                                   -->
8<!--# Copyright 2014-2023 DMTF.                                                            -->
9<!--# For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright -->
10<!--################################################################################       -->
11<!---->
12<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">
13
14  <edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/csd01/complete/vocabularies/Org.OData.Core.V1.xml">
15    <edmx:Include Namespace="Org.OData.Core.V1" Alias="OData"/>
16  </edmx:Reference>
17  <edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/csd01/complete/vocabularies/Org.OData.Capabilities.V1.xml">
18    <edmx:Include Namespace="Org.OData.Capabilities.V1" Alias="Capabilities"/>
19  </edmx:Reference>
20  <edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/csd01/complete/vocabularies/Org.OData.Measures.V1.xml">
21    <edmx:Include Namespace="Org.OData.Measures.V1" Alias="Measures"/>
22  </edmx:Reference>
23  <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/RedfishExtensions_v1.xml">
24    <edmx:Include Namespace="RedfishExtensions.v1_0_0" Alias="Redfish"/>
25    <edmx:Include Namespace="Validation.v1_0_0" Alias="Validation"/>
26  </edmx:Reference>
27  <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Resource_v1.xml">
28    <edmx:Include Namespace="Resource"/>
29    <edmx:Include Namespace="Resource.v1_0_0"/>
30  </edmx:Reference>
31  <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/PCIeDevice_v1.xml">
32    <edmx:Include Namespace="PCIeDevice"/>
33  </edmx:Reference>
34
35  <edmx:DataServices>
36
37    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="SwitchMetrics">
38      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
39
40      <EntityType Name="SwitchMetrics" BaseType="Resource.v1_0_0.Resource" Abstract="true">
41        <Annotation Term="OData.Description" String="The SwitchMetrics schema contains usage and health statistics for a switch device."/>
42        <Annotation Term="OData.LongDescription" String="This resource shall represent the metrics for a switch device in a Redfish implementation."/>
43        <Annotation Term="OData.AdditionalProperties" Bool="false"/>
44        <Annotation Term="Capabilities.InsertRestrictions">
45          <Record>
46            <PropertyValue Property="Insertable" Bool="false"/>
47          </Record>
48        </Annotation>
49        <Annotation Term="Capabilities.UpdateRestrictions">
50          <Record>
51            <PropertyValue Property="Updatable" Bool="false"/>
52          </Record>
53        </Annotation>
54        <Annotation Term="Capabilities.DeleteRestrictions">
55          <Record>
56            <PropertyValue Property="Deletable" Bool="false"/>
57          </Record>
58        </Annotation>
59        <Annotation Term="Redfish.Uris">
60          <Collection>
61            <String>/redfish/v1/Fabrics/{FabricId}/Switches/{SwitchId}/SwitchMetrics</String>
62          </Collection>
63        </Annotation>
64      </EntityType>
65
66      <Action Name="ClearCurrentPeriod" IsBound="true">
67        <Parameter Name="SwitchMetrics" Type="SwitchMetrics.v1_0_0.Actions"/>
68        <Annotation Term="OData.Description" String="This action sets the CurrentPeriod property's values to 0."/>
69        <Annotation Term="OData.LongDescription" String="This action shall set the CurrentPeriod property's values to 0."/>
70      </Action>
71    </Schema>
72
73    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="SwitchMetrics.v1_0_0">
74      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
75      <Annotation Term="Redfish.Release" String="2021.3"/>
76
77      <EntityType Name="SwitchMetrics" BaseType="SwitchMetrics.SwitchMetrics">
78        <Property Name="PCIeErrors" Type="PCIeDevice.PCIeErrors" Nullable="false">
79          <Annotation Term="OData.Description" String="The PCIe errors associated with this switch."/>
80          <Annotation Term="OData.LongDescription" String="This property shall contain the PCIe errors associated with this switch."/>
81        </Property>
82        <Property Name="InternalMemoryMetrics" Type="SwitchMetrics.v1_0_0.InternalMemoryMetrics" Nullable="false">
83          <Annotation Term="OData.Description" String="The memory metrics for a switch."/>
84          <Annotation Term="OData.LongDescription" String="This property shall contain properties that describe the memory metrics for a switch."/>
85        </Property>
86        <Property Name="Actions" Type="SwitchMetrics.v1_0_0.Actions" Nullable="false">
87          <Annotation Term="OData.Description" String="The available actions for this resource."/>
88          <Annotation Term="OData.LongDescription" String="This property shall contain the available actions for this resource."/>
89        </Property>
90      </EntityType>
91
92      <ComplexType Name="InternalMemoryMetrics">
93        <Annotation Term="OData.AdditionalProperties" Bool="false"/>
94        <Annotation Term="OData.Description" String="The memory metrics for a switch."/>
95        <Annotation Term="OData.LongDescription" String="This property shall contain properties that describe the memory metrics for a switch."/>
96        <Property Name="CurrentPeriod" Type="SwitchMetrics.v1_0_0.CurrentPeriod" Nullable="false">
97          <Annotation Term="OData.Description" String="The memory metrics since the last reset for this switch."/>
98          <Annotation Term="OData.LongDescription" String="This property shall contain properties that describe the metrics for the current period of memory for this switch."/>
99        </Property>
100        <Property Name="LifeTime" Type="SwitchMetrics.v1_0_0.LifeTime" Nullable="false">
101          <Annotation Term="OData.Description" String="The memory metrics for the lifetime of this switch."/>
102          <Annotation Term="OData.LongDescription" String="This property shall contain properties that describe the metrics for the lifetime of memory for this switch."/>
103        </Property>
104      </ComplexType>
105
106      <ComplexType Name="Actions">
107        <Annotation Term="OData.AdditionalProperties" Bool="false"/>
108        <Annotation Term="OData.Description" String="The available actions for this resource."/>
109        <Annotation Term="OData.LongDescription" String="This type shall contain the available actions for this resource."/>
110        <Property Name="Oem" Type="SwitchMetrics.v1_0_0.OemActions" Nullable="false">
111          <Annotation Term="OData.Description" String="The available OEM-specific actions for this resource."/>
112          <Annotation Term="OData.LongDescription" String="This property shall contain the available OEM-specific actions for this resource."/>
113        </Property>
114      </ComplexType>
115
116      <ComplexType Name="OemActions">
117        <Annotation Term="OData.AdditionalProperties" Bool="true"/>
118        <Annotation Term="OData.Description" String="The available OEM-specific actions for this resource."/>
119        <Annotation Term="OData.LongDescription" String="This type shall contain the available OEM-specific actions for this resource."/>
120      </ComplexType>
121
122      <ComplexType Name="CurrentPeriod">
123        <Annotation Term="OData.AdditionalProperties" Bool="false"/>
124        <Annotation Term="OData.Description" String="The memory metrics since the last switch reset or ClearCurrentPeriod action for a switch."/>
125        <Annotation Term="OData.LongDescription" String="This type shall describe the memory metrics since the last reset or ClearCurrentPeriod action for a switch."/>
126        <Property Name="CorrectableECCErrorCount" Type="Edm.Int64">
127          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
128          <Annotation Term="OData.Description" String="The number of correctable errors of memory since reset."/>
129          <Annotation Term="OData.LongDescription" String="This property shall contain the number of correctable errors of memory since reset."/>
130        </Property>
131        <Property Name="UncorrectableECCErrorCount" Type="Edm.Int64">
132          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
133          <Annotation Term="OData.Description" String="The number of uncorrectable errors of memory since reset."/>
134          <Annotation Term="OData.LongDescription" String="This property shall contain the number of uncorrectable errors of memory since reset."/>
135        </Property>
136      </ComplexType>
137
138      <ComplexType Name="LifeTime">
139        <Annotation Term="OData.AdditionalProperties" Bool="false"/>
140        <Annotation Term="OData.Description" String="The memory metrics for the lifetime for a switch."/>
141        <Annotation Term="OData.LongDescription" String="This type shall describe the memory metrics since manufacturing for a switch."/>
142        <Property Name="CorrectableECCErrorCount" Type="Edm.Int64">
143          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
144          <Annotation Term="OData.Description" String="The number of correctable errors for the lifetime of the memory."/>
145          <Annotation Term="OData.LongDescription" String="This property shall contain the number of correctable errors for the lifetime of memory."/>
146        </Property>
147        <Property Name="UncorrectableECCErrorCount" Type="Edm.Int64">
148          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
149          <Annotation Term="OData.Description" String="The number of uncorrectable errors for the lifetime of the memory."/>
150          <Annotation Term="OData.LongDescription" String="This property shall contain the number of uncorrectable errors for the lifetime of memory."/>
151        </Property>
152      </ComplexType>
153    </Schema>
154
155    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="SwitchMetrics.v1_0_1">
156      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
157      <Annotation Term="OData.Description" String="This version was created to correct various typographical errors."/>
158      <EntityType Name="SwitchMetrics" BaseType="SwitchMetrics.v1_0_0.SwitchMetrics"/>
159    </Schema>
160
161  </edmx:DataServices>
162</edmx:Edmx>
163