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