Gateway status query

Gateway status query

@Steven Flaxman


I would like to query my gateway status and send a notification when its offline.

I have googled and tried many iterations of the code below but I suspect I’m missing something. I cant figure out how to include the gateway API and I’m sure I have the TTI url wrong.

Has anyone managed to do this and could you please help me with my code.

const { Analysis } = require("@tago-io/sdk");
const axios = require("axios");

function getData() {
      const response = axios ({
      url: "",
      method: "GET"


// The function myAnalysis will run when you execute your analysis
function myAnalysis(context, scope) {

module.exports = new Analysis(myAnalysis);