Sample appsettings.gateway.json File

An example Link appsettings.gateway.json file is displayed below and is for reference purposes only.

Use the links in the file to jump to descriptions for the objects and members:

{

////////// GATEWAY SECTION //////////

"gateway": {

"environment": "Edge",

"passwordEncryptionKeyPath": "",

"node": {

"make": "Weatherford",

"model": "E1000"

},

"endpointConnections": {

"MyUIS": [ "MySparkPlug" ],

"MyVHS": [ "MyUIS", "MySparkPlug" ],

"MyDDS": [ "MyUIS", "MySparkPlug" ]

},

"endpoints": [

{

////////// PUBLISHER ENDPOINT SECTION //////////

"name": "MySparkPlug",

"role": "Target",

"dataFormat": {

"type": "Sparkplug",

"version": "1.0b",

"compression": "None",

"topics": {

"groupId": "Pad123",

"gatewayNodeId": "Link0001"

}

},

"protocol": {

"type": "MQTT",

"hostname": "10.97.19.106",

"port": 1883,

"keepAlive": 60,

"maxQueuedMessages": 5000,

"clientId": "MyClientId",

"security": {

"encryption": {

"protocol": "",

"trustedCertificatePath": "",

"clientKeystore": {

"path": "",

"password": ""

},

"ignoreCertificateRevocationErrors": false

},

"credentials": {

"user": "",

"password": ""

}

}

}

},

{

////////// CVS ENDPOINT SECTION //////////

"name": "MyUIS",

"role": "Source",

"dataFormat": {

"type": "CvsService"

},

"protocol": {

"type": "CygNet",

"hostname": "CYGNET.UIS",

"port": 27777

},

"data": {

"defaultPollingFreq": 1000,

"defaultQualityOfService": "Medium",

"strictPointValues": true,

"strictPointValidation": true,

"pointLimit": "200",

"publish": [

{

"pointTag": "CYGNET.UIS::METERFAC1.TEMP",

"historicalRollup": {

"type": "ThinMinMax",

"unit": "Minutes",

"period": 10,

"topOfUnit": 0

},

"pollingFreq": 60000

},

{

"facilityFilter": "facility_id='METERFAC2' or (facility_id='998800*' and facility_desc='PK*')"

},

{

"pointFilter": "activestatus='Y' and facilityid='METERFAC3'",

"pollingFreq": 10000

},

{

"facilityFilter": "facility_desc='PL*'",

"pointFilter": "uniformdatacode='PRESS'",

"qualityOfService": "Low"

}

]

}

},

{

////////// VHS ENDPOINT SECTION //////////

"name": "MyVHS",

"role": "Source",

"dataFormat": {

"type": "VhsService"

},

"protocol": {

"type": "CygNet"

},

"data": {

"defaultPollingFreq": 10000,

"pointDiscoveryFreq": 3600000, //one hour

"defaultQualityOfService": "Medium",

"publish": [

{

"dynaCard": "CYGNET.UIS::WELLPILOTC001"

},

{

"dynaCard": "CYGNET.UIS::WELLPILOT002"

}

]

}

},

{

////////// DDS ENDPOINT SECTION //////////

"name": "MyDDS",

"role": "Source",

"dataFormat": {

"type": "DdsService",

"defaultFormat": "xml" // or structured

},

"protocol": {

"type": "CygNet"

},

"data": {

"defaultPollingFreq": 10000,

"defaultQualityOfService": "Medium", // Low, Medium, or High. For MQTT endpoints, this translates to 0, 1, or 2 QoS levels, respectively.

"publish": [

{

"device": "WELLPILOT001",

"dataGroup": "DynaCard"

},

{

"device": "WELLPILOT002",

"dataGroup": "DynaCard"

}

]

}

}

]

}

}