Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!----> |
| 3 | <!--################################################################################ --> |
| 4 | <!--# Redfish Schema: Triggers 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 --> |
| 8 | <!--# Copyright 2014-2016 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:Reference> |
| 27 | |
| 28 | <edmx:DataServices> |
| 29 | |
| 30 | <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Triggers"> |
| 31 | <Annotation Term="Redfish.OwningEntity" String="DMTF"/> |
| 32 | |
| 33 | <EntityType Name="Triggers" BaseType="Resource.v1_0_0.Resource" Abstract="true"> |
| 34 | <Annotation Term="OData.Description" String="Specifies a trigger, which apply to metrics."/> |
| 35 | <Annotation Term="OData.LongDescription" String="This resource shall specify a trigger, which apply to metrics."/> |
| 36 | <Annotation Term="Capabilities.InsertRestrictions"> |
| 37 | <Record> |
| 38 | <PropertyValue Property="Insertable" Bool="false"/> |
| 39 | </Record> |
| 40 | </Annotation> |
| 41 | <Annotation Term="Capabilities.UpdateRestrictions"> |
| 42 | <Record> |
| 43 | <PropertyValue Property="Updatable" Bool="true"/> |
| 44 | <Annotation Term="OData.Description" String="Triggers can be updated to config the triggers."/> |
| 45 | </Record> |
| 46 | </Annotation> |
| 47 | <Annotation Term="Capabilities.DeleteRestrictions"> |
| 48 | <Record> |
| 49 | <PropertyValue Property="Deletable" Bool="true"/> |
| 50 | </Record> |
| 51 | </Annotation> |
| 52 | <Annotation Term="Redfish.Uris"> |
| 53 | <Collection> |
| 54 | <String>/redfish/v1/TelemetryService/Triggers/{TriggersId}</String> |
| 55 | </Collection> |
| 56 | </Annotation> |
| 57 | </EntityType> |
| 58 | </Schema> |
| 59 | |
| 60 | <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Triggers.v1_0_0"> |
| 61 | <Annotation Term="Redfish.OwningEntity" String="DMTF"/> |
| 62 | |
| 63 | <EntityType Name="Triggers" BaseType="Triggers.Triggers"> |
| 64 | <Annotation Term="OData.Description" String="Triggers which apply to a list of metrics."/> |
| 65 | <Annotation Term="OData.LongDescription" String="This resource shall specify triggers, which apply to a list of metrics."/> |
| 66 | |
| 67 | <Property Name="MetricType" Type="Triggers.v1_0_0.MetricTypeEnum"> |
| 68 | <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/> |
| 69 | <Annotation Term="OData.Description" String="The type of trigger."/> |
| 70 | <Annotation Term="OData.LongDescription" String="The value of this property shall specific the type of trigger."/> |
| 71 | </Property> |
| 72 | <Property Name="TriggerActions" Type="Collection(Triggers.v1_0_0.TriggerActionEnum)" Nullable="false"> |
| 73 | <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/> |
| 74 | <Annotation Term="OData.Description" String="This property specifies the actions to perform when the trigger occurs."/> |
| 75 | <Annotation Term="OData.LongDescription" String="The value of this property shall specify the actions to perform when the trigger occurs."/> |
| 76 | </Property> |
| 77 | <Property Name="NumericThresholds" Type="Triggers.v1_0_0.Thresholds"> |
| 78 | <Annotation Term="OData.Description" String="Specifies the thresholds when a numeric metric triggers."/> |
| 79 | <Annotation Term="OData.LongDescription" String="This property shall contain list of thresholds to which a numeric metric value shall be compared."/> |
| 80 | </Property> |
| 81 | <Property Name="DiscreteTriggerCondition" Type="Triggers.v1_0_0.DiscreteTriggerConditionEnum"> |
| 82 | <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/> |
| 83 | <Annotation Term="OData.Description" String="Specifies the conditions when a discrete metric triggers."/> |
| 84 | <Annotation Term="OData.LongDescription" String="The value of this property shall specify the conditions when a discrete metric triggers."/> |
| 85 | </Property> |
| 86 | <Property Name="DiscreteTriggers" Type="Collection(Triggers.v1_0_0.DiscreteTrigger)" Nullable="false"> |
| 87 | <Annotation Term="OData.Description" String="List of discrete triggers."/> |
| 88 | <Annotation Term="OData.LongDescription" String="This property shall contains a list of value to which a metric reading will be compared. This property shall be present when the DiscreteTriggerCondition property has a value of 'Specified'."/> |
| 89 | </Property> |
| 90 | |
| 91 | <Property Name="Status" Type="Resource.Status" Nullable="false"> |
| 92 | <Annotation Term="OData.Description" String="This property describes the status and health of the resource and its children."/> |
| 93 | <Annotation Term="OData.LongDescription" String="This property shall contain any status or health properties of the resource."/> |
| 94 | </Property> |
| 95 | |
| 96 | <Property Name="Wildcards" Type="Collection(Triggers.v1_0_0.Wildcard)"> |
| 97 | <Annotation Term="OData.Description" String="Wildcards used to replace values in MetricProperties array property."/> |
| 98 | <Annotation Term="OData.LongDescription" String="The property shall contain an array of wildcards and their replacements strings, which are to appliced to the MetricProperties array."/> |
| 99 | </Property> |
| 100 | <Property Name="MetricProperties" Type="Collection(Edm.String)"> |
| 101 | <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/> |
| 102 | <Annotation Term="OData.Description" String="A collection of URI for the properties on which this metric definition is defined."/> |
| 103 | <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. Property identifiers in the URI shall follow JSON fragment notation rules defined by RFC6901."/> |
| 104 | <Annotation Term="OData.IsURL"/> |
| 105 | </Property> |
| 106 | <Property Name="Actions" Type="Triggers.v1_0_0.Actions" Nullable="false"> |
| 107 | <Annotation Term="OData.Description" String="The available actions for this resource."/> |
| 108 | <Annotation Term="OData.LongDescription" String="The Actions property shall contain the available actions for this resource."/> |
| 109 | </Property> |
| 110 | </EntityType> |
| 111 | |
| 112 | <EnumType Name="MetricTypeEnum"> |
| 113 | <Annotation Term="OData.Description" String="Specifies the type of metric for which the trigger is configured."/> |
| 114 | <Annotation Term="OData.LongDescription" String="The value shall specify the type of metric for which the trigger is configured."/> |
| 115 | <Member Name="Numeric"> |
| 116 | <Annotation Term="OData.Description" String="The trigger is for numeric sensor."/> |
| 117 | </Member> |
| 118 | <Member Name="Discrete"> |
| 119 | <Annotation Term="OData.Description" String="The trigger is for a discrete sensor."/> |
| 120 | </Member> |
| 121 | </EnumType> |
| 122 | |
| 123 | <EnumType Name="TriggerActionEnum"> |
| 124 | <Annotation Term="OData.Description" String="Specifies the actions to perform when a trigger occurs."/> |
| 125 | <Annotation Term="OData.LongDescription" String="The value shall specify the actions to perform when a trigger occurs."/> |
| 126 | <Member Name="LogToLogService"> |
| 127 | <Annotation Term="OData.Description" String="Upon a trigger, record in a log."/> |
| 128 | <Annotation Term="OData.LongDescription" String="When a trigger condition is met, the service shall log the occurrence of the condition to the log indicated by the LogService property in the TelemetryService resource."/> |
| 129 | </Member> |
| 130 | <Member Name="RedfishEvent"> |
| 131 | <Annotation Term="OData.Description" String="Upon a trigger, send a Redfish Event message of type MetricReport."/> |
| 132 | <Annotation Term="OData.LongDescription" String="When a trigger condition is met, the service shall produce a Redfish Event of type Event to matching subscribers indicated in the EventSubscription collection found on the EventService."/> |
| 133 | </Member> |
| 134 | </EnumType> |
| 135 | |
| 136 | <EnumType Name="DiscreteTriggerConditionEnum"> |
| 137 | <Annotation Term="OData.Description" String="Specifies the condition, in relationship to the discrete trigger values, which constitutes a trigger."/> |
| 138 | <Annotation Term="OData.LongDescription" String="The value shall specify the condition, in relationship to the discrete trigger values, which constitutes a trigger."/> |
| 139 | <Member Name="Specified"> |
| 140 | <Annotation Term="OData.Description" String="A discrete trigger occurs when the value of the metric becomes one of the values listed in the DiscreteTriggers property."/> |
| 141 | </Member> |
| 142 | <Member Name="Changed"> |
| 143 | <Annotation Term="OData.Description" String="A discrete trigger occures whenever the value of the metric changes."/> |
| 144 | </Member> |
| 145 | </EnumType> |
| 146 | |
| 147 | <ComplexType Name="Thresholds"> |
| 148 | <Annotation Term="OData.AdditionalProperties" Bool="false"/> |
| 149 | <Annotation Term="OData.Description" String="The set of thresholds defined for a sensor."/> |
| 150 | <Annotation Term="OData.LongDescription" String="This structure shall contain a set of thresholds defined for a sensor."/> |
| 151 | <Property Name="UpperWarning" Type="Triggers.v1_0_0.Threshold"> |
| 152 | <Annotation Term="OData.Description" String="Above normal range."/> |
| 153 | <Annotation Term="OData.LongDescription" String="The value of this property shall indicate the Reading is above the normal range. The units shall be the same units as the Reading."/> |
| 154 | </Property> |
| 155 | <Property Name="UpperCritical" Type="Triggers.v1_0_0.Threshold"> |
| 156 | <Annotation Term="OData.Description" String="Above normal range and requires attention."/> |
| 157 | <Annotation Term="OData.LongDescription" String="The value of this property shall indicate the Reading is above the normal range and may require attention. The units shall be the same units as the Reading."/> |
| 158 | </Property> |
| 159 | <Property Name="LowerWarning" Type="Triggers.v1_0_0.Threshold"> |
| 160 | <Annotation Term="OData.Description" String="Below normal range."/> |
| 161 | <Annotation Term="OData.LongDescription" String="The value of this property shall indicate the Reading is below the normal range. The units shall be the same units as the Reading."/> |
| 162 | </Property> |
| 163 | <Property Name="LowerCritical" Type="Triggers.v1_0_0.Threshold"> |
| 164 | <Annotation Term="OData.Description" String="Below normal range and requires attention."/> |
| 165 | <Annotation Term="OData.LongDescription" String="The value of this property shall indicate the Reading is below the normal range and may require attention. The units shall be the same units as the Reading."/> |
| 166 | </Property> |
| 167 | </ComplexType> |
| 168 | |
| 169 | <ComplexType Name="Threshold"> |
| 170 | <Annotation Term="OData.AdditionalProperties" Bool="false"/> |
| 171 | <Annotation Term="OData.Description" String="A threshold definition for a sensor."/> |
| 172 | <Annotation Term="OData.LongDescription" String="This type shall contain the properties for an individual threshold for this sensor."/> |
| 173 | <Property Name="Reading" Type="Edm.Decimal"> |
| 174 | <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/> |
| 175 | <Annotation Term="OData.Description" String="The threshold value."/> |
| 176 | <Annotation Term="OData.LongDescription" String="This property shall indicate the Reading value of this Sensor that triggers the threshold. The units of this property shall follow the same units as the property described by MetricProperties."/> |
| 177 | </Property> |
| 178 | <Property Name="Activation" Type="Triggers.v1_0_0.ThresholdActivation"> |
| 179 | <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/> |
| 180 | <Annotation Term="OData.Description" String="The direction of crossing that activates this threshold."/> |
| 181 | <Annotation Term="OData.LongDescription" String="This property shall indicate the direction of crossing of the Reading value for this Sensor that triggers the threshold."/> |
| 182 | </Property> |
| 183 | <Property Name="DwellTime" Type="Edm.Duration"> |
| 184 | <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/> |
| 185 | <Annotation Term="OData.Description" String="The time interval over which the sensor reading must have passed through this Threshold value before the threshold is considered to be violated."/> |
| 186 | <Annotation Term="OData.LongDescription" String="This property shall indicate the time interval over which the sensor reading must have passed through this Threshold value before the threshold is considered to be violated."/> |
| 187 | </Property> |
| 188 | </ComplexType> |
| 189 | |
| 190 | <ComplexType Name="Actions"> |
| 191 | <Annotation Term="OData.AdditionalProperties" Bool="false"/> |
| 192 | <Annotation Term="OData.Description" String="The available actions for this resource."/> |
| 193 | <Annotation Term="OData.LongDescription" String="This type shall contain the available actions for this resource."/> |
| 194 | <Property Name="Oem" Type="Triggers.v1_0_0.OemActions" Nullable="false"> |
| 195 | <Annotation Term="OData.Description" String="This property contains the available OEM specific actions for this resource."/> |
| 196 | <Annotation Term="OData.LongDescription" String="This property shall contain any additional OEM actions for this resource."/> |
| 197 | </Property> |
| 198 | </ComplexType> |
| 199 | |
| 200 | <ComplexType Name="OemActions"> |
| 201 | <Annotation Term="OData.AdditionalProperties" Bool="true"/> |
| 202 | <Annotation Term="OData.Description" String="The available OEM specific actions for this resource."/> |
| 203 | <Annotation Term="OData.LongDescription" String="This type shall contain any additional OEM actions for this resource."/> |
| 204 | </ComplexType> |
| 205 | |
| 206 | <EnumType Name="ThresholdActivation"> |
| 207 | <Member Name="Increasing"> |
| 208 | <Annotation Term="OData.Description" String="Value increases above the threshold."/> |
| 209 | <Annotation Term="OData.LongDescription" String="This threshold is activated when the value of Reading changes from a value lower than the threshold to a value higher than the threshold."/> |
| 210 | </Member> |
| 211 | <Member Name="Decreasing"> |
| 212 | <Annotation Term="OData.Description" String="Value decreases below the threshold."/> |
| 213 | <Annotation Term="OData.LongDescription" String="This threshold is activated when the value of Reading changes from a value higher than the threshold to a value lower than the threshold."/> |
| 214 | </Member> |
| 215 | <Member Name="Either"> |
| 216 | <Annotation Term="OData.Description" String="Value crosses the threshold in either direction."/> |
| 217 | <Annotation Term="OData.LongDescription" String="This threshold is activated when either the Increasing or Decreasing conditions are met."/> |
| 218 | </Member> |
| 219 | </EnumType> |
| 220 | |
| 221 | <EnumType Name="DirectionOfCrossingEnum"> |
| 222 | <Annotation Term="OData.Description" String="The direction of crossing which corresponds to a trigger."/> |
| 223 | <Annotation Term="OData.LongDescription" String="The value shall indicate the direction of crossing which corresponds to a trigger."/> |
| 224 | <Member Name="Increasing"> |
| 225 | <Annotation Term="OData.Description" String="A trigger occurs when the metric value crosses the trigger value while increasing."/> |
| 226 | </Member> |
| 227 | <Member Name="Decreasing"> |
| 228 | <Annotation Term="OData.Description" String="A trigger occurs when the metric value crosses the trigger value while decreasing."/> |
| 229 | </Member> |
| 230 | </EnumType> |
| 231 | |
| 232 | <ComplexType Name="DiscreteTrigger"> |
| 233 | <Annotation Term="OData.AdditionalProperties" Bool="false"/> |
| 234 | <Annotation Term="OData.Description" String="The characteristics of the discrete trigger."/> |
| 235 | <Annotation Term="OData.LongDescription" String="This object shall contain the characteristics of the discrete trigger."/> |
| 236 | <Property Name="Name" Type="Edm.String"> |
| 237 | <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/> |
| 238 | <Annotation Term="OData.Description" String="The name of trigger."/> |
| 239 | <Annotation Term="OData.LongDescription" String="This property shall contain a name for the trigger."/> |
| 240 | </Property> |
| 241 | <Property Name="Value" Type="Edm.String"> |
| 242 | <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/> |
| 243 | <Annotation Term="OData.Description" String="The value of the discrete metric that constitutes a trigger occurance."/> |
| 244 | <Annotation Term="OData.LongDescription" String="This property shall contain the value discrete metric that constitutes a trigger event. The DwellTimeMilliSeconds shall be measured from this point in time."/> |
| 245 | </Property> |
| 246 | <Property Name="DwellTime" Type="Edm.Duration"> |
| 247 | <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/> |
| 248 | <Annotation Term="OData.Description" String="This time the trigger occurance persists before a trigger event has occurred."/> |
| 249 | <Annotation Term="OData.LongDescription" String="This property shall contain the time that a trigger occurance persists before the MetricAction is performed."/> |
| 250 | </Property> |
| 251 | <Property Name="Severity" Type="Resource.Health"> |
| 252 | <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/> |
| 253 | <Annotation Term="OData.Description" String="This property contains the value of the Severity property in the Event message."/> |
| 254 | <Annotation Term="OData.LongDescription" String="The value of this property shall be used for the Severity property in the Event message."/> |
| 255 | </Property> |
| 256 | </ComplexType> |
| 257 | |
| 258 | <ComplexType Name="Wildcard"> |
| 259 | <Annotation Term="OData.AdditionalProperties" Bool="false"/> |
| 260 | <Annotation Term="OData.Description" String="Contains a list of wildcards and their substitution values."/> |
| 261 | <Annotation Term="OData.LongDescription" String="Each wildcard shall have a corresponding entry in this list element. Each entry shall specified the wildcard and its substitution values."/> |
| 262 | <Property Name="Name" Type="Edm.String"> |
| 263 | <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/> |
| 264 | <Annotation Term="OData.Description" String="The name of Wildcard."/> |
| 265 | <Annotation Term="OData.LongDescription" String="This property shall contain a name for a Wildcard."/> |
| 266 | </Property> |
| 267 | <Property Name="Values" Type="Collection(Edm.String)"> |
| 268 | <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/> |
| 269 | <Annotation Term="OData.Description" String="An array of values to substitute for the wildcard."/> |
| 270 | <Annotation Term="OData.LongDescription" String="This property shall contain then the server shall substitute. Each not empty value shall be substituted for the wildcard."/> |
| 271 | </Property> |
| 272 | </ComplexType> |
| 273 | </Schema> |
| 274 | |
| 275 | </edmx:DataServices> |
| 276 | </edmx:Edmx> |