1<?xml version="1.0" encoding="UTF-8"?>
2<!---->
3<!--################################################################################       -->
4<!--# Redfish Schema:  SwitchMetrics v1.0.2                                               -->
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-2024 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      <Annotation Term="Redfish.Language" String="en"/>
40
41      <EntityType Name="SwitchMetrics" BaseType="Resource.v1_0_0.Resource" Abstract="true">
42        <Annotation Term="OData.Description" String="The `SwitchMetrics` schema contains usage and health statistics for a switch device."/>
43        <Annotation Term="OData.LongDescription" String="This resource shall represent the metrics for a switch device in a Redfish implementation."/>
44        <Annotation Term="OData.AdditionalProperties" Bool="false"/>
45        <Annotation Term="Capabilities.InsertRestrictions">
46          <Record>
47            <PropertyValue Property="Insertable" Bool="false"/>
48          </Record>
49        </Annotation>
50        <Annotation Term="Capabilities.UpdateRestrictions">
51          <Record>
52            <PropertyValue Property="Updatable" Bool="false"/>
53          </Record>
54        </Annotation>
55        <Annotation Term="Capabilities.DeleteRestrictions">
56          <Record>
57            <PropertyValue Property="Deletable" Bool="false"/>
58          </Record>
59        </Annotation>
60        <Annotation Term="Redfish.Uris">
61          <Collection>
62            <String>/redfish/v1/Fabrics/{FabricId}/Switches/{SwitchId}/SwitchMetrics</String>
63          </Collection>
64        </Annotation>
65      </EntityType>
66
67      <Action Name="ClearCurrentPeriod" IsBound="true">
68        <Parameter Name="SwitchMetrics" Type="SwitchMetrics.v1_0_0.Actions"/>
69        <Annotation Term="OData.Description" String="This action sets the `CurrentPeriod` property's values to 0."/>
70        <Annotation Term="OData.LongDescription" String="This action shall set the `CurrentPeriod` property's values to 0."/>
71      </Action>
72    </Schema>
73
74    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="SwitchMetrics.v1_0_0">
75      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
76      <Annotation Term="Redfish.Release" String="2021.3"/>
77
78      <EntityType Name="SwitchMetrics" BaseType="SwitchMetrics.SwitchMetrics">
79        <Property Name="PCIeErrors" Type="PCIeDevice.PCIeErrors" Nullable="false">
80          <Annotation Term="OData.Description" String="The PCIe errors associated with this switch."/>
81          <Annotation Term="OData.LongDescription" String="This property shall contain the PCIe errors associated with this switch."/>
82        </Property>
83        <Property Name="InternalMemoryMetrics" Type="SwitchMetrics.v1_0_0.InternalMemoryMetrics" Nullable="false">
84          <Annotation Term="OData.Description" String="The memory metrics for a switch."/>
85          <Annotation Term="OData.LongDescription" String="This property shall contain properties that describe the memory metrics for a switch."/>
86        </Property>
87        <Property Name="Actions" Type="SwitchMetrics.v1_0_0.Actions" Nullable="false">
88          <Annotation Term="OData.Description" String="The available actions for this resource."/>
89          <Annotation Term="OData.LongDescription" String="This property shall contain the available actions for this resource."/>
90        </Property>
91      </EntityType>
92
93      <ComplexType Name="InternalMemoryMetrics">
94        <Annotation Term="OData.AdditionalProperties" Bool="false"/>
95        <Annotation Term="OData.Description" String="The memory metrics for a switch."/>
96        <Annotation Term="OData.LongDescription" String="This property shall contain properties that describe the memory metrics for a switch."/>
97        <Property Name="CurrentPeriod" Type="SwitchMetrics.v1_0_0.CurrentPeriod" Nullable="false">
98          <Annotation Term="OData.Description" String="The memory metrics since the last reset for this switch."/>
99          <Annotation Term="OData.LongDescription" String="This property shall contain properties that describe the metrics for the current period of memory for this switch."/>
100        </Property>
101        <Property Name="LifeTime" Type="SwitchMetrics.v1_0_0.LifeTime" Nullable="false">
102          <Annotation Term="OData.Description" String="The memory metrics for the lifetime of this switch."/>
103          <Annotation Term="OData.LongDescription" String="This property shall contain properties that describe the metrics for the lifetime of memory for this switch."/>
104        </Property>
105      </ComplexType>
106
107      <ComplexType Name="Actions">
108        <Annotation Term="OData.AdditionalProperties" Bool="false"/>
109        <Annotation Term="OData.Description" String="The available actions for this resource."/>
110        <Annotation Term="OData.LongDescription" String="This type shall contain the available actions for this resource."/>
111        <Property Name="Oem" Type="SwitchMetrics.v1_0_0.OemActions" Nullable="false">
112          <Annotation Term="OData.Description" String="The available OEM-specific actions for this resource."/>
113          <Annotation Term="OData.LongDescription" String="This property shall contain the available OEM-specific actions for this resource."/>
114        </Property>
115      </ComplexType>
116
117      <ComplexType Name="OemActions">
118        <Annotation Term="OData.AdditionalProperties" Bool="true"/>
119        <Annotation Term="OData.Description" String="The available OEM-specific actions for this resource."/>
120        <Annotation Term="OData.LongDescription" String="This type shall contain the available OEM-specific actions for this resource."/>
121      </ComplexType>
122
123      <ComplexType Name="CurrentPeriod">
124        <Annotation Term="OData.AdditionalProperties" Bool="false"/>
125        <Annotation Term="OData.Description" String="The memory metrics since the last switch reset or `ClearCurrentPeriod` action for a switch."/>
126        <Annotation Term="OData.LongDescription" String="This type shall describe the memory metrics since the last reset or `ClearCurrentPeriod` action for a switch."/>
127        <Property Name="CorrectableECCErrorCount" Type="Edm.Int64">
128          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
129          <Annotation Term="OData.Description" String="The number of correctable errors of memory since reset."/>
130          <Annotation Term="OData.LongDescription" String="This property shall contain the number of correctable errors of memory since reset."/>
131        </Property>
132        <Property Name="UncorrectableECCErrorCount" Type="Edm.Int64">
133          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
134          <Annotation Term="OData.Description" String="The number of uncorrectable errors of memory since reset."/>
135          <Annotation Term="OData.LongDescription" String="This property shall contain the number of uncorrectable errors of memory since reset."/>
136        </Property>
137      </ComplexType>
138
139      <ComplexType Name="LifeTime">
140        <Annotation Term="OData.AdditionalProperties" Bool="false"/>
141        <Annotation Term="OData.Description" String="The memory metrics for the lifetime for a switch."/>
142        <Annotation Term="OData.LongDescription" String="This type shall describe the memory metrics since manufacturing for a switch."/>
143        <Property Name="CorrectableECCErrorCount" Type="Edm.Int64">
144          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
145          <Annotation Term="OData.Description" String="The number of correctable errors for the lifetime of the memory."/>
146          <Annotation Term="OData.LongDescription" String="This property shall contain the number of correctable errors for the lifetime of memory."/>
147        </Property>
148        <Property Name="UncorrectableECCErrorCount" Type="Edm.Int64">
149          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
150          <Annotation Term="OData.Description" String="The number of uncorrectable errors for the lifetime of the memory."/>
151          <Annotation Term="OData.LongDescription" String="This property shall contain the number of uncorrectable errors for the lifetime of memory."/>
152        </Property>
153      </ComplexType>
154    </Schema>
155
156    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="SwitchMetrics.v1_0_1">
157      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
158      <Annotation Term="OData.Description" String="This version was created to correct various typographical errors."/>
159      <EntityType Name="SwitchMetrics" BaseType="SwitchMetrics.v1_0_0.SwitchMetrics"/>
160    </Schema>
161
162    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="SwitchMetrics.v1_0_2">
163      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
164      <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."/>
165      <EntityType Name="SwitchMetrics" BaseType="SwitchMetrics.v1_0_1.SwitchMetrics"/>
166    </Schema>
167
168  </edmx:DataServices>
169</edmx:Edmx>
170