您可以使用策略规则来定义一些不同类型的阈值。部署具有相同阈值的多个策略规则时,规则的触发顺序依次是:消息操作规则、事件操作规则,最后是异常终止操作规则。
规则类型 1 | 规则项 2 | 运算符 3 | 单位 4 | 值 5 |
---|---|---|---|---|
数据库请求 |
SQL 命令 |
大于 |
|
|
文件请求 |
删除命令 |
大于 |
|
几个到上千个请求的这些值的范围适用于所有文件请求策略规则项。 |
程序请求 |
LINK 命令 注: INVOKE
APPLICATION 命令也包含在计数中,但不是独立的策略项。
|
大于 |
|
|
启动请求 |
START 命令 |
大于 |
|
|
存储器 |
24 位任务存储器 |
大于 |
|
24 位规则项:
31 位规则项:
64 位规则项:
|
存储器请求 |
24 位任务存储器请求 |
大于 |
|
几个到上千个请求的这些值的范围适用于所有存储器请求策略规则项。 |
同步点请求 |
SYNCPOINT 命令 |
大于 |
|
|
TD 队列请求 |
READQ TD 命令 |
大于 |
|
几个到上千个请求的这些值的范围适用于所有 TD 队列请求策略规则项。 |
时间 |
CPU 时间 |
大于 |
|
|
TS 队列字节 |
WRITEQ TS 命令 注:
|
大于 |
|
所有 TS 队列字节策略规则项都具有相同的值范围。 |
TS 队列请求 |
READQ TS 命令 注: READQ 和 WRITEQ 策略项用于为向辅助和主要 TSQ 组合发出的 READ 或 WRITE 请求总量设置阈值。其他 WRITEQ 策略项用于为向特定类型的 TSQ 发出的 WRITE 请求的数量设置阈值。
|
大于 |
|
几个到上千个请求的这些值的范围适用于所有 TS 队列请求策略规则项。 |
<?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>Example platform policy to monitor task storage and file read counts</description>
<userTag>exmp_1</userTag> thru <userTag>exmp_3</userTag>
<rule type="storage" 1 >
<name>TooMuch24BitStorage</name>
<description>Issue DFHMP3001 msg when a task allocate more than 1024 bytes of 24 bit task storage</description>
<storageUsedCondition item="task24" 2 operator="GT" 3 value="1" 5 unit="K" 4 />
<action>
<message/>
</action>
</rule>
<rule type="filerequest" 1 >
<name>TooManyReads</name>
<description>Issue DFHMP3001 msg when a task does more than 50 reads</description>
<fileRequestCondition item="read" 2 operator="GT" 3 value="50" 5 unit="" 4 />
<action>
<message/>
</action>
</rule>
</policy:policy>
<?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>Policy to monitor the number of file reads</description>
<userTag>fcpol_1</userTag>
<rule type="filerequest" 1 >
<name>File_Reads</name>
<description>Abend the task if the file read limit exceeded</description>
<fileRequestCondition item="read" 2 operator="GT" 3 value="10" 5 unit="K" 4 />
<action>
<abend/>
</action>
</rule>
<rule type="filerequest" 1 >
<name>File Write</name>
<description>Abend the task with specified abend code CFI1 if the file write limit exceeded</description>
<fileRequestCondition item="write" 2 operator="GT" 3 value="5" 5 unit="K" 4 />
<action>
<abend abendCode="CFI1"/>
</action>
</rule>
</policy:policy>
<?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>Policy to monitor the number of file reads</description>
<userTag>fcpol_1</userTag>
<rule type="filerequest" 1 >
<name>File Write</name>
<description>The file write limitation policy</description>
<fileRequestCondition item="write" 2 operator="GT" 3 value="500" 5 unit="" 4 />
<action>
<event>
<eventAdapterName>adapterB</eventAdapterName>
</event>
</action>
</rule>
<rule type="filerequest" 1 >
<name>File_Reads</name>
<description>File read limitation policy</description>
<fileRequestCondition item="read" 2 operator="GT" 3 value="100" 5 unit="" 4 />
<action>
<event>
<eventAdapterSetName>adaSetA</eventAdapterSetName>
</event>
</action>
</rule>
</policy:policy>