cancel
Showing results for 
Search instead for 
Did you mean: 

Help needed for As3 Declaration

vishnu1994
Altostratus
Altostratus

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"
                    }
1 ACCEPTED SOLUTION

xuwen
Cirrostratus
Cirrostratus

 "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

View solution in original post

3 REPLIES 3

Hello @vishnu1994,

No tested before, but base on this doc I would try it putting quotes without scaping them

https://clouddocs.f5.com/products/extensions/f5-appsvcs-extension/latest/refguide/understanding-the-...

 

Regards,
Dario.

xuwen
Cirrostratus
Cirrostratus

 "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

Thank you for the reply, I will validate and update