This API allows you to edit the values configured in the URL Monitors.
https://[HOST]:[PORT]/AppManager/xml/EditMonitor?apikey=[APIKEY]&type=UrlMonitor&resourceid=[RESOURCEID]
Supported HTTP method: POST
Allowed roles: Administrator
| Field | Description |
|---|---|
| apikey | The Applications Manager key generated in the Settings -> REST API tab. |
| resourceID | The resourceid of the URL monitor that you are going to edit. |
| displayname | The display name of the HTTP-URL monitor. |
| url | The HTTP/HTTPS URL address that you want to monitor. |
| checkForContent | The keyword for content matching. The URL monitoring searches the keyword in the content of the URL page to check the availability of the URL. This field is optional. |
| errorIfMatch | The keyword which when matches with the content in the URL must be notified of error . Note: The search is case sensitive. Multiple keywords should be put within quotes. Otherwise, it will be treated as 'Any' one of the multiple keywords. |
| httpCondition | The condition/criteria of the Response Code with respect to the httpValue at which error should be notified. Possible values are:
|
| httpValue | The threshold value with respect to which the httpCondition should be met. |
| pollInterval | The polling interval for which Applications Manager updates the status of the monitor, in minutes. |
| requestParams | The request parameters. For example, if you want to monitor a URL like http://appmanager:9090/showresource.do?haid=1&type=UrlMonitor&method=getMonitorForm, then provide "?haid=1&type=UrlMonitor&method=getMonitorForm" as request parameter. |
| timeout | The timeout value of the monitored URL, in seconds. |
| urlMethod | Choose between the Post and Get method, which are the two types of Form method for any HTTP/HTTPS URL. Possible values are:
|
| username | The username of the URL if it requires Basic/NTLM authentication. |
| password | The password of the URL if it requires Basic/NTLM authentication. |
| verifyError | Specify if want the monitor to immediately be scheduled to run again for verification, when an error is detected. Possible values are:
|
| payload | Specify the payload type for the POST form submission method using the following options: (F)ORM, (T)ext, (X)ML, (J)SON. Please use the corresponding values: F for Form, T for Text, X for XML, and J for JSON. |
| checkForContent | The content to be searched while performing the content check in the URL response. |
| Other Common APIs |
https://apm-prod-server:8443/AppManager/xml/EditMonitor?apikey=aaaaaabbbbbbccccccddddddeeeeee&type=UrlMonitor&resourceid=10000657https://apm-prod-server:8443/AppManager/xml/EditMonitor?apikey=aaaaaabbbbbbccccccddddddeeeeee&type=UrlMonitor&displayname=APM-URL-Monitorhttps://apm-prod-server:8443/AppManager/xml/EditMonitor?apikey=aaaaaabbbbbbccccccddddddeeeeee&type=UrlMonitor&url= http://www.zohocorp.comhttps://apm-prod-server:8443/AppManager/xml/EditMonitor?apikey=aaaaaabbbbbbccccccddddddeeeeee&type=UrlMonitor&displayname=APM-URL-Monitor&httpCondition=GT&httpValue=200It allows us to track crucial metrics such as response times, resource utilization, error rates, and transaction performance. The real-time monitoring alerts promptly notify us of any issues or anomalies, enabling us to take immediate action.
Reviewer Role: Research and Development