blob: eb9a5a4a3721ea079027697822e83be132a08743 [file] [log] [blame]
Gunnar Mills09b9d452020-02-11 13:27:39 -06001<?xml version="1.0" encoding="UTF-8"?>
2<!---->
3<!--################################################################################ -->
4<!--# Redfish Schema: PowerDistributionMetrics v1.0.0 -->
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 -->
Gunnar Millsa778c022020-05-12 12:20:36 -05008<!--# Copyright 2018-2020 DMTF. -->
Gunnar Mills09b9d452020-02-11 13:27:39 -06009<!--# 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://redfish.dmtf.org/schemas/v1/RedfishExtensions_v1.xml">
21 <edmx:Include Namespace="RedfishExtensions.v1_0_0" Alias="Redfish"/>
22 </edmx:Reference>
23 <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Resource_v1.xml">
24 <edmx:Include Namespace="Resource.v1_0_0"/>
25 </edmx:Reference>
26 <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Sensor_v1.xml">
27 <edmx:Include Namespace="Sensor"/>
28 </edmx:Reference>
29
30 <edmx:DataServices>
31
32 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="PowerDistributionMetrics">
33 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
34
35 <EntityType Name="PowerDistributionMetrics" BaseType="Resource.v1_0_0.Resource" Abstract="true">
36 <Annotation Term="OData.Description" String="This is the schema definition for the metrics of a power distribution component or unit, such as a floor power distribution unit (PDU) or switchgear."/>
37 <Annotation Term="OData.LongDescription" String="This resource shall be used to represent the metrics of a power distribution component or unit for a Redfish implementation."/>
38 <Annotation Term="OData.AdditionalProperties" Bool="false"/>
39 <Annotation Term="Capabilities.InsertRestrictions">
40 <Record>
41 <PropertyValue Property="Insertable" Bool="false"/>
42 </Record>
43 </Annotation>
44 <Annotation Term="Capabilities.UpdateRestrictions">
45 <Record>
46 <PropertyValue Property="Updatable" Bool="false"/>
47 </Record>
48 </Annotation>
49 <Annotation Term="Capabilities.DeleteRestrictions">
50 <Record>
51 <PropertyValue Property="Deletable" Bool="false"/>
52 </Record>
53 </Annotation>
54 <Annotation Term="Redfish.Uris">
55 <Collection>
56 <String>/redfish/v1/PowerEquipment/RackPDUs/{PowerDistributionId}/Metrics</String>
57 <String>/redfish/v1/PowerEquipment/FloorPDUs/{PowerDistributionId}/Metrics</String>
58 <String>/redfish/v1/PowerEquipment/TransferSwitches/{PowerDistributionId}/Metrics</String>
59 </Collection>
60 </Annotation>
61 </EntityType>
62
63 <Action Name="ResetMetrics" IsBound="true">
64 <Parameter Name="PowerDistributionMetrics" Type="PowerDistributionMetrics.v1_0_0.Actions"/>
65 <Annotation Term="OData.Description" String="This action resets the summary metrics related to this equipment."/>
66 <Annotation Term="OData.LongDescription" String="This action shall reset any time intervals or counted values for this equipment."/>
67 </Action>
68 </Schema>
69
70 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="PowerDistributionMetrics.v1_0_0">
71 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
72 <Annotation Term="Redfish.Release" String="2019.4"/>
73
74 <EntityType Name="PowerDistributionMetrics" BaseType="PowerDistributionMetrics.PowerDistributionMetrics">
75 <NavigationProperty Name="PowerWatts" Type="Sensor.Sensor">
76 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
77 <Annotation Term="Redfish.ExcerptCopy" String="Power"/>
78 <Annotation Term="OData.Description" String="The total power reading for this equipment."/>
79 <Annotation Term="OData.LongDescription" String="This property shall contain the total power, measured in Watts, for this unit, that represents the `Total` ElectricalContext sensor when multiple power sensors exist."/>
80 </NavigationProperty>
81
82 <NavigationProperty Name="EnergykWh" Type="Sensor.Sensor">
83 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
84 <Annotation Term="Redfish.ExcerptCopy" String="EnergykWh"/>
85 <Annotation Term="OData.Description" String="The energy consumption of this unit."/>
86 <Annotation Term="OData.LongDescription" String="This property shall contain the total energy, measured in kilowatt-hours (kWh), for this unit, that represents the `Total` ElectricalContext sensor when multiple energy sensors exist."/>
87 </NavigationProperty>
88
89 <Property Name="Actions" Type="PowerDistributionMetrics.v1_0_0.Actions" Nullable="false">
90 <Annotation Term="OData.Description" String="The available actions for this resource."/>
91 <Annotation Term="OData.LongDescription" String="This property shall contain the available actions for this resource."/>
92 </Property>
93 </EntityType>
94
95 <ComplexType Name="Actions">
96 <Annotation Term="OData.AdditionalProperties" Bool="false"/>
97 <Annotation Term="OData.Description" String="The available actions for this resource."/>
98 <Annotation Term="OData.LongDescription" String="This type shall contain the available actions for this resource."/>
99 <Property Name="Oem" Type="PowerDistributionMetrics.v1_0_0.OemActions" Nullable="false">
100 <Annotation Term="OData.Description" String="The available OEM-specific actions for this resource."/>
101 <Annotation Term="OData.LongDescription" String="This property shall contain the available OEM-specific actions for this resource."/>
102 </Property>
103 </ComplexType>
104
105 <ComplexType Name="OemActions">
106 <Annotation Term="OData.AdditionalProperties" Bool="true"/>
107 <Annotation Term="OData.Description" String="The available OEM-specific actions for this resource."/>
108 <Annotation Term="OData.LongDescription" String="This type shall contain the available OEM-specific actions for this resource."/>
109 </ComplexType>
110 </Schema>
111
112 </edmx:DataServices>
113</edmx:Edmx>