The assigned values for policy XML element names and attributes depends on the policy rule and action types.
rule_type 1 | condition_type 2 | rule_item 3 | unit 4 | action_type 5 |
---|---|---|---|---|
databaserequest |
databaseRequestCondition |
sqlcommand |
"" (no value) or K |
abend |
filerequest |
fileRequestCondition |
delete |
"" (no value) or K |
|
programrequest |
programRequestCondition |
link |
"" (no value) or K |
|
storage |
storageUsedCondition |
task24 |
"" (no value), B, K, M, or G |
|
storagerequest |
storageRequestCondition |
task24request |
"" (no value) or K |
|
time |
timeCondition |
cpulimit |
"" (no value), O, M, or S |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<policy:policy xmlns:policy="http://www.ibm.com/xmlns/prod/cics/managedplatform/policy" policySchemaRelease="0" policySchemaVersion="1">
<description>description_of_policy</description>
<userTag>tag_1</userTag>
<rule type="rule_type" 1 >
<name>name_of_rule</name>
<description>description_of_rule</description>
<condition_type 2 item="rule_item" 3 operator="GT" unit="unit" 4 value="0"/>
<action>
<action_type 5 />
</action>
</rule>
</policy:policy>
<abend abendCode="code"/>
where code is
the value of your abend code.<eventAdapterName>name</eventAdapterName>
or<eventAdapterSetName>name</eventAdapterSetName>
depending
on whether you want the event to be issued to an event adapter or
an event adapter set, and where name is the name
of the event adapter or event adapter set, as appropriate.