Dataserver AVEVA Insight
  • 26 Sep 2024
  • 2 Minutes to read
  • Contributors
  • Dark
    Light
  • PDF

Dataserver AVEVA Insight

  • Dark
    Light
  • PDF

Article summary

The purpose of this article is to serve as a reference guide for using AVEVA Insight as data server in the Data Collection Module.

This guide is part of the complete documentation for the Data Collection Module feature in SiteManager.

Prerequisite

A Secomea starter pack (SiteManager + accounts)

A subscription or trial subscription to the AVEVA Insight analytics platform.

Configuration

The data server's (array of objects, mandatory) list elements contain the following fields:

FunctionTypeImportanceDescription
DatasrvNamestringmandatoryUnique name (within this configuration file) for each data server this SiteManager delivers data to. Follows the normal rules for names.
DatasrvDesriptionstringoptionalA description of this data server. For your future reference.
SampleListarray of stringsoptionalThis array contains the list of sampleref this data server will deliver data for. If it is not present, all sample values in this configuration will be delivered. Since this object is not a Collector object, the CollectorName part of the sampleref field is mandatory. If the SampleName part of the sampleref is left blank, all samples from that collector are delivered.
IOPinbooleanoptionalIf set to true, the Output I/O pins configured to follow DCM data loss will be controlled by this datasrv. If multiple data servers control the I/O pins, then the value will be the logical OR of all data servers in data loss state. (I.e. If any data server is in data loss, the I/O pins will be in logical high). If not set, the value is false.
DatasrvProtocolstring-enummandatoryDesignates the protocol used to deliver data from the Store'n'Forward database to data servers, aka Cloud Systems. For AVEVA Insight use AVEVA/REST. Other possible values (for other dataservers) are: C8Y/REST, AWS/MQTT, AZURE/IOTHUB, SCI/SPD, C8Y/REST, GENERIC/MQTT and SIMULATOR/NONE.
ConnectRetryMininteger > 0mandatoryMinimum number of seconds before trying to reestablish a connection to the data server for data delivery. An exponential back-off algorithm is used to retry connection establishment, starting after ConnectRetryMin and increasing to ConnectRetryMax.
ConnectRetryMaxinteger > 0mandatoryMaximum number of seconds before trying to reestablish a connection to the data server for data delivery.
AVEVAParamsobjectmandatory for AVEVAContains all the parameters needed to deliver (publish) data to the AVEVA Insight Cloud service. Mandatory if DatasrvProtocol has the value AVEVA/REST.

AVEVAParams object

The AVEVAParams object contains the following fields:

FunctionTypeImportanceDescription
UploadEndpointNamestringmandatoryThe Upload endpoint URL to use for the AVEVA Insight connection. If not specified, the first AVEVA Upload endpoint URL found in the cert repository will be used.
TokenNamestringmandatoryThe certname of the Authorization bearer token string to use for the AVEVA Insight connection. If not specified, the first AVEVA TokenName found in the cert repository will be used.
AvevaRootCANamestringoptionalThe certname of the AVEVA Insight Root-CA certificate. If not specified, the first AVEVA Insight ROOT-CA found in the cert repository will be used. If none is found, then a built-in ROOT-CA certificate will be used.
PushIntervalinteger >= 0mandatoryThe interval in seconds between each delivery of new data from the store’n’forward database. The value 0 means that data is delivered as fast as possible.
TagNameFormatstringoptionalThe format used to generate tag names. Defaults to: %d.%s.

Example configuration

{
  "ConfigName": "Aveva_Insight",
  "ConfigDescription": "Configuration for aveva_test",
  "CheckpointInterval": 600,
  "Collectors": [
    ...
  ],
  "DataServers": [
    {
      "DatasrvName" : "aveva_insight",
      "DatasrvProtocol" : "AVEVA/REST",
      "AvevaParams": {
        "UploadEndpointName" : "aveva_uploadendpoint",
        "TokenName" : "aveva_token",
        "PushInterval" : 30
      },
      "ConnectRetryMin": 30,
      "ConnectRetryMax": 240
    }
  ]
}

Was this article helpful?