Adds the default limit or query limit for a specific state. This step is repeated for each state, if necessary. At least one of these calls must specify the default limit.
This XSP is intended to support any TASM rule types (for example, throttle, arrival rate meter, workload, filter, and so on). However, only system throttle, arrival rate meter, and filter are supported in this release.
Syntax
REPLACE PROCEDURE TDWM.TDWMAddLimitForRuleState ( IN RulesetName TD_ANYTYPE, IN RuleName TD_ANYTYPE, IN StateName TD_ANYTYPE, IN Description TD_ANYTYPE, IN StateLimit VARCHAR(50) CHARACTER SET LATIN, IN Action VARCHAR(6) CHARACTER SET LATIN, IN ReplaceOption CHAR(1) CHARACTER SET LATIN ) ... ;
Syntax Elements
- RulesetName
- Name of the ruleset that contains the RuleName. Use ‘ALLRULESETS’ to add limit for the specified rule state in all existing rulesets. Cannot be null and its length must be between 1 and 30.
- RuleName
- Name of the throttle to add the limit. The specified name must be unique among all existing TASM rules: throttles, arrival rate meters, workloads, filters, and so on. Cannot be null and the length must be between 1 and 30.
- StateName
- Name of the state of the RuleName to add the limit. ‘DEFAULT’ is reserved for the default limit that is used for any state that does not have a specific limit. A combination of RulesetName, RuleName, and StateName uniquely identifies a specific rule state. If RulesetName is ‘ALLRULESETS’, the limit is added for the same StateName of the same RuleName in all existing rulesets.
- Description
- Description of the state limit. Description can be null. The maximum length is 80.
- StateLimit
- This parameter is ignored if the rule type is filter. For other rule types, the parameter specifies the limit of a state.
- Action
- Action to take for the specified state.These actions are mutually exclusive.
- ReplaceOption
- 'Y' = Delete the all existing limits of the specified state and add a new state limit. If the specified state does not exist or does not have any sub-criteria, an error is returned.
- 'N' = Add the specified state limit. If the specified state has a limit, an error is returned.