Forum Discussion

vishnu1994's avatar
vishnu1994
Icon for Altostratus rankAltostratus
Aug 17, 2022

Help needed for As3 Declaration

Hi,

I am trying to build a monitor using the AS3 Template and need \"STATUS\":\"allServicesOperative\" as my receive string 

if use the below code after deploying it removed all the " marks and deploys as STATUS:allServicesOperative

Monitor Declaration

"random.xyz.com_monitor": {
                    "class": "Monitor",
                    "interval": 5,
                    "timeout": 16,
                    "receive": "\"STATUS\":\"allServicesOperative\"",
                    "send": "GET /status/api/health HTTP/1.1\r\nHost: random.xyz.com\r\nConnection: Close\r\n\r\n",
                    "monitorType": "https"
                    }
  •  "receive""\"STATUS\":\"allServicesOperative\"", will removed all the " marks and deploys as STATUS:allServicesOperative

    chang to this "receive""\\\"STATUS\\\":\\\"allServicesOperative\\\"",
    in the GUI the result will be \"STATUS\":\"allServicesOperative\"
    you can enable AS3 controls.trace, controls.traceResponse, set its value to true and watch tmsh config process