Creating Analysis

Creating Analysis


Creating your own analysis is easy. First, click on Analysis on the sidebar, then click the + Add Analysis button in the upper right of the analysis main screen. Just write a name and you’re ready to go!


1. Name

What you usually use to identify your analysis. You can use whitespaces, numbers and any other character for this field. 



2. Runtime Version

This is the programming language used in the scripts of your analysis. Currently we support DenoPython and Node.js if you run your script on TagoIO.

Alert
You are not able to change the runtime of your analysis once it's created.


3. Run this script from

This field identifies where your script will be running. By default TagoIO offers to run your script on our servers. If you select the external option on the Run this script from field, we provide Python SDKJavascript SDK for Deno and NodeJS so you can run the analysis directly from your machine.

Alert
When changing between External mode and TagoIO mode, it's important to note that the Analysis Token will be reset and new token will be generated.


4. Code example

You can select a code example when you are creating your analysis to start off with a real world example. This is highly recommended if you are a beginner, as they give you more insight and a better view on the functions and the scopes of the script.

InfoYou can only select one of these code examples if you are running your script on TagoIO.


Other fields

Once your press the button to create your analysis you will be redirected to a new page. There are a couple more fields there that are worth mentioning.

Time interval

You can trigger your analysis script manually, but you can also define a time interval to automatically trigger your analysis. In this field you will find a couple of predefined time options, but you can also set your own custom time interval by selecting the option Custom.



Analysis Token

This field is only used if you are running your analysis as external. If you want more information on how the token works, check out the article Running Analysis as External using Node.JS.


    • Related Articles

    • Running Analysis as External using Deno

      Analysis enables you to create powerful applications on TagoIO. When creating an Analysis, you can choose between running it at TagoIO or External, which means running it on your own infrastructure. Running Analysis externally with Deno provides ...
    • Running Analysis as External using Node.JS

      Analysis is what allows you to create powerful applications on TagoIO. When creating analysis you have to choose between running it at TagoIO or External, which means that you will run on your machine. You can choose to run the analysis on an ...
    • Analysis Overview

      Analysis lets you run custom code inside TagoIO to process data in real time, call third‑party APIs, and work with your own TagoIO resources. Common things people do with Analyses: Convert units and run math on variables Write new values into other ...
    • Distributing analysis

      You can create a copy of your analysis and send a link to anyone so they can add a copy to their account through a customized install page. They will be able to edit the analysis as they wish. Others will be able to edit the analysis that they ...
    • Analysis Service

      Every time the Analysis runs one script, its runtime duration is counted against the limit in that specific Profile (increment of 1 second). This limit defines the total available runtime your Analyses can have to run inside TagoIO. For example: if ...