{"id":163,"date":"2020-04-22T19:36:09","date_gmt":"2020-04-22T19:36:09","guid":{"rendered":"https:\/\/dxhelpdev.wpengine.com\/?post_type=epkb_post_type_1&#038;p=163"},"modified":"2023-12-28T20:54:34","modified_gmt":"2023-12-28T20:54:34","slug":"connection-time-monitoring","status":"publish","type":"epkb_post_type_1","link":"https:\/\/dxhelp.scytec.com\/?epkb_post_type_1=connection-time-monitoring","title":{"rendered":"Connection Time Monitoring"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Overview<\/h2>\n\n\n\n<p>DataXchange can monitor the current connection time and return the value to the RTV. Information on expressions using these variables can be found <a href=\"https:\/\/dxhelp.scytec.com\/?epkb_post_type_1=connection-time-expressions\">here<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Connection Time Monitoring<\/h2>\n\n\n\n<p>There is a&nbsp;\u2018connect time\u2019&nbsp;variable for each source polled by DataXchange. Here is a list of all of the connect time variables.<\/p>\n\n\n\n<table id=\"tablepress-10\" class=\"tablepress tablepress-id-10\">\n<tbody class=\"row-striping\">\n<tr class=\"row-1\">\n\t<td class=\"column-1\">Focas.connect_time<\/td><td class=\"column-2\">The connect time for the current Focas poll<\/td>\n<\/tr>\n<tr class=\"row-2\">\n\t<td class=\"column-1\">Focas.prev_connect_time<\/td><td class=\"column-2\">The previous connect time<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">Focas.connected_time<\/td><td class=\"column-2\">Returns the amount of time in seconds since a successful connection to the source<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">Focas.prev_connected_time<\/td><td class=\"column-2\">The previous connected time<\/td>\n<\/tr>\n<tr class=\"row-5\">\n\t<td class=\"column-1\">MTC.connect_time<\/td><td class=\"column-2\">The connect time for the current MTConnect poll<\/td>\n<\/tr>\n<tr class=\"row-6\">\n\t<td class=\"column-1\">MTC.prev_connect_time<\/td><td class=\"column-2\">The previous connect time<\/td>\n<\/tr>\n<tr class=\"row-7\">\n\t<td class=\"column-1\">MTC.connected_time<\/td><td class=\"column-2\">Returns the amount of time in seconds since a successful connection to the source<\/td>\n<\/tr>\n<tr class=\"row-8\">\n\t<td class=\"column-1\">MTC.prev_connected_time<\/td><td class=\"column-2\">The previous connected time<\/td>\n<\/tr>\n<tr class=\"row-9\">\n\t<td class=\"column-1\">SRC.connect_time<\/td><td class=\"column-2\">The connect time for the current SRC poll<\/td>\n<\/tr>\n<tr class=\"row-10\">\n\t<td class=\"column-1\">SRC.prev_connect_time<\/td><td class=\"column-2\">The previous connect time<\/td>\n<\/tr>\n<tr class=\"row-11\">\n\t<td class=\"column-1\">SRC.connected_time<\/td><td class=\"column-2\">Returns the amount of time in seconds since a successful connection to the source<\/td>\n<\/tr>\n<tr class=\"row-12\">\n\t<td class=\"column-1\">SRC.prev_connected_time<\/td><td class=\"column-2\">The previous connected time<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-10 from cache -->\n\n\n\n<p>There are also variables related to database Connectivity Status.<\/p>\n\n\n\n<table id=\"tablepress-11\" class=\"tablepress tablepress-id-11\">\n<tbody class=\"row-striping\">\n<tr class=\"row-1\">\n\t<td class=\"column-1\">PCSDB Connectivity<\/td><td class=\"column-2\">Returns the state of the connection (True or False)<\/td>\n<\/tr>\n<tr class=\"row-2\">\n\t<td class=\"column-1\">PCSDB Connectivity_status<\/td><td class=\"column-2\">Returns the most recent connectivity status as a numerical value 0-5.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-11 from cache -->\n\n\n\n<p>All of these variables are licensed at the <strong>Bronze<\/strong> level. <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" class=\"wp-image-86\" style=\"width: 16px; display: inline\" src=\"https:\/\/dxhelp.scytec.com\/wp-content\/uploads\/licenseicons\/licenseLevels_Bronze_16.png\" alt=\"\"><\/p>\n\n\n\n<p>The list of numerical values and which connection states they map to can be found <a href=\"https:\/\/dxhelp.scytec.com\/?epkb_post_type_1=connectivity-monitoring-and-the-rtv#connectivitydisplay\">here<\/a>.<br><br>Upon a successful connection to associated Source the current time is written to the connect time variable.\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview DataXchange can monitor the current connection time and return the value to the RTV. Information on expressions using these variables can be found here. Connection Time Monitoring There is a&nbsp;\u2018connect time\u2019&nbsp;variable for each source polled by DataXchange. Here is a list of all of the connect time variables. There are also variables related to [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"epkb_post_type_1_category":[18,104],"epkb_post_type_1_tag":[],"class_list":["post-163","epkb_post_type_1","type-epkb_post_type_1","status-publish","hentry","epkb_post_type_1_category-data-sources","epkb_post_type_1_category-variable-reference"],"_links":{"self":[{"href":"https:\/\/dxhelp.scytec.com\/index.php?rest_route=\/wp\/v2\/epkb_post_type_1\/163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dxhelp.scytec.com\/index.php?rest_route=\/wp\/v2\/epkb_post_type_1"}],"about":[{"href":"https:\/\/dxhelp.scytec.com\/index.php?rest_route=\/wp\/v2\/types\/epkb_post_type_1"}],"author":[{"embeddable":true,"href":"https:\/\/dxhelp.scytec.com\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/dxhelp.scytec.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=163"}],"version-history":[{"count":0,"href":"https:\/\/dxhelp.scytec.com\/index.php?rest_route=\/wp\/v2\/epkb_post_type_1\/163\/revisions"}],"wp:attachment":[{"href":"https:\/\/dxhelp.scytec.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=163"}],"wp:term":[{"taxonomy":"epkb_post_type_1_category","embeddable":true,"href":"https:\/\/dxhelp.scytec.com\/index.php?rest_route=%2Fwp%2Fv2%2Fepkb_post_type_1_category&post=163"},{"taxonomy":"epkb_post_type_1_tag","embeddable":true,"href":"https:\/\/dxhelp.scytec.com\/index.php?rest_route=%2Fwp%2Fv2%2Fepkb_post_type_1_tag&post=163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}