View Issue Details

IDProjectCategoryView StatusLast Update
0008484.NET APIFeature Requestpublic2022-12-02 04:55
ReporterPraveen Assigned To 
PriorityimmediateSeveritymajorReproducibilityN/A
Status newResolutionopen 
PlatformWindowsOS2010pro 
Summary0008484: Payload Structure for alarm and events, when publishing to middleware in Pub sub.
Description

we have built a Publisher Subscriber bridge which actually consumes the Configuration data,
Using the Configuration data, it publishes & subscribes data from various data sources to middleware.
we already have supported data sources such as UA server (only DA) & classic DA Server.
& We are currently planning to integrate Alarms & events into our pub sub-Application,
although we are able to do some level of implementation & publish the alarm data with a specific structure based on the alarm notification, however, we are not sure about the structure of the payload which we have followed.
in order to verify the structure, we explored the sample applications from Foundation GitHub & unfortunately we couldn't find any reference for the same
can we get some help or reference, whether there is any defined structure for publishing alarm data to middleware
or can we continue to use the structure that we are following (Attached file for reference).

TagsAlarms, Part 014 - PubSub
Attached Files
sample_structure (1,970 bytes)   
{
  "MessageId" : "42b2c65a-1dce-4d48-83a0-57f308ae566e",
  "PublisherId" : "54f4825d-4b3b-4b53-81cc-d8579c9794d9",
  "MessageType" : "ua-data",
  "Messages" : [ {
    "DataSetWriterId" : 101,
    "SequenceNumber" : 6715,
    "MetaDataVersion" : {
      "MajorVersion" : 723113404,
      "MinorVersion" : 723113404
    },
    "AlarmPayload" : {
      "ns=2;s=0:West/Blue" : [ {
        "Events" : [ {
          "ClientHandle" : 5,
          "EventFields" : [ "+BthYD7mhEy6HSTYmHJAOg==", {
            "Id" : 9764
          }, {
            "IdType" : 1,
            "Id" : "1:Colours/EastTank",
            "Namespace" : 2
          }, "EastTank", "2022-11-30T10:49:56.7929121Z", "2022-11-30T10:49:56.7934119Z", null, "The alarm severity has increased.", 900 ]
        }, {
          "ClientHandle" : 5,
          "EventFields" : [ "PMxv3HSPfkK0IBESEHmPaQ==", {
            "Id" : 10751
          }, {
            "IdType" : 1,
            "Id" : "1:Colours/EastTank",
            "Namespace" : 2
          }, "EastTank", "2022-11-30T10:49:56.7929121Z", "2022-11-30T10:49:56.7936182Z", null, "The alarm severity has increased.", 500 ]
        }, {
          "ClientHandle" : 5,
          "EventFields" : [ "KPgZopeGiky/jl6xAZIX/A==", {
            "Id" : 9764
          }, {
            "IdType" : 1,
            "Id" : "1:Metals/WestTank",
            "Namespace" : 2
          }, "WestTank", "2022-11-30T10:49:56.7941203Z", "2022-11-30T10:49:56.7941203Z", null, "The alarm severity has increased.", 500 ]
        }, {
          "ClientHandle" : 5,
          "EventFields" : [ "hRFrz0N17UKRKAOW0wE8+g==", {
            "Id" : 10751
          }, {
            "IdType" : 1,
            "Id" : "1:Metals/WestTank",
            "Namespace" : 2
          }, "WestTank", "2022-11-30T10:49:56.7941203Z", "2022-11-30T10:49:56.7941203Z", null, "The alarm severity has increased.", 900 ]
        } ]
      } ]
    }
  } ]
}
sample_structure (1,970 bytes)   

Activities

Issue History

Date Modified Username Field Change
2022-12-01 10:08 Praveen New Issue
2022-12-01 10:08 Praveen File Added: sample_structure
2022-12-02 04:54 Praveen Tag Attached: Alarms
2022-12-02 04:54 Praveen Tag Attached: Part 014 - PubSub