blob: cefed7e221ca8ee2a5366da960b2ebce52692648 [file] [log] [blame]
Ed Tanous530520e2019-01-02 13:41:37 -08001<?xml version="1.0" encoding="UTF-8"?>
2<!---->
3<!--################################################################################ -->
Marri Devender Raod45d2d02019-01-21 10:11:34 -06004<!--# Redfish Schema: MetricReportDefinition v1.1.0-->
Ed Tanous530520e2019-01-02 13:41:37 -08005<!--# -->
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-2018 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://redfish.dmtf.org/schemas/v1/Resource_v1.xml">
21 <edmx:Include Namespace="Resource"/>
22 <edmx:Include Namespace="Resource.v1_0_0"/>
23 </edmx:Reference>
24 <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/RedfishExtensions_v1.xml">
25 <edmx:Include Namespace="RedfishExtensions.v1_0_0" Alias="Redfish"/>
26 <edmx:Include Namespace="Validation.v1_0_0" Alias="Validation"/>
27 </edmx:Reference>
28 <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/MetricReport_v1.xml">
29 <edmx:Include Namespace="MetricReport"/>
30 </edmx:Reference>
31 <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Schedule_v1.xml">
32 <edmx:Include Namespace="Schedule"/>
33 </edmx:Reference>
34
35 <edmx:DataServices>
36
37 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="MetricReportDefinition">
38 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
39
40 <EntityType Name="MetricReportDefinition" BaseType="Resource.v1_0_0.Resource" Abstract="true">
41 <Annotation Term="OData.Description" String="A set of metrics that are collected into a metric report."/>
42 <Annotation Term="OData.LongDescription" String="This resource specifies a set of metrics that shall be collected into a metric report."/>
43 <Annotation Term="Capabilities.InsertRestrictions">
44 <Record>
45 <PropertyValue Property="Insertable" Bool="false"/>
46 </Record>
47 </Annotation>
48 <Annotation Term="Capabilities.UpdateRestrictions">
49 <Record>
50 <PropertyValue Property="Updatable" Bool="true"/>
51 </Record>
52 </Annotation>
53 <Annotation Term="Capabilities.DeleteRestrictions">
54 <Record>
55 <PropertyValue Property="Deletable" Bool="true"/>
56 </Record>
57 </Annotation>
58 <Annotation Term="Redfish.Uris">
59 <Collection>
60 <String>/redfish/v1/TelemetryService/MetricReportDefinitions/{MetricReportDefinitionId}</String>
61 </Collection>
62 </Annotation>
63 </EntityType>
64 </Schema>
65
66 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="MetricReportDefinition.v1_0_0">
67 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
Marri Devender Raod45d2d02019-01-21 10:11:34 -060068 <Annotation Term="Redfish.Release" String="2018.2"/>
Ed Tanous530520e2019-01-02 13:41:37 -080069
70 <EntityType Name="MetricReportDefinition" BaseType="MetricReportDefinition.MetricReportDefinition">
71 <Property Name="MetricReportDefinitionType" Type="MetricReportDefinition.v1_0_0.MetricReportDefinitionType">
72 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
73 <Annotation Term="OData.Description" String="Specifies when the metric report is generated."/>
74 <Annotation Term="OData.LongDescription" String="The value shall specify when the metric report is generated. If the value of the property is 'Periodic', then the Schedule property shall be present."/>
75 </Property>
76 <Property Name="Schedule" Type="Schedule.Schedule" Nullable="false">
77 <Annotation Term="OData.Description" String="Specifies the schedule for generating the metric report."/>
78 <Annotation Term="OData.LongDescription" String="If the schedule present, the metric report is generated at an interval specified by Schedule.RecurrenceInterval property. If Schedule.MaxOccurrences is specified, the metric report will no longer be generated after the specified number of occurances."/>
79 </Property>
80 <Property Name="ReportActions" Type="Collection(MetricReportDefinition.v1_0_0.ReportActionsEnum)" Nullable="false">
81 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
82 <Annotation Term="OData.Description" String="Specifies the actions to perform when a metric report is generated."/>
83 <Annotation Term="OData.LongDescription" String="The value of this property shall specify the actions to perform when the metric report is generated. The options are transmit an event or create a metric report resource."/>
84 </Property>
85 <Property Name="ReportUpdates" Type="MetricReportDefinition.v1_0_0.ReportUpdatesEnum" Nullable="false">
86 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
87 <Annotation Term="OData.Description" String="When logging metric reports, specifies how subsequent metric reports are handled in relationship to an existing metric report created from the metric report definition. Namely, whether to overwrite, append, or create new report resource."/>
88 <Annotation Term="OData.LongDescription" String="The value of this property shall specify how subsequent metric reports are handled in relationship to an existing metric report created from the metric report definition."/>
89 </Property>
90 <Property Name="AppendLimit" Type="Edm.Int64" Nullable="false">
91 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
92 <Annotation Term="OData.Description" String="Indicates the maximum number of entries that can be appended to a metric report. When the metric report reaches its limit, its behavior is dictated by the ReportUpdates property."/>
93 <Annotation Term="OData.LongDescription" String="This property shall be a number that indicates the maximum number of entries that can be appended to a metric report. When the metric report reaches its limit, its behavior shall be dictated by the ReportUpdates property. This property shall be required if ReportUpdates is either AppendWrapsWhenFull or AppendStopsWhenFull."/>
94 <Annotation Term="Validation.Minimum" Int="0"/>
95 </Property>
96 <Property Name="Status" Type="Resource.Status" Nullable="false">
97 <Annotation Term="OData.Description" String="This property describes the status and health of the resource and its children."/>
98 <Annotation Term="OData.LongDescription" String="This property shall contain any status or health properties of the resource."/>
99 </Property>
100 <Property Name="Wildcards" Type="Collection(MetricReportDefinition.v1_0_0.Wildcard)">
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600101 <Annotation Term="OData.Description" String="A list of wildcards and their substitution values to be applied to the entries in the MetricProperties array property."/>
102 <Annotation Term="OData.LongDescription" String="The property shall contain a list of wildcards and their replacement strings, which are applied to the MetricProperties array property. Each wildcard shall have a corresponding entry in this array property."/>
Ed Tanous530520e2019-01-02 13:41:37 -0800103 </Property>
104 <Property Name="MetricProperties" Type="Collection(Edm.String)">
105 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600106 <Annotation Term="OData.Description" String="A list of URIs with wildcards and property identifiers to include in the metric report. If a URI has wildcards, the wildcards are substituted as specified in the Wildcards array property."/>
107 <Annotation Term="OData.LongDescription" String="This array property shall contain a list of URIs with wildcards and property identifiers to include in the metric report. Each wildcard in the URI shall be delimited by a set of curly braces. Each wildcard shall be substituted as specified by the corresponding entry in the Wildcard array property. Once an URI with wildcards has had its wildcards fully substituted, it shall reference a resource property to include in the metric report. The property identifiers portion of the URI shall follow JSON fragment notation rules defined by RFC6901."/>
Ed Tanous530520e2019-01-02 13:41:37 -0800108 <Annotation Term="OData.IsURL"/>
109 </Property>
110 <Property Name="Metrics" Type="Collection(MetricReportDefinition.v1_0_0.Metric)">
111 <Annotation Term="OData.Description" String="Specifies a list of metrics to include in the metric report. The metrics may include metric properties or calculations applied to a metric property."/>
112 <Annotation Term="OData.LongDescription" String="The property shall specify a list of metrics to include in the metric report. The metrics may include metric properties or calculations applied to a metric property."/>
113 </Property>
114 <NavigationProperty Name="MetricReport" Type="MetricReport.MetricReport" Nullable="false">
115 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
116 <Annotation Term="OData.Description" String="Specifies the location where the resultant metric report is placed."/>
117 <Annotation Term="OData.LongDescription" String="This property shall be a reference to the resource where the resultant metric report is placed."/>
118 <Annotation Term="OData.AutoExpandReferences"/>
119 </NavigationProperty>
120
121 <Property Name="Actions" Type="MetricReportDefinition.v1_0_0.Actions" Nullable="false">
122 <Annotation Term="OData.Description" String="The available actions for this resource."/>
123 <Annotation Term="OData.LongDescription" String="The Actions property shall contain the available actions for this resource."/>
124 </Property>
125 </EntityType>
126
127 <ComplexType Name="Wildcard">
128 <Annotation Term="OData.AdditionalProperties" Bool="false"/>
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600129 <Annotation Term="OData.Description" String="Contains a wildcard and its substitution values."/>
130 <Annotation Term="OData.LongDescription" String="This property shall contain a wildcard and its substitution values."/>
Ed Tanous530520e2019-01-02 13:41:37 -0800131 <Property Name="Name" Type="Edm.String">
132 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600133 <Annotation Term="OData.Description" String="The string used as a wildcard."/>
134 <Annotation Term="OData.LongDescription" String="This property shall contain the string used as a wildcard."/>
Ed Tanous530520e2019-01-02 13:41:37 -0800135 </Property>
136 <Property Name="Keys" Type="Collection(Edm.String)">
137 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600138 <Annotation Term="OData.Description" String="An array of values to substitute for the wildcard."/>
139 <Annotation Term="OData.LongDescription" String="This property shall contain the list of values to substitute for the wildcard."/>
140 <Annotation Term="Redfish.Revisions">
141 <Collection>
142 <Record>
143 <PropertyValue Property="Kind" EnumMember="Redfish.RevisionKind/Deprecated"/>
144 <PropertyValue Property="Version" String="v1_1_0"/>
145 <PropertyValue Property="Description" String="This property has been Deprecated in favor of using the property 'Values'."/>
146 </Record>
147 </Collection>
148 </Annotation>
Ed Tanous530520e2019-01-02 13:41:37 -0800149 </Property>
150 </ComplexType>
151
152 <ComplexType Name="Metric">
153 <Annotation Term="OData.AdditionalProperties" Bool="false"/>
154 <Annotation Term="OData.Description" String="Specifies a metric to include in the metric report. The metrics are derived by applying a calculation on each of the listed metric properties."/>
155 <Annotation Term="OData.LongDescription" String="The properties shall specify a metric to include in the metric report. The metrics shall be derived by applying the algorithm specified in CollectionnFunction property to each of the metric properties listed in the MetricProperties property."/>
156
157 <Property Name="MetricId" Type="Edm.String">
158 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
159 <Annotation Term="OData.Description" String="Specifies the label for the metric definition which is derived by applying the CollectionFunction to the metric property."/>
160 <Annotation Term="OData.LongDescription" String="This property shall specify a label for use in the metric report for the metric which is derived metrics by applying the CollectionFunction to the metric property. This property shall match the Id property of the corresponding metric definition resource."/>
161 </Property>
162 <Property Name="MetricProperties" Type="Collection(Edm.String)">
163 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
164 <Annotation Term="OData.Description" String="A collection of URI for the properties on which this metric is collected."/>
165 <Annotation Term="OData.LongDescription" String="Each value may contain one or more Wildcard names enclosed in curly braces. Wildcard value entries shall be substituted for each Wildcard name found. If two or more wild names are found, the same Wildcard index is used for each in one substitution pass. After substituting the WildCard values entries, each value shall be a URI for a property in a resource that matches a property declaration in the corresponding MetricDefinition."/>
166 <Annotation Term="OData.IsURL"/>
167 </Property>
168 <Property Name="CollectionFunction" Type="MetricReportDefinition.v1_0_0.CalculationAlgorithmEnum">
169 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
170 <Annotation Term="OData.Description" String="Specified the function to perform on each of the metric properties listed in the MetricProperties property."/>
171 <Annotation Term="OData.LongDescription" String="The property shall specify the function to perform on each of the metric properties listed in the MetricProperties property."/>
172 </Property>
173 <Property Name="CollectionDuration" Type="Edm.Duration">
174 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
175 <Annotation Term="OData.Description" String="Specifies the duration over which the function is computed."/>
176 <Annotation Term="OData.LongDescription" String="The value shall specify the duration over which the function is computed. The value shall conform to the Duration format."/>
177 </Property>
178 <Property Name="CollectionTimeScope" Type="MetricReportDefinition.v1_0_0.CollectionTimeScope">
179 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
180 <Annotation Term="OData.Description" String="Specifies the scope of time scope over which the function is applied."/>
181 <Annotation Term="OData.LongDescription" String="The value shall specify the scope of time over which the function is applied."/>
182 </Property>
183 </ComplexType>
184
185 <EnumType Name="MetricReportDefinitionType">
186 <Annotation Term="OData.Description" String="Indicates when the metric report is generated."/>
187 <Annotation Term="OData.LongDescription" String="The value shall specify when the metric report is generated."/>
188 <Member Name="Periodic">
189 <Annotation Term="OData.Description" String="The metric report is generated at a periodic time interval, specified in the Schedule property."/>
190 </Member>
191 <Member Name="OnChange">
192 <Annotation Term="OData.Description" String="The metric report is generated when any of the metric values change."/>
193 </Member>
194 <Member Name="OnRequest">
195 <Annotation Term="OData.Description" String="The metric report is generated when a HTTP GET is performed on the specified metric report."/>
196 </Member>
197 </EnumType>
198
199 <EnumType Name="ReportActionsEnum">
200 <Annotation Term="OData.Description" String="Actions to perform when a metric report is generated."/>
201 <Annotation Term="OData.LongDescription" String="The value shall specify the actions to perform when a metric report is generated."/>
202 <Member Name="LogToMetricReportsCollection">
203 <Annotation Term="OData.Description" String="When a metric report is scheduled to be generated, record the occurrence to the Metric Report Collection."/>
204 <Annotation Term="OData.LongDescription" String="When a metric report is scheduled to be generated, the service shall record the occurrence to the Metric Report Collection found under the Telemetry Service. The service shall update the Metric Report Collection based on the setting of the ReportUpdates property."/>
205 </Member>
206 <Member Name="RedfishEvent">
207 <Annotation Term="OData.Description" String="When a metric report is scheduled to be generated, send a Redfish Event message of type MetricReport."/>
208 <Annotation Term="OData.LongDescription" String="When a metric report is scheduled to be generated, the service shall produce a Redfish Event of type MetricReport to matching subscribers indicated in the EventSubscription collection found on the EventService."/>
209 </Member>
210 </EnumType>
211
212 <EnumType Name="ReportUpdatesEnum">
213 <Annotation Term="OData.Description" String="How to what to do with subsequent metric reports when a metric report already exists."/>
214 <Annotation Term="OData.LongDescription" String="The value shall specify what to do with subsequent metric reports when a metric report already exists."/>
215 <Member Name="Overwrite">
216 <Annotation Term="OData.Description" String="When a metric report is updated, overwrite the specified metric report resource."/>
217 </Member>
218 <Member Name="AppendWrapsWhenFull">
219 <Annotation Term="OData.Description" String="When a metric report is updated, append to the specified metric report resource. This also indicates that the metric report overwrites its entries with new entries when the metric report has reached its maximum capacity."/>
220 </Member>
221 <Member Name="AppendStopsWhenFull">
222 <Annotation Term="OData.Description" String="When a metric report is updated, append to the specified metric report resource. This also indicates that the metric report stops adding entries when the metric report has reached its maximum capacity."/>
223 </Member>
224 <Member Name="NewReport">
225 <Annotation Term="OData.Description" String="When a metric report is updated, create a new metric report resource, whose resource name is the metric report resource name concatenated with the timestamp."/>
226 </Member>
227 </EnumType>
228
229 <EnumType Name="CalculationAlgorithmEnum">
230 <Annotation Term="OData.Description" String="Specifies the function to apply to the list of metric properties."/>
231 <Annotation Term="OData.LongDescription" String="The value shall specify the function to apply to the list of metric properties."/>
232 <Member Name="Average">
233 <Annotation Term="OData.Description" String="The metric is calculated as the average of a metric reading over a sliding time interval."/>
234 <Annotation Term="OData.LongDescription" String="The metric shall be calculated as the average of a metric reading over a sliding time interval. The time interval shall be the value of the CalculationTimeInterval property."/>
235 </Member>
236 <Member Name="Maximum">
237 <Annotation Term="OData.Description" String="The metric is calculated as the maximum value of a metric reading over during a time interval."/>
238 <Annotation Term="OData.LongDescription" String="The metric shall be calculated as the maximum of a metric reading over a sliding time interval. The time interval shall be the value of the CalculationTimeInterval property."/>
239 </Member>
240 <Member Name="Minimum">
241 <Annotation Term="OData.Description" String="The metric is calculated as the minimum value of a metric reading over a sliding time interval."/>
242 <Annotation Term="OData.LongDescription" String="The metric shall be calculated as the minimum of a metric reading over a sliding time interval. The time interval shall be the value of the CalculationTimeInterval property."/>
243 </Member>
244 <Member Name="Summation">
245 <Annotation Term="OData.Description" String="The metric is calculated as the sum of the values over a sliding time interval."/>
246 <Annotation Term="OData.LongDescription" String="The metric shall be calculated as the sum of the the specified metric reading over a sliding time interval. The time interval shall be the value of the CalculationTimeInterval property."/>
247 </Member>
248 </EnumType>
249
250 <EnumType Name="CollectionTimeScope">
251 <Annotation Term="OData.Description" String="The time scope of the related metric values."/>
252 <Annotation Term="OData.LongDescription" String="The value of the property shall specify the time scope of the corresponding metric values."/>
253 <Member Name="Point">
254 <Annotation Term="OData.Description" String="The corresponding metric values apply to a point in time. On the corresponding metric value instances, the value of Timestamp shall specify the point in time."/>
255 </Member>
256 <Member Name="Interval">
257 <Annotation Term="OData.Description" String="The corresponding metric values apply to a time interval. On the corresponding metric value instances, the value of Timestamp shall specify the end of the time interval and Duration shall specify its duration."/>
258 </Member>
259 <Member Name="StartupInterval">
260 <Annotation Term="OData.Description" String="The corresponding metric values apply to a time interval that began at the startup of the measured resource (i.e. the Resources associated by Links.MetricDefinitionForResources). On the corresponding metric value instances, the value of Timestamp shall specify the end of the time interval. The value of Duration shall specifies the duration between startup of the resource and TimeStamp."/>
261 </Member>
262 </EnumType>
263
264 <ComplexType Name="Actions">
265 <Annotation Term="OData.AdditionalProperties" Bool="false"/>
266 <Annotation Term="OData.Description" String="The available actions for this resource."/>
267 <Annotation Term="OData.LongDescription" String="This type shall contain the available actions for this resource."/>
268 <Property Name="Oem" Type="MetricReportDefinition.v1_0_0.OemActions" Nullable="false">
269 <Annotation Term="OData.Description" String="This property contains the available OEM specific actions for this resource."/>
270 <Annotation Term="OData.LongDescription" String="This property shall contain any additional OEM actions for this resource."/>
271 </Property>
272 </ComplexType>
273
274 <ComplexType Name="OemActions">
275 <Annotation Term="OData.AdditionalProperties" Bool="true"/>
276 <Annotation Term="OData.Description" String="The available OEM specific actions for this resource."/>
277 <Annotation Term="OData.LongDescription" String="This type shall contain any additional OEM actions for this resource."/>
278 </ComplexType>
279 </Schema>
280
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600281 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="MetricReportDefinition.v1_0_1">
282 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
283 <Annotation Term="OData.Description" String="This version was created to clarify descriptions of several properties."/>
284 <EntityType Name="MetricReportDefinition" BaseType="MetricReportDefinition.v1_0_0.MetricReportDefinition"/>
285 </Schema>
286
287 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="MetricReportDefinition.v1_1_0">
288 <Annotation Term="OData.Description" String="This version was created to add the Values property to the Wildcard property."/>
289 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
290 <Annotation Term="Redfish.Release" String="2018.3"/>
291 <EntityType Name="MetricReportDefinition" BaseType="MetricReportDefinition.v1_0_1.MetricReportDefinition"/>
292 <ComplexType Name="Wildcard" BaseType="MetricReportDefinition.v1_0_0.Wildcard">
293 <Property Name="Values" Type="Collection(Edm.String)">
294 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
295 <Annotation Term="OData.Description" String="An array of values to substitute for the wildcard."/>
296 <Annotation Term="OData.LongDescription" String="This property shall contain the list of values to substitute for the wildcard."/>
297 </Property>
298 </ComplexType>
299 </Schema>
300
Ed Tanous530520e2019-01-02 13:41:37 -0800301 </edmx:DataServices>
302</edmx:Edmx>