The monitorSetRuleUpdated Web API Method
Cause monitor rules to be applied to the monitor extension.
Version: 1.3
Required Permissions: Full
HTTP method: POST
Supported by Editions: Zend
Server
Request Parameters: None
Expected Response Code: 202 Accepted
Response Type: A list of the rule elements that were modified/added
Possible Action Specific Error Codes: This action has no specific error codes
Example
|
Request (headers removed for the purpose of clarity)POST/ZendServer/Api/monitorSetRuleUpdated
Response (not all headers are shown)<?xml version="1.0" encoding="UTF-8"?> <zendServerAPIResponse xmlns="http://www.zend.com/server/api/1.0"> <requestData> <apiKeyName>angel.eyes</apiKeyName> <method>monitorSetRuleUpdated</method> </requestData> <responseData> <rules> <rule> <ruleProperties> <rule_type_id>function-error</rule_type_id> <name><![CDATA[Database Error Rule]]></name> <description><![CDATA[Triggered when one ...]]></description> <enabled>Yes</enabled> <url><![CDATA[]]></url> </ruleProperties> <ruleConditions> <condition> <operation>string-in-list</operation> <attribute>function-name</attribute> <operand>mssql_connect|mssql_execute|....|db2_exec</operand> </condition> </ruleConditions> <ruleTriggers> <trigger> <triggerProperties> <severity>1</severity> </triggerProperties> <triggerConditions> <condition> <operation>number-greater-than</operation> <attribute>mem-usage</attribute> <operand>8192</operand> </condition> <condition> <operation>number-greater-than</operation> <attribute>mem-usage-....-change</attribute> <operand>60</operand> </condition> </triggerConditions> <triggerActions> </triggerActions> </trigger> </ruleTriggers> </rule> </rules> </responseData> </zendServerAPIResponse>
|