{
  "productInfo" : {
    "company" : "HighByte",
    "product" : "IntelligenceHub",
    "version" : "4.4.1",
    "build" : "2026.4.14.7",
    "stage" : "Release"
  },
  "project" : {
    "version" : 13,
    "connections" : [ {
      "name" : "canary",
      "uri" : "rest.client://canary",
      "tags" : [ "starter_canary" ],
      "writes" : {
        "flattenModeledValues" : false
      },
      "writeThrottle" : {
        "enabled" : false,
        "maxBatchSizePerTarget" : 1000,
        "batchDelay" : {
          "duration" : 20,
          "units" : "Milliseconds"
        }
      },
      "subscriptions" : { },
      "storeForward" : {
        "enabled" : false,
        "maxEntries" : 100,
        "waitOnFailureInterval" : {
          "duration" : 1,
          "units" : "Seconds"
        }
      },
      "settings" : {
        "authentication" : {
          "type" : "Bearer Token",
          "options" : {
            "token" : "{{System.Variables.canary_token}}"
          }
        },
        "baseURL" : "https://{{System.Variables.canary_host_port}}/api/v2",
        "ignoreCertificate" : true
      }
    } ],
    "inputs" : [ {
      "name" : "canary_input_metadata_tags",
      "connection" : "canary",
      "type" : "rest.client",
      "qualifier" : {
        "acceptType" : "*/*",
        "method" : "GET",
        "contentType" : "application/json",
        "includeMetadata" : false,
        "endpointURL" : "/getTagProperties?deep=true&path=Roadshow - Water District.CanaryWater&search=Pump",
        "isFile" : false
      },
      "cacheLifetime" : {
        "enabled" : false
      },
      "template" : {
        "type" : "Off"
      },
      "parameters" : {
        "type" : "EmptyParameters"
      }
    }, {
      "name" : "canary_input_tag_list",
      "connection" : "canary",
      "type" : "rest.client",
      "qualifier" : {
        "acceptType" : "*/*",
        "method" : "GET",
        "contentType" : "application/json",
        "includeMetadata" : false,
        "endpointURL" : "/browseTags?path=Roadshow - Water District.CanaryWater&search=Pump&deep=true",
        "isFile" : false
      },
      "cacheLifetime" : {
        "enabled" : true,
        "interval" : {
          "duration" : 1,
          "units" : "Days"
        }
      },
      "template" : {
        "type" : "Off"
      },
      "parameters" : {
        "type" : "EmptyParameters"
      }
    } ],
    "outputs" : [ ],
    "modeling" : {
      "models" : [ {
        "name" : "starter_metadata_tags",
        "description" : "This is an example provide for modeling historian tag metadata. It is a component of a starter solution.\n",
        "groupAs" : "/starter_hist_read_metadata_tags",
        "tags" : [ "starter_canary", "starter_ip21", "starter_pi_da" ],
        "attributes" : [ {
          "attributeType" : "Internal",
          "name" : "tagID",
          "nullable" : false,
          "required" : true,
          "array" : false,
          "internalType" : "String"
        }, {
          "attributeType" : "Internal",
          "name" : "tagDescription",
          "nullable" : false,
          "required" : false,
          "array" : false,
          "internalType" : "String"
        }, {
          "attributeType" : "Internal",
          "name" : "tagDataType",
          "nullable" : false,
          "required" : false,
          "array" : false,
          "internalType" : "String"
        }, {
          "attributeType" : "Internal",
          "name" : "tagUoM",
          "nullable" : false,
          "required" : false,
          "array" : false,
          "internalType" : "String"
        }, {
          "attributeType" : "Internal",
          "name" : "tagLow",
          "nullable" : false,
          "required" : false,
          "array" : false,
          "internalType" : "Any"
        }, {
          "attributeType" : "Internal",
          "name" : "tagHigh",
          "nullable" : false,
          "required" : false,
          "array" : false,
          "internalType" : "Any"
        }, {
          "attributeType" : "Internal",
          "name" : "source",
          "nullable" : false,
          "required" : false,
          "array" : false,
          "internalType" : "String"
        }, {
          "attributeType" : "Internal",
          "name" : "time",
          "nullable" : false,
          "required" : false,
          "array" : false,
          "internalType" : "DateTime"
        } ]
      } ],
      "instances" : [ ]
    },
    "conditions" : [ ],
    "functions" : [ ],
    "tags" : [ {
      "name" : "starter_canary"
    } ],
    "pipelines" : [ {
      "name" : "starter_output_canary_metadata_tags_to_mqtt",
      "description" : "This Pipeline obtains tag metadata from Canary Historian and models the data before publishing the data to the Intelligence Hub MQTT Broker. ",
      "groupAs" : "/starter_hist_read_metadata_tags",
      "tags" : [ "starter_canary" ],
      "inputStages" : [ "read_canary_data" ],
      "stages" : [ {
        "name" : "breakup_object",
        "display" : {
          "position" : {
            "x" : 1140,
            "y" : 0
          }
        },
        "description" : "",
        "config" : {
          "type" : ".BreakupConfig",
          "breakupType" : "object",
          "depth" : 1
        },
        "outputs" : [ "apply_model" ]
      }, {
        "name" : "apply_model",
        "display" : {
          "position" : {
            "x" : 1590,
            "y" : 0
          }
        },
        "description" : "This Stage applies the desired schema for the tag payload.",
        "config" : {
          "type" : ".ModelConfig",
          "model" : "starter_metadata_tags",
          "objectName" : "",
          "initExpression" : "",
          "attributes" : [ {
            "name" : "tagID",
            "expression" : {
              "type" : "PipelineStageReference",
              "stageReference" : "event.metadata.breakupName"
            }
          }, {
            "name" : "tagDescription",
            "expression" : {
              "type" : "PipelineStageReference",
              "stageReference" : "event.value.Description"
            }
          }, {
            "name" : "tagDataType",
            "expression" : {
              "type" : "PipelineStageReference",
              "stageReference" : "event.value[\"Data Type\"]"
            }
          }, {
            "name" : "tagUoM",
            "expression" : {
              "type" : "PipelineStageReference",
              "stageReference" : ""
            },
            "defaultValue" : "Unknown"
          }, {
            "name" : "tagLow",
            "expression" : {
              "type" : "PipelineStageReference",
              "stageReference" : "event.value[\"Default Low Scale\"]"
            }
          }, {
            "name" : "tagHigh",
            "expression" : {
              "type" : "PipelineStageReference",
              "stageReference" : "event.value[\"Default High Scale\"]"
            }
          }, {
            "name" : "source",
            "expression" : {
              "type" : "PipelineStageReference",
              "stageReference" : ""
            },
            "defaultValue" : "Canary"
          }, {
            "name" : "time",
            "expression" : {
              "type" : "PipelineStageReference",
              "stageReference" : "event.timestamp"
            }
          } ]
        },
        "outputs" : [ "size_buffer" ]
      }, {
        "name" : "size_buffer",
        "display" : {
          "position" : {
            "x" : 2040,
            "y" : 0
          }
        },
        "description" : "A buffer Stage is often used before writing data to a Data Lake or Data Warehouse.",
        "config" : {
          "type" : ".SizedBufferConfig",
          "windowExpression" : "stage.setBufferKey(null);",
          "windowSize" : 150,
          "timeout" : {
            "duration" : 30,
            "units" : "Seconds"
          }
        },
        "outputs" : [ "to_mqtt" ]
      }, {
        "name" : "elevate_properties",
        "display" : {
          "position" : {
            "x" : 690,
            "y" : 0
          }
        },
        "description" : "Focus on the Properties object in the payload.",
        "config" : {
          "type" : ".JavaScriptTransformConfig",
          "transformExpression" : "stage.setValue(event.value.properties);"
        },
        "outputs" : [ "breakup_object" ]
      }, {
        "name" : "read_canary_data",
        "display" : {
          "position" : {
            "x" : 240,
            "y" : 0
          }
        },
        "description" : "This Stage reads data from Canary.",
        "config" : {
          "type" : ".ReadConfig",
          "failureOutputs" : [ ],
          "reference" : {
            "type" : "Input",
            "name" : "canary_input_metadata_tags",
            "path" : "",
            "params" : { },
            "connectionName" : "canary"
          }
        },
        "outputs" : [ "elevate_properties" ]
      }, {
        "name" : "to_mqtt",
        "display" : {
          "position" : {
            "x" : 2490,
            "y" : 0
          }
        },
        "description" : "This Stage publishes the payload to the Intelligence Hub MQTT broker which is being used in this case to allow easy visualization of the output.",
        "config" : {
          "type" : ".DynamicWriteConfig",
          "failureOutputs" : [ ],
          "connectionReference" : "{{Connection.mqtt}}",
          "qualifier" : {
            "topic" : "Metadata_Tag_Canary",
            "qos" : 0,
            "namedRoot" : false,
            "retained" : false,
            "breakupArrays" : false,
            "filterList" : [ "_name", "_model", "_timestamp" ]
          },
          "qualifierExpression" : "",
          "writeReturn" : "ignore"
        },
        "outputs" : [ ]
      } ],
      "trackActivity" : false,
      "triggers" : [ {
        "name" : "polled_trigger",
        "display" : {
          "position" : {
            "x" : -450,
            "y" : 0
          }
        },
        "description" : "A tag metadata Pipeline typically runs infrequently.   Perhaps every few hours or fractions of a day. ",
        "config" : {
          "type" : ".TriggerPolled",
          "enabled" : false,
          "interval" : {
            "duration" : 8,
            "units" : "Hours"
          },
          "mode" : "interval"
        }
      } ],
      "errorHandler" : {
        "type" : "default"
      }
    } ],
    "namespace" : [ ]
  },
  "network" : {
    "groups" : [ ],
    "hubs" : [ ]
  }
}