How to call an alert in another?

How can I do to call a watch in another, so I had it in my code but it does not serve me need to call an alert to this, to make a condition that if you run that make an action in this. I am confused about this because there is very little information about the alerts.

{
  "trigger": {
    "schedule": {
      "interval": "24h"
    }
  },
  "input": {
      "chain":{
          "inputs":[
              {
                  "first":{
                      "watch_id": "iGCYyGCcTPKAXtFYnqXWJA_elasticsearch_cluster_status",
                      "state" : "executed"
                  },
                  "second":{
                      "transform" : {
            "script" : "return [ 'watch_id' : ctx.payload.first.watch_id ]"
                  }
                  }
              }
              ]
      },

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.