Post by AMI_Mani on Nov 10, 2019 19:01:03 GMT
Hi,
As per EventDestination.v1_5_0.json, able to see attributes like MessageIds, OriginResources, RegistryPrefixes, ResourceTypes(Copied attribute details at end)
As per my understanding MessageIds is same as RegistryPrefixes and OriginResources is same as ResourceTypes.
Please explain the usage of providing both MessageIds, RegistryPrefixes and OriginResources, ResourceTypes while creating Subscriptions(/redfish/v1/EventService/Subscriptions)
"MessageIds": {
"description": "A list of MessageIds that the service will only send. If this property is absent or the array is empty, then Events with any MessageId will be sent to the subscriber.",
"items": {
"type": [
"string",
"null"
]
},
"longDescription": "The value of this property shall specify an array of MessageIds that are the only allowable values for the MessageId property within an EventRecord sent to the subscriber. Events with MessageIds not contained in this array shall not be sent to the subscriber. If this property is absent or the array is empty, the service shall send Events with any MessageId to the subscriber.",
"readonly": true,
"type": "array",
"versionAdded": "v1_1_0"
},
"OriginResources": {
"description": "A list of resources for which the service will only send related events. If this property is absent or the array is empty, then Events originating from any resource will be sent to the subscriber.",
"items": {
"$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/idRef"
},
"longDescription": "The value of this property shall specify an array of Resources, Resource Collections, or Referenceable Members that are the only allowable values for the OriginOfCondition property within an EventRecord sent to the subscriber. Events originating from Resources, Resource Collections, or Referenceable Members not contained in this array shall not be sent to the subscriber. If this property is absent or the array is empty, the service shall send Events originating from any Resource, Resource Collection, or Referenceable Member to the subscriber.",
"readonly": true,
"type": "array",
"versionAdded": "v1_1_0"
},
"RegistryPrefixes": {
"description": "A list of the Prefixes for the Message Registries that contain the MessageIds that will be sent to this event destination.",
"items": {
"type": [
"string",
"null"
]
},
"longDescription": "The value of this property is the array of the Prefixes of the Message Registries that contain the MessageIds in the Events that shall be sent to the EventDestination. If this property is absent or the array is empty, the service shall send Events with MessageIds from any Message Registry.",
"readonly": true,
"type": "array",
"versionAdded": "v1_4_0"
},
"ResourceTypes": {
"description": "A list of Resource Type values (Schema names) that correspond to the OriginOfCondition. The version and full namespace should not be specified.",
"items": {
"type": [
"string",
"null"
]
},
Thanks,
Mani
As per EventDestination.v1_5_0.json, able to see attributes like MessageIds, OriginResources, RegistryPrefixes, ResourceTypes(Copied attribute details at end)
As per my understanding MessageIds is same as RegistryPrefixes and OriginResources is same as ResourceTypes.
Please explain the usage of providing both MessageIds, RegistryPrefixes and OriginResources, ResourceTypes while creating Subscriptions(/redfish/v1/EventService/Subscriptions)
"MessageIds": {
"description": "A list of MessageIds that the service will only send. If this property is absent or the array is empty, then Events with any MessageId will be sent to the subscriber.",
"items": {
"type": [
"string",
"null"
]
},
"longDescription": "The value of this property shall specify an array of MessageIds that are the only allowable values for the MessageId property within an EventRecord sent to the subscriber. Events with MessageIds not contained in this array shall not be sent to the subscriber. If this property is absent or the array is empty, the service shall send Events with any MessageId to the subscriber.",
"readonly": true,
"type": "array",
"versionAdded": "v1_1_0"
},
"OriginResources": {
"description": "A list of resources for which the service will only send related events. If this property is absent or the array is empty, then Events originating from any resource will be sent to the subscriber.",
"items": {
"$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/idRef"
},
"longDescription": "The value of this property shall specify an array of Resources, Resource Collections, or Referenceable Members that are the only allowable values for the OriginOfCondition property within an EventRecord sent to the subscriber. Events originating from Resources, Resource Collections, or Referenceable Members not contained in this array shall not be sent to the subscriber. If this property is absent or the array is empty, the service shall send Events originating from any Resource, Resource Collection, or Referenceable Member to the subscriber.",
"readonly": true,
"type": "array",
"versionAdded": "v1_1_0"
},
"RegistryPrefixes": {
"description": "A list of the Prefixes for the Message Registries that contain the MessageIds that will be sent to this event destination.",
"items": {
"type": [
"string",
"null"
]
},
"longDescription": "The value of this property is the array of the Prefixes of the Message Registries that contain the MessageIds in the Events that shall be sent to the EventDestination. If this property is absent or the array is empty, the service shall send Events with MessageIds from any Message Registry.",
"readonly": true,
"type": "array",
"versionAdded": "v1_4_0"
},
"ResourceTypes": {
"description": "A list of Resource Type values (Schema names) that correspond to the OriginOfCondition. The version and full namespace should not be specified.",
"items": {
"type": [
"string",
"null"
]
},
Thanks,
Mani