1 #pragma once 2 /**************************************************************** 3 * READ THIS WARNING FIRST 4 * This is an auto-generated header which contains definitions 5 * for Redfish DMTF defined messages. 6 * DO NOT modify this registry outside of running the 7 * parse_registries.py script. The definitions contained within 8 * this file are owned by DMTF. Any modifications to these files 9 * should be first pushed to the relevant registry in the DMTF 10 * github organization. 11 ***************************************************************/ 12 #include "registries.hpp" 13 14 #include <array> 15 16 // clang-format off 17 18 namespace redfish::registries::resource_event 19 { 20 const Header header = { 21 "Copyright 2014-2020 DMTF in cooperation with the Storage Networking Industry Association (SNIA). All rights reserved.", 22 "#MessageRegistry.v1_4_0.MessageRegistry", 23 "ResourceEvent.1.0.3", 24 "Resource Event Message Registry", 25 "en", 26 "This registry defines the messages to use for resource events.", 27 "ResourceEvent", 28 "1.0.3", 29 "DMTF", 30 }; 31 constexpr const char* url = 32 "https://redfish.dmtf.org/registries/ResourceEvent.1.0.3.json"; 33 34 constexpr std::array registry = 35 { 36 MessageEntry{ 37 "LicenseAdded", 38 { 39 "Indicates that a license has been added.", 40 "A license for '%1' has been added. The following message was returned: '%2'.", 41 "OK", 42 2, 43 { 44 "string", 45 "string", 46 }, 47 "See vendor specific instructions for specific actions.", 48 }}, 49 MessageEntry{ 50 "LicenseChanged", 51 { 52 "Indicates that a license has changed.", 53 "A license for '%1' has changed. The following message was returned: '%2'.", 54 "Warning", 55 2, 56 { 57 "string", 58 "string", 59 }, 60 "See vendor specific instructions for specific actions.", 61 }}, 62 MessageEntry{ 63 "LicenseExpired", 64 { 65 "Indicates that a license has expired.", 66 "A license for '%1' has expired. The following message was returned: '%2'.", 67 "Warning", 68 2, 69 { 70 "string", 71 "string", 72 }, 73 "See vendor specific instructions for specific actions.", 74 }}, 75 MessageEntry{ 76 "ResourceChanged", 77 { 78 "Indicates that one or more resource properties have changed. This is not used whenever there is another event message for that specific change, such as only the state has changed.", 79 "One or more resource properties have changed.", 80 "OK", 81 0, 82 {}, 83 "None.", 84 }}, 85 MessageEntry{ 86 "ResourceCreated", 87 { 88 "Indicates that all conditions of a successful creation operation have been met.", 89 "The resource has been created successfully.", 90 "OK", 91 0, 92 {}, 93 "None", 94 }}, 95 MessageEntry{ 96 "ResourceErrorThresholdCleared", 97 { 98 "Indicates that a specified resource property has cleared its error threshold. Examples would be drive I/O errors, or network link errors.", 99 "The resource property %1 has cleared the error threshold of value %2.", 100 "OK", 101 2, 102 { 103 "string", 104 "number", 105 }, 106 "None.", 107 }}, 108 MessageEntry{ 109 "ResourceErrorThresholdExceeded", 110 { 111 "Indicates that a specified resource property has exceeded its error threshold. Examples would be drive I/O errors, or network link errors.", 112 "The resource property %1 has exceeded error threshold of value %2.", 113 "Critical", 114 2, 115 { 116 "string", 117 "number", 118 }, 119 "None.", 120 }}, 121 MessageEntry{ 122 "ResourceErrorsCorrected", 123 { 124 "Indicates that a specified resource property has corrected errors. Examples would be drive I/O errors, or network link errors.", 125 "The resource property %1 has corrected errors of type '%2'.", 126 "OK", 127 2, 128 { 129 "string", 130 "string", 131 }, 132 "None.", 133 }}, 134 MessageEntry{ 135 "ResourceErrorsDetected", 136 { 137 "Indicates that a specified resource property has detected errors. Examples would be drive I/O errors, or network link errors.", 138 "The resource property %1 has detected errors of type '%2'.", 139 "Warning", 140 2, 141 { 142 "string", 143 "string", 144 }, 145 "Resolution dependent upon error type.", 146 }}, 147 MessageEntry{ 148 "ResourceRemoved", 149 { 150 "Indicates that all conditions of a successful remove operation have been met.", 151 "The resource has been removed successfully.", 152 "OK", 153 0, 154 {}, 155 "None", 156 }}, 157 MessageEntry{ 158 "ResourceSelfTestCompleted", 159 { 160 "Indicates that a self-test has completed.", 161 "A self-test has completed.", 162 "OK", 163 0, 164 {}, 165 "None.", 166 }}, 167 MessageEntry{ 168 "ResourceSelfTestFailed", 169 { 170 "Indicates that a self-test has failed. Suggested resolution may be provided as OEM data.", 171 "A self-test has failed. The following message was returned: '%1'.", 172 "Critical", 173 1, 174 { 175 "string", 176 }, 177 "See vendor specific instructions for specific actions.", 178 }}, 179 MessageEntry{ 180 "ResourceStatusChangedCritical", 181 { 182 "Indicates that the health of a resource has changed to Critical.", 183 "The health of resource `%1` has changed to %2.", 184 "Critical", 185 2, 186 { 187 "string", 188 "string", 189 }, 190 "None.", 191 }}, 192 MessageEntry{ 193 "ResourceStatusChangedOK", 194 { 195 "Indicates that the health of a resource has changed to OK.", 196 "The health of resource '%1' has changed to %2.", 197 "OK", 198 2, 199 { 200 "string", 201 "string", 202 }, 203 "None.", 204 }}, 205 MessageEntry{ 206 "ResourceStatusChangedWarning", 207 { 208 "Indicates that the health of a resource has changed to Warning.", 209 "The health of resource `%1` has changed to %2.", 210 "Warning", 211 2, 212 { 213 "string", 214 "string", 215 }, 216 "None.", 217 }}, 218 MessageEntry{ 219 "ResourceVersionIncompatible", 220 { 221 "Indicates that an incompatible version of software has been detected. Examples may be after a component or system level software update.", 222 "An incompatible version of software '%1' has been detected.", 223 "Warning", 224 1, 225 { 226 "string", 227 }, 228 "Compare the version of the resource with the compatible version of the software.", 229 }}, 230 MessageEntry{ 231 "ResourceWarningThresholdCleared", 232 { 233 "Indicates that a specified resource property has cleared its warning threshold. Examples would be drive I/O errors, or network link errors. Suggested resolution may be provided as OEM data.", 234 "The resource property %1 has cleared the warning threshold of value %2.", 235 "OK", 236 2, 237 { 238 "string", 239 "number", 240 }, 241 "None.", 242 }}, 243 MessageEntry{ 244 "ResourceWarningThresholdExceeded", 245 { 246 "Indicates that a specified resource property has exceeded its warning threshold. Examples would be drive I/O errors, or network link errors. Suggested resolution may be provided as OEM data.", 247 "The resource property %1 has exceeded its warning threshold of value %2.", 248 "Warning", 249 2, 250 { 251 "string", 252 "number", 253 }, 254 "None.", 255 }}, 256 MessageEntry{ 257 "URIForResourceChanged", 258 { 259 "Indicates that the URI for a resource has changed. Examples for this would be physical component replacement or redistribution.", 260 "The URI for the resource has changed.", 261 "OK", 262 0, 263 {}, 264 "None.", 265 }}, 266 267 }; 268 269 enum class Index 270 { 271 licenseAdded = 0, 272 licenseChanged = 1, 273 licenseExpired = 2, 274 resourceChanged = 3, 275 resourceCreated = 4, 276 resourceErrorThresholdCleared = 5, 277 resourceErrorThresholdExceeded = 6, 278 resourceErrorsCorrected = 7, 279 resourceErrorsDetected = 8, 280 resourceRemoved = 9, 281 resourceSelfTestCompleted = 10, 282 resourceSelfTestFailed = 11, 283 resourceStatusChangedCritical = 12, 284 resourceStatusChangedOK = 13, 285 resourceStatusChangedWarning = 14, 286 resourceVersionIncompatible = 15, 287 resourceWarningThresholdCleared = 16, 288 resourceWarningThresholdExceeded = 17, 289 uRIForResourceChanged = 18, 290 }; 291 } // namespace redfish::registries::resource_event 292