diff options
Diffstat (limited to 'data/en_us/ahas-openapi/2019-09-01/api-docs.php')
| -rw-r--r-- | data/en_us/ahas-openapi/2019-09-01/api-docs.php | 9406 |
1 files changed, 2617 insertions, 6789 deletions
diff --git a/data/en_us/ahas-openapi/2019-09-01/api-docs.php b/data/en_us/ahas-openapi/2019-09-01/api-docs.php index d97d301..711c895 100644 --- a/data/en_us/ahas-openapi/2019-09-01/api-docs.php +++ b/data/en_us/ahas-openapi/2019-09-01/api-docs.php @@ -1,219 +1,130 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'ahas-openapi', - 'version' => '2019-09-01', - ], + 'info' => ['style' => 'RPC', 'product' => 'ahas-openapi', 'version' => '2019-09-01'], 'directories' => [ [ - 'id' => 43866, - 'title' => null, + 'children' => ['ListActiveApps', 'OpenAhasService'], 'type' => 'directory', - 'children' => [ - 'DescribeRegions', - 'GetLicenseKey', - 'ListActiveApps', - 'OpenAhasService', - ], + 'title' => 'Service', ], [ - 'id' => 43884, - 'title' => null, + 'children' => ['GetMetricsOfApp', 'GetSentinelAppSumMetric', 'GetMetricsOfResource'], 'type' => 'directory', - 'children' => [ - 'GetMetricsOfApp', - 'GetSentinelAppSumMetric', - 'GetMetricsOfResource', - ], + 'title' => 'Monitoring', ], [ - 'id' => 43888, - 'title' => null, + 'children' => ['CreateFlowRule', 'DeleteFlowRule', 'EnableFlowRule', 'DisableFlowRule', 'ModifyFlowRule', 'ListFlowRulesOfApp', 'ListFlowRulesOfResource'], 'type' => 'directory', - 'children' => [ - 'CreateFlowRule', - 'DeleteFlowRule', - 'EnableFlowRule', - 'DisableFlowRule', - 'ModifyFlowRule', - 'ListFlowRulesOfApp', - 'ListFlowRulesOfResource', - ], + 'title' => 'Throttling rules', ], [ - 'id' => 43896, - 'title' => null, + 'children' => ['CreateDegradeRule', 'DeleteDegradeRule', 'EnableDegradeRule', 'DisableDegradeRule', 'ListDegradeRulesOfApp', 'ListDegradeRulesOfResource', 'ModifyDegradeRule'], 'type' => 'directory', - 'children' => [ - 'CreateDegradeRule', - 'DeleteDegradeRule', - 'EnableDegradeRule', - 'DisableDegradeRule', - 'ListDegradeRulesOfApp', - 'ListDegradeRulesOfResource', - 'ModifyDegradeRule', - ], + 'title' => 'Circuit breaking rules', ], [ - 'id' => 43904, - 'title' => null, + 'children' => ['CreateIsolationRule', 'DeleteIsolationRule', 'EnableIsolationRule', 'DisableIsolationRule', 'ListIsolationRulesOfApp', 'ListIsolationRulesOfResource', 'ModifyIsolationRule'], 'type' => 'directory', - 'children' => [ - 'CreateIsolationRule', - 'DeleteIsolationRule', - 'EnableIsolationRule', - 'DisableIsolationRule', - 'ListIsolationRulesOfApp', - 'ListIsolationRulesOfResource', - 'ModifyIsolationRule', - ], + 'title' => 'Isolation rules', ], [ - 'id' => 43912, - 'title' => null, + 'children' => ['CreateSystemRule', 'DeleteSystemRule', 'EnableSystemRule', 'DisableSystemRule', 'ListSystemRules', 'ModifySystemRule'], 'type' => 'directory', - 'children' => [ - 'CreateSystemRule', - 'DeleteSystemRule', - 'EnableSystemRule', - 'DisableSystemRule', - 'ListSystemRules', - 'ModifySystemRule', - ], + 'title' => 'System rules', ], [ - 'id' => 43919, - 'title' => null, + 'children' => ['CreateHotParamRule', 'CreateHotParamItems', 'DeleteHotParamRule', 'EnableHotParamRule', 'DisableHotParamRule', 'ListHotParamRulesOfApp', 'ListHotParamRulesOfResource', 'ModifyHotParamRule'], + 'type' => 'directory', + 'title' => 'Hotspot rules', + ], + [ + 'children' => ['DescribeRegions', 'GetLicenseKey'], + 'title' => 'Others', 'type' => 'directory', - 'children' => [ - 'CreateHotParamRule', - 'CreateHotParamItems', - 'DeleteHotParamRule', - 'EnableHotParamRule', - 'DisableHotParamRule', - 'ListHotParamRulesOfApp', - 'ListHotParamRulesOfResource', - 'ModifyHotParamRule', - ], ], ], 'components' => [ 'schemas' => [], ], 'apis' => [ - 'DescribeRegions' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateDegradeRule' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', - 'systemTags' => [ - 'operationType' => 'list', - 'abilityTreeCode' => '20659', - 'abilityTreeNodes' => [ - 'FEATUREahasF8SZSQ', - ], - ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [], 'parameters' => [ [ - 'name' => 'AcceptLanguage', + 'name' => 'Namespace', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['description' => 'The AHAS namespace. Default value: default. You can create different namespaces in the console for logically isolated environments.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'default', 'title' => ''], ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], - 'Regions' => [ - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'LocalName' => [ - 'type' => 'string', - ], - 'RegionEndpoint' => [ - 'type' => 'string', - ], - 'RegionId' => [ - 'type' => 'string', - ], - ], - ], - ], - 'Code' => [ - 'type' => 'string', - ], - 'Success' => [ - 'type' => 'boolean', - ], - ], - ], + [ + 'name' => 'AppName', + 'in' => 'query', + 'schema' => ['description' => 'The application name (do not use Chinese characters). If the application is an Enterprise Distributed Application Service (EDAS) application, set AppName to the App ID in EDAS. You can view the App ID on the Basic Information tab of the application details page in the EDAS console.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ahas-demo', 'title' => ''], ], - ], - 'responseDemo' => null, - ], - 'GetLicenseKey' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'Resource', + 'in' => 'query', + 'schema' => ['description' => 'The name of the REST or RPC interface. The name must conform to the REST or RPC interface format specification.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'handleService', 'title' => ''], ], - ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'abilityTreeCode' => '20678', - 'abilityTreeNodes' => [ - 'FEATUREahasF8SZSQ', + [ + 'name' => 'Strategy', + 'in' => 'query', + 'schema' => ['description' => 'The threshold type, which specifies the circuit breaking strategy. Valid values:'."\n" + .'- 0: slow call ratio.'."\n" + .'- 1: exception ratio.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '0', 'title' => ''], ], - ], - 'parameters' => [ [ - 'name' => 'Namespace', + 'name' => 'Threshold', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['description' => 'The circuit breaking threshold corresponding to the threshold type. Circuit breaking is triggered for the interface when this value is exceeded.', 'type' => 'number', 'format' => 'float', 'required' => true, 'docRequired' => true, 'example' => '0.6', 'title' => ''], + ], + [ + 'name' => 'Enable', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether to enable the rule. Default value: false.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''], + ], + [ + 'name' => 'RecoveryTimeoutMs', + 'in' => 'query', + 'schema' => ['description' => 'The circuit breaking duration. During this period, all requests to the interface fail immediately. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '5000', 'title' => ''], + ], + [ + 'name' => 'StatDurationMs', + 'in' => 'query', + 'schema' => ['description' => 'The statistical window duration. Unit: milliseconds. Default value: 1000.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2000', 'title' => ''], + ], + [ + 'name' => 'SlowRtMs', + 'in' => 'query', + 'schema' => ['description' => 'The slow call response time (RT). A request is counted as a slow call if its response time exceeds this value. This parameter is required when the threshold type is set to slow call ratio.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2000', 'title' => ''], + ], + [ + 'name' => 'MinRequestAmount', + 'in' => 'query', + 'schema' => ['description' => 'The minimum number of requests required to trigger circuit breaking. If the number of requests in the current statistical window is less than this value, the rule is not triggered even if the circuit breaking condition is met. Default value: 5.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''], + ], + [ + 'name' => 'HalfOpenBaseAmountPerStep', + 'in' => 'query', + 'schema' => ['description' => 'The minimum number of requests allowed per step during circuit breaking recovery. Default value: 5.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '5', 'title' => ''], + ], + [ + 'name' => 'HalfOpenRecoveryStepNum', + 'in' => 'query', + 'schema' => ['description' => 'The number of steps in the circuit breaking recovery phase. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -221,205 +132,215 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'type' => 'string', - ], - 'Code' => [ - 'type' => 'string', - ], - 'Success' => [ - 'type' => 'boolean', + 'description' => 'The rule data.', + 'type' => 'object', + 'properties' => [ + 'SlowRtMs' => ['description' => 'The slow call response time (RT).', 'type' => 'integer', 'format' => 'int32', 'example' => '2000', 'title' => ''], + 'HalfOpenRecoveryStepNum' => ['description' => 'The number of steps in the circuit breaking recovery phase.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'StatDurationMs' => ['description' => 'The statistical window duration.', 'type' => 'integer', 'format' => 'int32', 'example' => '2000', 'title' => ''], + 'RuleId' => ['description' => 'The rule ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''], + 'Strategy' => ['description' => 'The threshold type.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Resource' => ['description' => 'The resource name.', 'type' => 'string', 'example' => 'handleService', 'title' => ''], + 'AppName' => ['description' => 'The application name. If the application is an EDAS application, AppName is the App ID in EDAS. You can view the App ID on the Basic Information tab of the application details page in the EDAS console.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'HalfOpenBaseAmountPerStep' => ['description' => 'The minimum number of requests allowed per step during circuit breaking recovery. Default value: 5.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''], + 'RecoveryTimeoutMs' => ['description' => 'The circuit breaking duration.', 'type' => 'integer', 'format' => 'int32', 'example' => '5000', 'title' => ''], + 'MinRequestAmount' => ['description' => 'The minimum number of requests required to trigger circuit breaking.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], + 'Threshold' => ['description' => 'The circuit breaking threshold.', 'type' => 'number', 'format' => 'float', 'example' => '0.6', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + ], + 'title' => '', + 'example' => '', ], + 'Code' => ['description' => 'The error code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument', - 'errorMessage' => 'The specified parameter is invalid.', - ], + ['errorCode' => 'IllegalArgument.AppName', 'errorMessage' => 'The specified AppName is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.HalfOpenBaseAmountPerStep', 'errorMessage' => 'The specified HalfOpenBaseAmountPerStep is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.HalfOpenRecoveryStepNum', 'errorMessage' => 'The specified HalfOpenRecoveryStepNum is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.MinRequestAmount', 'errorMessage' => 'The specified MinRequestAmount is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Namespace', 'errorMessage' => 'The specified Namespace is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.RecoveryTimeoutMs', 'errorMessage' => 'The specified RecoveryTimeoutMs is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Resource', 'errorMessage' => 'The specified Resource is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.SlowRtMS', 'errorMessage' => 'The specified SlowRtMs is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.StatDurationMs', 'errorMessage' => 'The specified StatDurationMs is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Strategy', 'errorMessage' => 'The specified Strategy is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Threshold', 'errorMessage' => 'The specified Threshold is invalid.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"SlowRtMs\\": 2000,\\n \\"HalfOpenRecoveryStepNum\\": 1,\\n \\"Namespace\\": \\"default\\",\\n \\"StatDurationMs\\": 2000,\\n \\"RuleId\\": 1,\\n \\"Strategy\\": 0,\\n \\"Resource\\": \\"handleService\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"HalfOpenBaseAmountPerStep\\": 5,\\n \\"RecoveryTimeoutMs\\": 5000,\\n \\"MinRequestAmount\\": 10,\\n \\"Threshold\\": 0.6,\\n \\"Enable\\": true\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Create a circuit breaking rule', + 'summary' => 'Creates a circuit breaking rule by calling the CreateDegradeRule operation.', + 'requestParamsDescription' => ' For detailed parameter description, see [Circuit breaking rules](https://help.aliyun.com/document_detail/101078.html).', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateDegradeRule'], ], ], - 'responseDemo' => null, ], - 'ListActiveApps' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateFlowRule' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ 'name' => 'Namespace', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['description' => 'The namespace.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'default', 'title' => ''], ], [ - 'name' => 'AppType', + 'name' => 'AppName', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'docRequired' => true, - 'maximum' => '2147483647', - 'minimum' => '0', - ], + 'schema' => ['description' => 'The application name. If the application is an EDAS application, set AppName to the App ID in EDAS. You can view the corresponding ID on the **Application Management > Basic Information** page in the EDAS console.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ahas-demo', 'title' => ''], ], [ - 'name' => 'AhasRegionId', + 'name' => 'RelationStrategy', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['description' => 'The statistical dimension. Valid values: 0: current interface. 1: associated interface. 2: chain entrance.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '0', 'title' => ''], ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], - 'Data' => [ - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'AppName' => [ - 'type' => 'string', - ], - 'LastHealthPingTime' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'CurrentLevel' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'Namespace' => [ - 'type' => 'string', - ], - 'AppType' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'DirtyLevel' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'AhasAppName' => [ - 'type' => 'string', - ], - ], - ], - ], - 'Code' => [ - 'type' => 'string', - ], - 'Success' => [ - 'type' => 'boolean', - ], - ], - ], + [ + 'name' => 'Threshold', + 'in' => 'query', + 'schema' => ['description' => 'The threshold of the flow control rule. The value must be an integer greater than or equal to 0.', 'type' => 'number', 'format' => 'float', 'required' => true, 'docRequired' => true, 'example' => '50', 'title' => ''], ], - ], - 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'IllegalArgument', - 'errorMessage' => 'The specified parameter is invalid.', - ], + [ + 'name' => 'Enable', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether to enable the rule. Default value: false.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''], ], - ], - 'responseDemo' => null, - ], - 'OpenAhasService' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'Resource', + 'in' => 'query', + 'schema' => ['description' => 'The resource name. The value cannot exceed 1024 characters and must correspond to the resource name on the interface details page.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'handleServiceA', 'title' => ''], ], [ - 'APP' => [], + 'name' => 'LimitOrigin', + 'in' => 'query', + 'schema' => ['description' => 'The source application. Default value: default.', 'type' => 'string', 'required' => false, 'example' => 'default', 'title' => ''], ], [ - 'PrivateKey' => [], + 'name' => 'RefResource', + 'in' => 'query', + 'schema' => ['description' => 'The associated interface name or entrance resource name. This parameter is required when RelationStrategy is set to 1 (associated interface) or 2 (chain entrance).', 'type' => 'string', 'required' => false, 'example' => 'handleServiceB', 'title' => ''], ], [ - 'BearerToken' => [], + 'name' => 'ControlBehavior', + 'in' => 'query', + 'schema' => ['description' => 'The flow control effect. Valid values: 0: fast failure. 1: warm-up. 2: queuing.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '0', 'title' => ''], + ], + [ + 'name' => 'WarmUpPeriodSec', + 'in' => 'query', + 'schema' => ['description' => 'The warm-up period, in seconds. This parameter is required when ControlBehavior is set to 1 (warm-up).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30', 'title' => ''], + ], + [ + 'name' => 'MaxQueueingTimeMs', + 'in' => 'query', + 'schema' => ['description' => 'The timeout period, in milliseconds. This parameter is required when ControlBehavior is set to 2 (queuing).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2000', 'title' => ''], + ], + [ + 'name' => 'AhasRegionId', + 'in' => 'query', + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], + ], + [ + 'name' => 'ThresholdMode', + 'in' => 'query', + 'schema' => ['description' => 'The threshold mode for flow control.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2', 'title' => ''], ], ], - 'operationType' => 'readAndWrite', - 'deprecated' => false, - 'systemTags' => [], - 'parameters' => [], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], - 'OrderId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '212307989980192', + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94E*****10', 'title' => ''], + 'Code' => ['description' => 'The return code. A value of 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Data' => [ + 'description' => 'The returned data.', + 'type' => 'object', + 'properties' => [ + 'RefResource' => ['description' => 'The associated interface name or entrance resource name.', 'type' => 'string', 'example' => 'handleServiceB', 'title' => ''], + 'ClusterFallbackThreshold' => ['description' => 'The fallback threshold for standalone mode. This parameter is returned when the fallback strategy is set to fallback to standalone (ClusterFallbackStrategy=0).', 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'LimitOrigin' => ['description' => 'The source application.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'StatDurationMs' => ['description' => 'The statistical window duration in cluster mode, in milliseconds.', 'type' => 'integer', 'format' => 'int32', 'example' => '5000', 'title' => ''], + 'ClusterThresholdType' => ['description' => 'The threshold mode. Valid values: 0: standalone average threshold. 1: cluster threshold.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'RuleId' => ['description' => 'The rule ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'RelationStrategy' => ['description' => 'The statistical dimension.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'AppName' => ['description' => 'The application name. If the application is an EDAS application, set AppName to the App ID in EDAS. You can view the corresponding ID on the **Application Management > Basic Information** page in the EDAS console.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'Resource' => ['description' => 'The resource name. The value cannot exceed 1024 characters and must correspond to the resource name on the interface details page.', 'type' => 'string', 'example' => 'handleServiceA', 'title' => ''], + 'ClusterEstimatedMaxQps' => ['description' => 'The estimated maximum QPS for the cluster interface.', 'type' => 'number', 'format' => 'float', 'example' => '5000', 'title' => ''], + 'ControlBehavior' => ['description' => 'The flow control effect. Valid values: 0: fast failure. 1: warm-up. 2: queuing.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'MaxQueueingTimeMs' => ['description' => 'The timeout period, in milliseconds.', 'type' => 'integer', 'format' => 'int32', 'example' => '2000', 'title' => ''], + 'ClusterFallbackStrategy' => ['description' => 'The fallback strategy when cluster flow control communication fails. Valid values: 0: fallback to standalone. 1: pass directly.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'WarmUpPeriodSec' => ['description' => 'The warm-up period, in seconds.', 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''], + 'ClusterMode' => ['description' => 'Indicates whether cluster mode is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'ThresholdMode' => ['description' => 'The threshold mode for flow control.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''], + 'Threshold' => ['description' => 'The threshold of the flow control rule. The value must be an integer greater than or equal to 0.', 'type' => 'number', 'format' => 'float', 'example' => '300', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + ], + 'title' => '', + 'example' => '', ], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'errorCodes' => [], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"OrderId\\": \\"212307989980192\\"\\n}","type":"json"}]', - ], - 'GetMetricsOfApp' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'IllegalArgument.AppName', 'errorMessage' => 'The specified AppName is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.MaxQueueingTimeM', 'errorMessage' => 'The specified MaxQueueingTimeMs is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Namespace', 'errorMessage' => 'The specified Namespace is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.RefResource', 'errorMessage' => 'The specified RefResource is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.RelationStrategy', 'errorMessage' => 'The specified RelationStrategy is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Resource', 'errorMessage' => 'The specified Resource is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Threshold', 'errorMessage' => 'The specified Threshold is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.WarmUpPeriodSec', 'errorMessage' => 'The specified WarmUpPeriodSec is invalid.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94E*****10\\",\\n \\"Code\\": \\"200\\",\\n \\"Data\\": {\\n \\"RefResource\\": \\"handleServiceB\\",\\n \\"ClusterFallbackThreshold\\": 30,\\n \\"Namespace\\": \\"default\\",\\n \\"LimitOrigin\\": \\"default\\",\\n \\"StatDurationMs\\": 5000,\\n \\"ClusterThresholdType\\": 0,\\n \\"RuleId\\": 123,\\n \\"RelationStrategy\\": 0,\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"Resource\\": \\"handleServiceA\\",\\n \\"ClusterEstimatedMaxQps\\": 5000,\\n \\"ControlBehavior\\": 0,\\n \\"MaxQueueingTimeMs\\": 2000,\\n \\"ClusterFallbackStrategy\\": 0,\\n \\"WarmUpPeriodSec\\": 30,\\n \\"ClusterMode\\": true,\\n \\"ThresholdMode\\": 2,\\n \\"Threshold\\": 300,\\n \\"Enable\\": true\\n },\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Create a flow control rule', + 'summary' => 'Creates a flow control rule by calling the CreateFlowRule operation.', + 'requestParamsDescription' => ' For more information about the parameters, see [Configure flow control rules](~~101077~~).', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateFlowRule'], + ], ], + ], + 'CreateHotParamItems' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -430,58 +351,19 @@ 'systemTags' => [], 'parameters' => [ [ - 'name' => 'Namespace', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'default', - ], - ], - [ - 'name' => 'AppName', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'ahas-demo', - ], - ], - [ - 'name' => 'StartTime', + 'name' => 'RuleId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1596081600000', - ], + 'schema' => ['description' => 'The ID of the hot parameter rule.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '123', 'title' => ''], ], [ - 'name' => 'EndTime', + 'name' => 'Items', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1596081780000', - ], + 'schema' => ['description' => 'The hot parameter exception items.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '[{"itemType":"String","itemValue":"apple","threshold":50.0},{"itemType":"String","itemValue":"orange","threshold":20.0}]', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -489,974 +371,237 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The data returned.', 'type' => 'object', 'properties' => [ - 'AppName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ahas-demo', - ], - 'Namespace' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'InnerMetrics' => [ - 'description' => '', + 'ParamIdx' => ['description' => 'The index of the parameter.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'ParamFlowItemList' => [ + 'description' => 'The exception items.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'RtP99' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '7', - ], - 'SuccessQpsAvg' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '143', - ], - 'PassedQpsP99' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '143', - ], - 'RtAvg' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '6.5', - ], - 'Count' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'ThreadStd' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '1', - ], - 'PassedQpsAvg' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '143', - ], - 'ExceptionP95' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '0', - ], - 'SuccessQpsMax' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '143', - ], - 'RtP95' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '7', - ], - 'BlockedQpsMin' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '86', - ], - 'BlockedQps' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '173', - ], - 'Timestamp' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1596593014000', - ], - 'ThreadP95' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '1', - ], - 'RtStd' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '0.7', - ], - 'PassedQpsMin' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '143', - ], - 'BlockedQpsP99' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '86', - ], - 'PassedQpsMax' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '143', - ], - 'ExceptionMax' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '0', - ], - 'SuccessQps' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '286', - ], - 'SuccessQpsP75' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '143', - ], - 'ThreadP75' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '1', - ], - 'SuccessQpsStd' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '0', - ], - 'ExceptionMin' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '0', - ], - 'PassedQpsP75' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '143', - ], - 'PassedQps' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '286', - ], - 'ThreadMax' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '1', - ], - 'SuccessQpsP99' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '143', - ], - 'SuccessQpsMin' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '143', - ], - 'ThreadP99' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '1', - ], - 'ExceptionStd' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '0', - ], - 'BlockedQpsP95' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '86', - ], - 'Thread' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '2', - ], - 'ThreadMin' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '1', - ], - 'RtMin' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '7', - ], - 'BlockedQpsAvg' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '86', - ], - 'ThreadAvg' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '1', - ], - 'BlockedQpsP75' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '86', - ], - 'RtP75' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '7', - ], - 'ExceptionP99' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '0', - ], - 'ExceptionP75' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '0', - ], - 'SuccessQpsP95' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '143', - ], - 'Rt' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '6.5', - ], - 'PassedQpsP95' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '143', - ], - 'RtMax' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '7', - ], - 'BlockedQpsStd' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '0', - ], - 'BlockedQpsMax' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '86', - ], - 'Exception' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '0', - ], - 'ExceptionAvg' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '0', - ], - 'PassedQpsStd' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '143', - ], + 'ItemValue' => ['description' => 'The parameter value of the exception item.', 'type' => 'string', 'example' => 'apple', 'title' => ''], + 'ItemType' => ['description' => 'The type of the exception item.', 'type' => 'string', 'example' => 'String', 'title' => ''], + 'Threshold' => ['description' => 'The threshold of the exception item.', 'type' => 'number', 'format' => 'float', 'example' => '10', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], - ], + 'title' => '', + 'example' => '', + ], + 'StatDurationSec' => ['description' => 'The statistical period, in seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''], + 'BurstCount' => ['description' => 'The number of burst requests allowed.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''], + 'RuleId' => ['description' => 'The rule ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'Resource' => ['description' => 'The resource name.', 'type' => 'string', 'example' => 'handleService', 'title' => ''], + 'AppName' => ['description' => 'The application name. If the application is an EDAS application, AppName is the App ID in EDAS. You can view the corresponding ID in the EDAS console by navigating to Application Management > Basic Information.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'MaxQueueingTimeMs' => ['description' => 'The timeout period when the throttling behavior is set to queuing.', 'type' => 'integer', 'format' => 'int32', 'example' => '3000', 'title' => ''], + 'ControlBehavior' => ['description' => 'The throttling behavior. A value of 0 indicates fast failure. A value of 2 indicates queuing.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'MetricType' => ['description' => 'The statistical dimension. A value of 0 indicates concurrency. A value of 1 indicates passed requests.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Threshold' => ['description' => 'The threshold for a single machine.', 'type' => 'number', 'format' => 'float', 'example' => '50', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Code' => ['description' => 'The return code. A value of 200 is returned when Success is set to true. Otherwise, the corresponding error code is returned.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the call was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.AppName', - 'errorMessage' => 'The specified AppName is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Namespace', - 'errorMessage' => 'The specified Namespace is invalid.', - ], + ['errorCode' => 'IllegalArgument.RuleId', 'errorMessage' => 'The specified RuleId is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.ParamItems', 'errorMessage' => 'The specified Items is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"Namespace\\": \\"default\\",\\n \\"InnerMetrics\\": [\\n {\\n \\"RtP99\\": 7,\\n \\"SuccessQpsAvg\\": 143,\\n \\"PassedQpsP99\\": 143,\\n \\"RtAvg\\": 6.5,\\n \\"Count\\": 0,\\n \\"ThreadStd\\": 1,\\n \\"PassedQpsAvg\\": 143,\\n \\"ExceptionP95\\": 0,\\n \\"SuccessQpsMax\\": 143,\\n \\"RtP95\\": 7,\\n \\"BlockedQpsMin\\": 86,\\n \\"BlockedQps\\": 173,\\n \\"Timestamp\\": 1596593014000,\\n \\"ThreadP95\\": 1,\\n \\"RtStd\\": 0.7,\\n \\"PassedQpsMin\\": 143,\\n \\"BlockedQpsP99\\": 86,\\n \\"PassedQpsMax\\": 143,\\n \\"ExceptionMax\\": 0,\\n \\"SuccessQps\\": 286,\\n \\"SuccessQpsP75\\": 143,\\n \\"ThreadP75\\": 1,\\n \\"SuccessQpsStd\\": 0,\\n \\"ExceptionMin\\": 0,\\n \\"PassedQpsP75\\": 143,\\n \\"PassedQps\\": 286,\\n \\"ThreadMax\\": 1,\\n \\"SuccessQpsP99\\": 143,\\n \\"SuccessQpsMin\\": 143,\\n \\"ThreadP99\\": 1,\\n \\"ExceptionStd\\": 0,\\n \\"BlockedQpsP95\\": 86,\\n \\"Thread\\": 2,\\n \\"ThreadMin\\": 1,\\n \\"RtMin\\": 7,\\n \\"BlockedQpsAvg\\": 86,\\n \\"ThreadAvg\\": 1,\\n \\"BlockedQpsP75\\": 86,\\n \\"RtP75\\": 7,\\n \\"ExceptionP99\\": 0,\\n \\"ExceptionP75\\": 0,\\n \\"SuccessQpsP95\\": 143,\\n \\"Rt\\": 6.5,\\n \\"PassedQpsP95\\": 143,\\n \\"RtMax\\": 7,\\n \\"BlockedQpsStd\\": 0,\\n \\"BlockedQpsMax\\": 86,\\n \\"Exception\\": 0,\\n \\"ExceptionAvg\\": 0,\\n \\"PassedQpsStd\\": 143\\n }\\n ]\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<GetMetricsOfAppResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <AppName>ahas-demo</AppName>\\n <Namespace>default</Namespace>\\n <InnerMetrics>\\n <RtP99>7</RtP99>\\n <SuccessQpsAvg>143</SuccessQpsAvg>\\n <PassedQpsP99>143</PassedQpsP99>\\n <RtAvg>6.5</RtAvg>\\n <Count>0</Count>\\n <ThreadStd>1</ThreadStd>\\n <PassedQpsAvg>143</PassedQpsAvg>\\n <ExceptionP95>0</ExceptionP95>\\n <SuccessQpsMax>143</SuccessQpsMax>\\n <RtP95>7</RtP95>\\n <BlockedQpsMin>86</BlockedQpsMin>\\n <BlockedQps>173</BlockedQps>\\n <Timestamp>1596593014000</Timestamp>\\n <ThreadP95>1</ThreadP95>\\n <RtStd>0.7</RtStd>\\n <PassedQpsMin>143</PassedQpsMin>\\n <BlockedQpsP99>86</BlockedQpsP99>\\n <PassedQpsMax>143</PassedQpsMax>\\n <ExceptionMax>0</ExceptionMax>\\n <SuccessQps>286</SuccessQps>\\n <SuccessQpsP75>143</SuccessQpsP75>\\n <ThreadP75>1</ThreadP75>\\n <SuccessQpsStd>0</SuccessQpsStd>\\n <ExceptionMin>0</ExceptionMin>\\n <PassedQpsP75>143</PassedQpsP75>\\n <PassedQps>286</PassedQps>\\n <ThreadMax>1</ThreadMax>\\n <SuccessQpsP99>143</SuccessQpsP99>\\n <SuccessQpsMin>143</SuccessQpsMin>\\n <ThreadP99>1</ThreadP99>\\n <ExceptionStd>0</ExceptionStd>\\n <BlockedQpsP95>86</BlockedQpsP95>\\n <Thread>2</Thread>\\n <ThreadMin>1</ThreadMin>\\n <RtMin>7</RtMin>\\n <BlockedQpsAvg>86</BlockedQpsAvg>\\n <ThreadAvg>1</ThreadAvg>\\n <BlockedQpsP75>86</BlockedQpsP75>\\n <RtP75>7</RtP75>\\n <ExceptionP99>0</ExceptionP99>\\n <ExceptionP75>0</ExceptionP75>\\n <SuccessQpsP95>143</SuccessQpsP95>\\n <Rt>6.5</Rt>\\n <PassedQpsP95>143</PassedQpsP95>\\n <RtMax>7</RtMax>\\n <BlockedQpsStd>0</BlockedQpsStd>\\n <BlockedQpsMax>86</BlockedQpsMax>\\n <Exception>0</Exception>\\n <ExceptionAvg>0</ExceptionAvg>\\n <PassedQpsStd>143</PassedQpsStd>\\n </InnerMetrics>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</GetMetricsOfAppResponse>","errorExample":""}]', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"ParamIdx\\": 1,\\n \\"Namespace\\": \\"default\\",\\n \\"ParamFlowItemList\\": [\\n {\\n \\"ItemValue\\": \\"apple\\",\\n \\"ItemType\\": \\"String\\",\\n \\"Threshold\\": 10\\n }\\n ],\\n \\"StatDurationSec\\": 1,\\n \\"BurstCount\\": 2,\\n \\"RuleId\\": 123,\\n \\"Resource\\": \\"handleService\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"MaxQueueingTimeMs\\": 3000,\\n \\"ControlBehavior\\": 0,\\n \\"MetricType\\": 1,\\n \\"Threshold\\": 50,\\n \\"Enable\\": true\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Create hot parameter rule exception items', + 'summary' => 'Creates exception items for a hot parameter rule by calling the CreateHotParamItems operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'GetSentinelAppSumMetric' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateHotParamItems'], + ], ], + ], + 'CreateHotParamRule' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', + 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ - 'name' => 'AcceptLanguage', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ 'name' => 'Namespace', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - ], + 'schema' => ['description' => 'The namespace.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'default', 'title' => ''], ], [ 'name' => 'AppName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['description' => 'The application name. If the application is an EDAS application, set AppName to the App ID in EDAS. You can view the corresponding ID on the **Application Management > Basic Information** page in the EDAS console.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ahas-demo', 'title' => ''], ], [ - 'name' => 'StartTime', + 'name' => 'MetricType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['description' => 'The statistical dimension. Valid values:'."\n" + .'- 0: concurrency'."\n" + .'- 1: pass request count.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '1', 'title' => ''], ], [ - 'name' => 'EndTime', + 'name' => 'Threshold', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['description' => 'The threshold for each hot parameter in the hot parameter rule. The value must be an integer greater than or equal to 0.', 'type' => 'number', 'format' => 'float', 'required' => true, 'docRequired' => true, 'example' => '20', 'title' => ''], ], [ - 'name' => 'AhasRegionId', + 'name' => 'Enable', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], - 'Code' => [ - 'type' => 'string', - ], - 'Success' => [ - 'type' => 'boolean', - ], - 'MetricData' => [ - 'type' => 'object', - 'properties' => [ - 'AppName' => [ - 'type' => 'string', - ], - 'PassCount' => [ - 'type' => 'number', - 'format' => 'float', - ], - 'MachineCount' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'AvgRt' => [ - 'type' => 'number', - 'format' => 'float', - ], - 'UserId' => [ - 'type' => 'string', - ], - 'Namespace' => [ - 'type' => 'string', - ], - 'TotalCount' => [ - 'type' => 'number', - 'format' => 'float', - ], - 'BlockCount' => [ - 'type' => 'number', - 'format' => 'float', - ], - ], - ], - ], - ], + 'schema' => ['description' => 'Specifies whether to enable the rule. Default value: false.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''], ], - ], - 'errorCodes' => [], - 'responseDemo' => null, - ], - 'GetMetricsOfResource' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'Resource', + 'in' => 'query', + 'schema' => ['description' => 'The resource name. The name can be up to 1024 characters in length and must correspond to the resource name on the API details page.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'handleService', 'title' => ''], ], - ], - 'operationType' => 'write', - 'deprecated' => false, - 'systemTags' => [], - 'parameters' => [ [ - 'name' => 'Namespace', + 'name' => 'ParamIdx', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => 'default', - 'required' => true, - 'type' => 'string', - ], + 'schema' => ['description' => 'The index of the parameter position, which is the index position of the parameter passed in through instrumentation. This corresponds to the parameter index position in `SphU.entry(xxx,args)`.'."\n" + ."\n" + .'For example, in the instrumentation `SphU.entry(resourceName,Entry Type.IN,1,paramA,paramB)`, the parameter index of `paramA` is 0, and the parameter index of `paramB` is 1.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '1', 'title' => ''], ], [ - 'name' => 'AppName', + 'name' => 'StatDurationSec', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => 'ahas-demo', - 'required' => true, - 'type' => 'string', - ], + 'schema' => ['description' => 'The statistical period, in seconds.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '1', 'title' => ''], ], [ - 'name' => 'Resource', + 'name' => 'ControlBehavior', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => 'handleService', - 'required' => true, - 'type' => 'string', - ], + 'schema' => ['description' => 'The throttling behavior. Valid values:'."\n" + .'- 0: fast failure'."\n" + .'- 2: queuing.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '0', 'title' => ''], ], [ - 'name' => 'StartTime', + 'name' => 'BurstCount', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => '1596081600000', - 'format' => 'int64', - 'required' => false, - 'type' => 'integer', - ], + 'schema' => ['description' => 'The number of burst requests. This parameter is required when the throttling behavior is set to fast failure.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2', 'title' => ''], ], [ - 'name' => 'EndTime', + 'name' => 'MaxQueueingTimeMs', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => '1596081780000', - 'format' => 'int64', - 'required' => false, - 'type' => 'integer', - ], + 'schema' => ['description' => 'The timeout period, in milliseconds. This parameter is required when the throttling behavior is set to queuing.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3000', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => 'cn-hangzhou', - 'required' => false, - 'type' => 'string', - ], + 'schema' => ['description' => 'The region.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'example' => 'null', - 'type' => 'string', - ], - 'RequestId' => [ - 'description' => '', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94E*****10', - 'type' => 'string', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The business data.', + 'type' => 'object', 'properties' => [ - 'AppName' => [ - 'description' => '', - 'example' => 'ahas-demo', - 'type' => 'string', - ], - 'Resource' => [ - 'description' => '', - 'example' => 'handleService', - 'type' => 'string', - ], - 'Namespace' => [ - 'description' => '', - 'example' => 'default', - 'type' => 'string', - ], - 'InnerMetrics' => [ - 'description' => '', + 'ParamIdx' => ['description' => 'The index of the parameter position.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'ParamFlowItemList' => [ + 'description' => 'The list of hot parameter exception items.', + 'type' => 'array', 'items' => [ + 'type' => 'object', 'properties' => [ - 'RtP99' => [ - 'description' => '', - 'example' => '7', - 'format' => 'float', - 'type' => 'number', - ], - 'SuccessQpsAvg' => [ - 'description' => '', - 'example' => '143', - 'format' => 'float', - 'type' => 'number', - ], - 'PassedQpsP99' => [ - 'description' => '', - 'example' => '143', - 'format' => 'float', - 'type' => 'number', - ], - 'RtAvg' => [ - 'description' => '', - 'example' => '6.5', - 'format' => 'float', - 'type' => 'number', - ], - 'Count' => [ - 'description' => '', - 'example' => '2', - 'format' => 'int32', - 'type' => 'integer', - ], - 'ThreadStd' => [ - 'description' => '', - 'example' => '0', - 'format' => 'float', - 'type' => 'number', - ], - 'PassedQpsAvg' => [ - 'description' => '', - 'example' => '143', - 'format' => 'float', - 'type' => 'number', - ], - 'ExceptionP95' => [ - 'description' => '', - 'example' => '0', - 'format' => 'float', - 'type' => 'number', - ], - 'SuccessQpsMax' => [ - 'description' => '', - 'example' => '143', - 'format' => 'float', - 'type' => 'number', - ], - 'RtP95' => [ - 'description' => '', - 'example' => '7', - 'format' => 'float', - 'type' => 'number', - ], - 'BlockedQpsMin' => [ - 'description' => '', - 'example' => '86', - 'format' => 'float', - 'type' => 'number', - ], - 'BlockedQps' => [ - 'description' => '', - 'example' => '173', - 'format' => 'float', - 'type' => 'number', - ], - 'Timestamp' => [ - 'description' => '', - 'example' => '1596593014000', - 'format' => 'int64', - 'type' => 'integer', - ], - 'ThreadP95' => [ - 'description' => '', - 'example' => '1', - 'format' => 'float', - 'type' => 'number', - ], - 'RtStd' => [ - 'description' => '', - 'example' => '0.7', - 'format' => 'float', - 'type' => 'number', - ], - 'PassedQpsMin' => [ - 'description' => '', - 'example' => '143', - 'format' => 'float', - 'type' => 'number', - ], - 'BlockedQpsP99' => [ - 'description' => '', - 'example' => '86', - 'format' => 'float', - 'type' => 'number', - ], - 'PassedQpsMax' => [ - 'description' => '', - 'example' => '143', - 'format' => 'float', - 'type' => 'number', - ], - 'ExceptionMax' => [ - 'description' => '', - 'example' => '0', - 'format' => 'float', - 'type' => 'number', - ], - 'SuccessQps' => [ - 'description' => '', - 'example' => '286', - 'format' => 'float', - 'type' => 'number', - ], - 'SuccessQpsP75' => [ - 'description' => '', - 'example' => '143', - 'format' => 'float', - 'type' => 'number', - ], - 'ThreadP75' => [ - 'description' => '', - 'example' => '1', - 'format' => 'float', - 'type' => 'number', - ], - 'SuccessQpsStd' => [ - 'description' => '', - 'example' => '0', - 'format' => 'float', - 'type' => 'number', - ], - 'ExceptionMin' => [ - 'description' => '', - 'example' => '0', - 'format' => 'float', - 'type' => 'number', - ], - 'PassedQpsP75' => [ - 'description' => '', - 'example' => '143', - 'format' => 'float', - 'type' => 'number', - ], - 'PassedQps' => [ - 'description' => '', - 'example' => '286', - 'format' => 'float', - 'type' => 'number', - ], - 'ThreadMax' => [ - 'description' => '', - 'example' => '1', - 'format' => 'float', - 'type' => 'number', - ], - 'SuccessQpsP99' => [ - 'description' => '', - 'example' => '143', - 'format' => 'float', - 'type' => 'number', - ], - 'SuccessQpsMin' => [ - 'description' => '', - 'example' => '143', - 'format' => 'float', - 'type' => 'number', - ], - 'ThreadP99' => [ - 'description' => '', - 'example' => '1', - 'format' => 'float', - 'type' => 'number', - ], - 'ExceptionStd' => [ - 'description' => '', - 'example' => '0', - 'format' => 'float', - 'type' => 'number', - ], - 'BlockedQpsP95' => [ - 'description' => '', - 'example' => '86', - 'format' => 'float', - 'type' => 'number', - ], - 'Thread' => [ - 'description' => '', - 'example' => '2', - 'format' => 'float', - 'type' => 'number', - ], - 'ThreadMin' => [ - 'description' => '', - 'example' => '1', - 'format' => 'float', - 'type' => 'number', - ], - 'RtMin' => [ - 'description' => '', - 'example' => '6.5', - 'format' => 'float', - 'type' => 'number', - ], - 'BlockedQpsAvg' => [ - 'description' => '', - 'example' => '86', - 'format' => 'float', - 'type' => 'number', - ], - 'ThreadAvg' => [ - 'description' => '', - 'example' => '1', - 'format' => 'float', - 'type' => 'number', - ], - 'BlockedQpsP75' => [ - 'description' => '', - 'example' => '86', - 'format' => 'float', - 'type' => 'number', - ], - 'RtP75' => [ - 'description' => '', - 'example' => '7', - 'format' => 'float', - 'type' => 'number', - ], - 'ExceptionP99' => [ - 'description' => '', - 'example' => '0', - 'format' => 'float', - 'type' => 'number', - ], - 'ExceptionP75' => [ - 'description' => '', - 'example' => '0', - 'format' => 'float', - 'type' => 'number', - ], - 'SuccessQpsP95' => [ - 'description' => '', - 'example' => '143', - 'format' => 'float', - 'type' => 'number', - ], - 'Rt' => [ - 'description' => '', - 'example' => '6.5', - 'format' => 'float', - 'type' => 'number', - ], - 'PassedQpsP95' => [ - 'description' => '', - 'example' => '143', - 'format' => 'float', - 'type' => 'number', - ], - 'RtMax' => [ - 'description' => '', - 'example' => '7', - 'format' => 'float', - 'type' => 'number', - ], - 'BlockedQpsStd' => [ - 'description' => '', - 'example' => '0', - 'format' => 'float', - 'type' => 'number', - ], - 'BlockedQpsMax' => [ - 'description' => '', - 'example' => '86', - 'format' => 'float', - 'type' => 'number', - ], - 'Exception' => [ - 'description' => '', - 'example' => '0', - 'format' => 'float', - 'type' => 'number', - ], - 'ExceptionAvg' => [ - 'description' => '', - 'example' => '0', - 'format' => 'float', - 'type' => 'number', - ], - 'PassedQpsStd' => [ - 'description' => '', - 'example' => '0', - 'format' => 'float', - 'type' => 'number', - ], + 'ItemValue' => ['description' => 'The value of the exception item parameter.', 'type' => 'string', 'example' => 'apple', 'title' => ''], + 'ItemType' => ['description' => 'The type of the exception item.', 'type' => 'string', 'example' => 'String', 'title' => ''], + 'Threshold' => ['description' => 'The threshold of the exception item.', 'type' => 'number', 'format' => 'float', 'example' => '10', 'title' => ''], ], - 'type' => 'object', + 'description' => '', + 'title' => '', + 'example' => '', ], - 'type' => 'array', - ], + 'title' => '', + 'example' => '', + ], + 'StatDurationSec' => ['description' => 'The statistical period, in seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''], + 'BurstCount' => ['description' => 'The number of burst requests.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''], + 'RuleId' => ['description' => 'The ID of the hot parameter rule.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'Resource' => ['description' => 'The resource name. The name can be up to 1024 characters in length and must correspond to the resource name on the API details page.', 'type' => 'string', 'example' => 'handleService', 'title' => ''], + 'AppName' => ['description' => 'The application name. If the application is an EDAS application, set AppName to the App ID in EDAS. You can view the corresponding ID on the **Application Management > Basic Information** page in the EDAS console.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'MaxQueueingTimeMs' => ['description' => 'The timeout period when the throttling behavior is set to queuing, in milliseconds.', 'type' => 'integer', 'format' => 'int32', 'example' => '3000', 'title' => ''], + 'ControlBehavior' => ['description' => 'The throttling behavior. Valid values:'."\n" + .'- 0: fast failure'."\n" + .'- 2: queuing.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'MetricType' => ['description' => 'The statistical dimension. Valid values:'."\n" + .'- 0: concurrency'."\n" + .'- 1: pass request count.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Threshold' => ['description' => 'The threshold for a single machine.', 'type' => 'number', 'format' => 'float', 'example' => '20', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], - 'type' => 'object', - ], - 'Code' => [ - 'description' => '', - 'example' => '200', - 'type' => 'string', - ], - 'Success' => [ - 'description' => '', - 'example' => 'true', - 'type' => 'boolean', + 'title' => '', + 'example' => '', ], + 'Code' => ['description' => 'The return code or error code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], - 'type' => 'object', + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.AppName', - 'errorMessage' => 'The specified AppName is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Namespace', - 'errorMessage' => 'The specified Namespace is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Resource', - 'errorMessage' => 'The specified Resource is invalid.', - ], - ], - ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94E*****10\\",\\n \\"Data\\": {\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"Resource\\": \\"handleService\\",\\n \\"Namespace\\": \\"default\\",\\n \\"InnerMetrics\\": [\\n {\\n \\"RtP99\\": 7,\\n \\"SuccessQpsAvg\\": 143,\\n \\"PassedQpsP99\\": 143,\\n \\"RtAvg\\": 6.5,\\n \\"Count\\": 2,\\n \\"ThreadStd\\": 0,\\n \\"PassedQpsAvg\\": 143,\\n \\"ExceptionP95\\": 0,\\n \\"SuccessQpsMax\\": 143,\\n \\"RtP95\\": 7,\\n \\"BlockedQpsMin\\": 86,\\n \\"BlockedQps\\": 173,\\n \\"Timestamp\\": 1596593014000,\\n \\"ThreadP95\\": 1,\\n \\"RtStd\\": 0.7,\\n \\"PassedQpsMin\\": 143,\\n \\"BlockedQpsP99\\": 86,\\n \\"PassedQpsMax\\": 143,\\n \\"ExceptionMax\\": 0,\\n \\"SuccessQps\\": 286,\\n \\"SuccessQpsP75\\": 143,\\n \\"ThreadP75\\": 1,\\n \\"SuccessQpsStd\\": 0,\\n \\"ExceptionMin\\": 0,\\n \\"PassedQpsP75\\": 143,\\n \\"PassedQps\\": 286,\\n \\"ThreadMax\\": 1,\\n \\"SuccessQpsP99\\": 143,\\n \\"SuccessQpsMin\\": 143,\\n \\"ThreadP99\\": 1,\\n \\"ExceptionStd\\": 0,\\n \\"BlockedQpsP95\\": 86,\\n \\"Thread\\": 2,\\n \\"ThreadMin\\": 1,\\n \\"RtMin\\": 6.5,\\n \\"BlockedQpsAvg\\": 86,\\n \\"ThreadAvg\\": 1,\\n \\"BlockedQpsP75\\": 86,\\n \\"RtP75\\": 7,\\n \\"ExceptionP99\\": 0,\\n \\"ExceptionP75\\": 0,\\n \\"SuccessQpsP95\\": 143,\\n \\"Rt\\": 6.5,\\n \\"PassedQpsP95\\": 143,\\n \\"RtMax\\": 7,\\n \\"BlockedQpsStd\\": 0,\\n \\"BlockedQpsMax\\": 86,\\n \\"Exception\\": 0,\\n \\"ExceptionAvg\\": 0,\\n \\"PassedQpsStd\\": 0\\n }\\n ]\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<GetMetricsOfResourceResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94E*****10</RequestId>\\n <Data>\\n <AppName>ahas-demo</AppName>\\n <Resource>handleService</Resource>\\n <Namespace>default</Namespace>\\n <InnerMetrics>\\n <RtP99>7</RtP99>\\n <SuccessQpsAvg>143</SuccessQpsAvg>\\n <PassedQpsP99>143</PassedQpsP99>\\n <RtAvg>6.5</RtAvg>\\n <Count>2</Count>\\n <ThreadStd>0</ThreadStd>\\n <PassedQpsAvg>143</PassedQpsAvg>\\n <ExceptionP95>0</ExceptionP95>\\n <SuccessQpsMax>143</SuccessQpsMax>\\n <RtP95>7</RtP95>\\n <BlockedQpsMin>86</BlockedQpsMin>\\n <BlockedQps>173</BlockedQps>\\n <Timestamp>1596593014000</Timestamp>\\n <ThreadP95>1</ThreadP95>\\n <RtStd>0.7</RtStd>\\n <PassedQpsMin>143</PassedQpsMin>\\n <BlockedQpsP99>86</BlockedQpsP99>\\n <PassedQpsMax>143</PassedQpsMax>\\n <ExceptionMax>0</ExceptionMax>\\n <SuccessQps>286</SuccessQps>\\n <SuccessQpsP75>143</SuccessQpsP75>\\n <ThreadP75>1</ThreadP75>\\n <SuccessQpsStd>0</SuccessQpsStd>\\n <ExceptionMin>0</ExceptionMin>\\n <PassedQpsP75>143</PassedQpsP75>\\n <PassedQps>286</PassedQps>\\n <ThreadMax>1</ThreadMax>\\n <SuccessQpsP99>143</SuccessQpsP99>\\n <SuccessQpsMin>143</SuccessQpsMin>\\n <ThreadP99>1</ThreadP99>\\n <ExceptionStd>0</ExceptionStd>\\n <BlockedQpsP95>86</BlockedQpsP95>\\n <Thread>2</Thread>\\n <ThreadMin>1</ThreadMin>\\n <RtMin>6.5</RtMin>\\n <BlockedQpsAvg>86</BlockedQpsAvg>\\n <ThreadAvg>1</ThreadAvg>\\n <BlockedQpsP75>86</BlockedQpsP75>\\n <RtP75>7</RtP75>\\n <ExceptionP99>0</ExceptionP99>\\n <ExceptionP75>0</ExceptionP75>\\n <SuccessQpsP95>143</SuccessQpsP95>\\n <Rt>6.5</Rt>\\n <PassedQpsP95>143</PassedQpsP95>\\n <RtMax>7</RtMax>\\n <BlockedQpsStd>0</BlockedQpsStd>\\n <BlockedQpsMax>86</BlockedQpsMax>\\n <Exception>0</Exception>\\n <ExceptionAvg>0</ExceptionAvg>\\n <PassedQpsStd>0</PassedQpsStd>\\n </InnerMetrics>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</GetMetricsOfResourceResponse>","errorExample":""}]', - 'extraInfo' => ' ', + ['errorCode' => 'IllegalArgument.AppName', 'errorMessage' => 'The specified AppName is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.BurstCount', 'errorMessage' => 'The specified BurstCount is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.ControlBehavior', 'errorMessage' => 'The specified ControlBehavior is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.DurationInSec', 'errorMessage' => 'The specified DurationInSec is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.MaxQueueingTimeM', 'errorMessage' => 'The specified MaxQueueingTimeMs is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.MetricType', 'errorMessage' => 'The specified MetricType is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Namespace', 'errorMessage' => 'The specified Namespace is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.ParamIdx', 'errorMessage' => 'The specified ParamIdx is invalid.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"ParamIdx\\": 1,\\n \\"Namespace\\": \\"default\\",\\n \\"ParamFlowItemList\\": [\\n {\\n \\"ItemValue\\": \\"apple\\",\\n \\"ItemType\\": \\"String\\",\\n \\"Threshold\\": 10\\n }\\n ],\\n \\"StatDurationSec\\": 1,\\n \\"BurstCount\\": 2,\\n \\"RuleId\\": 123,\\n \\"Resource\\": \\"handleService\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"MaxQueueingTimeMs\\": 3000,\\n \\"ControlBehavior\\": 0,\\n \\"MetricType\\": 0,\\n \\"Threshold\\": 20,\\n \\"Enable\\": true\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Create a hot parameter rule', + 'summary' => 'Creates a hot parameter rule by calling the CreateHotParamRule operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', - 'title' => 'GetMetricsOfResource', - ], - 'CreateFlowRule' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateHotParamRule'], + ], ], + ], + 'CreateIsolationRule' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1469,338 +614,111 @@ [ 'name' => 'Namespace', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => 'default', - 'required' => true, - 'type' => 'string', - ], + 'schema' => ['description' => 'The namespace.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'default', 'title' => ''], ], [ 'name' => 'AppName', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => 'ahas-demo', - 'required' => true, - 'type' => 'string', - ], + 'schema' => ['description' => 'The application name. If the application is an EDAS application, set AppName to the App ID in EDAS. You can view the App ID on the **Application Management > Basic Information** page in the EDAS console.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ahas-demo', 'title' => ''], ], [ 'name' => 'RelationStrategy', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => '0', - 'format' => 'int32', - 'required' => true, - 'type' => 'integer', - ], + 'schema' => ['description' => 'The statistical dimension. Valid values:'."\n" + .'- 0: current interface.'."\n" + .'- 1: associated interface.'."\n" + .'- 2: chain entry.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '0', 'title' => ''], ], [ 'name' => 'Threshold', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => '50', - 'format' => 'float', - 'required' => true, - 'type' => 'number', - ], + 'schema' => ['description' => 'The concurrency threshold. The value must be an integer greater than or equal to 0.', 'type' => 'number', 'format' => 'float', 'required' => true, 'docRequired' => true, 'example' => '10', 'title' => ''], ], [ 'name' => 'Enable', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => 'true', - 'required' => false, - 'type' => 'boolean', - ], + 'schema' => ['description' => 'Specifies whether to enable the rule. Default value: false.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''], ], [ 'name' => 'Resource', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => 'handleServiceA', - 'required' => true, - 'type' => 'string', - ], + 'schema' => ['description' => 'The resource name. The name cannot exceed 1024 characters and must correspond to the resource name on the interface details page.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'handleServiceA', 'title' => ''], ], [ 'name' => 'LimitOrigin', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => 'default', - 'required' => false, - 'type' => 'string', - ], + 'schema' => ['description' => 'The source application. Default value: default.', 'type' => 'string', 'required' => false, 'example' => 'default', 'title' => ''], ], [ 'name' => 'RefResource', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => 'handleServiceB', - 'required' => false, - 'type' => 'string', - ], - ], - [ - 'name' => 'ControlBehavior', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => '0', - 'format' => 'int32', - 'required' => true, - 'type' => 'integer', - ], - ], - [ - 'name' => 'WarmUpPeriodSec', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => '30', - 'format' => 'int32', - 'required' => false, - 'type' => 'integer', - ], - ], - [ - 'name' => 'MaxQueueingTimeMs', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => '2000', - 'format' => 'int32', - 'required' => false, - 'type' => 'integer', - ], + 'schema' => ['description' => 'The associated interface name or callstack entry name. This parameter is required when the statistical dimension is set to associated interface or chain entry.', 'type' => 'string', 'required' => false, 'example' => 'handleServiceB', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => 'cn-hangzhou', - 'required' => false, - 'type' => 'string', - ], - ], - [ - 'name' => 'ThresholdMode', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => '2', - 'format' => 'int32', - 'required' => false, - 'type' => 'integer', - ], + 'schema' => ['description' => 'The region.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'example' => 'null', - 'type' => 'string', - ], - 'RequestId' => [ - 'description' => '', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94E*****10', - 'type' => 'string', - ], - 'Code' => [ - 'description' => '', - 'example' => '200', - 'type' => 'string', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The isolation rule data.', + 'type' => 'object', 'properties' => [ - 'RefResource' => [ - 'description' => '', - 'example' => 'handleServiceB', - 'type' => 'string', - ], - 'ClusterFallbackThreshold' => [ - 'description' => '', - 'example' => '30', - 'format' => 'int32', - 'type' => 'integer', - ], - 'Namespace' => [ - 'description' => '', - 'example' => 'default', - 'type' => 'string', - ], - 'LimitOrigin' => [ - 'description' => '', - 'example' => 'default', - 'type' => 'string', - ], - 'StatDurationMs' => [ - 'description' => '', - 'example' => '5000', - 'format' => 'int32', - 'type' => 'integer', - ], - 'ClusterThresholdType' => [ - 'description' => '', - 'example' => '0', - 'format' => 'int32', - 'type' => 'integer', - ], - 'RuleId' => [ - 'description' => '', - 'example' => '123', - 'format' => 'int64', - 'type' => 'integer', - ], - 'RelationStrategy' => [ - 'description' => '', - 'example' => '0', - 'format' => 'int32', - 'type' => 'integer', - ], - 'AppName' => [ - 'description' => '', - 'example' => 'ahas-demo', - 'type' => 'string', - ], - 'Resource' => [ - 'description' => '', - 'example' => 'handleServiceA', - 'type' => 'string', - ], - 'ClusterEstimatedMaxQps' => [ - 'description' => '', - 'example' => '5000', - 'format' => 'float', - 'type' => 'number', - ], - 'ControlBehavior' => [ - 'description' => '', - 'example' => '0', - 'format' => 'int32', - 'type' => 'integer', - ], - 'MaxQueueingTimeMs' => [ - 'description' => '', - 'example' => '2000', - 'format' => 'int32', - 'type' => 'integer', - ], - 'ClusterFallbackStrategy' => [ - 'description' => '', - 'example' => '0', - 'format' => 'int32', - 'type' => 'integer', - ], - 'WarmUpPeriodSec' => [ - 'description' => '', - 'example' => '30', - 'format' => 'int32', - 'type' => 'integer', - ], - 'ClusterMode' => [ - 'description' => '', - 'example' => 'true', - 'type' => 'boolean', - ], - 'ThresholdMode' => [ - 'description' => '', - 'example' => '2', - 'format' => 'int32', - 'type' => 'integer', - ], - 'Threshold' => [ - 'description' => '', - 'example' => '300', - 'format' => 'float', - 'type' => 'number', - ], - 'Enable' => [ - 'description' => '', - 'example' => 'true', - 'type' => 'boolean', - ], + 'RelationStrategy' => ['description' => 'The statistical dimension.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Resource' => ['description' => 'The interface resource name.', 'type' => 'string', 'example' => 'handleServiceA', 'title' => ''], + 'AppName' => ['description' => 'The application name. If the application is an EDAS application, set AppName to the App ID in EDAS. You can view the App ID on the **Application Management > Basic Information** page in the EDAS console.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'RefResource' => ['description' => 'The associated interface name or callstack entry name.', 'type' => 'string', 'example' => 'handleServiceB', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'LimitOrigin' => ['description' => 'The source application.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'Threshold' => ['description' => 'The concurrency threshold.', 'type' => 'number', 'format' => 'float', 'example' => '10', 'title' => ''], + 'RuleId' => ['description' => 'The isolation rule ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], - 'type' => 'object', - ], - 'Success' => [ - 'description' => '', - 'example' => 'true', - 'type' => 'boolean', + 'title' => '', + 'example' => '', ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the call was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], - 'type' => 'object', + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.AppName', - 'errorMessage' => 'The specified AppName is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.MaxQueueingTimeM', - 'errorMessage' => 'The specified MaxQueueingTimeMs is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Namespace', - 'errorMessage' => 'The specified Namespace is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.RefResource', - 'errorMessage' => 'The specified RefResource is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.RelationStrategy', - 'errorMessage' => 'The specified RelationStrategy is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Resource', - 'errorMessage' => 'The specified Resource is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Threshold', - 'errorMessage' => 'The specified Threshold is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.WarmUpPeriodSec', - 'errorMessage' => 'The specified WarmUpPeriodSec is invalid.', - ], + ['errorCode' => 'IllegalArgument.Namespace', 'errorMessage' => 'The specified Namespace is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.AppName', 'errorMessage' => 'The specified AppName is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.RelationStrategy', 'errorMessage' => 'The specified RelationStrategy is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.RefResource', 'errorMessage' => 'The specified RefResource is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Resource', 'errorMessage' => 'The specified Resource is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Threshold', 'errorMessage' => 'The specified Threshold is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94E*****10\\",\\n \\"Code\\": \\"200\\",\\n \\"Data\\": {\\n \\"RefResource\\": \\"handleServiceB\\",\\n \\"ClusterFallbackThreshold\\": 30,\\n \\"Namespace\\": \\"default\\",\\n \\"LimitOrigin\\": \\"default\\",\\n \\"StatDurationMs\\": 5000,\\n \\"ClusterThresholdType\\": 0,\\n \\"RuleId\\": 123,\\n \\"RelationStrategy\\": 0,\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"Resource\\": \\"handleServiceA\\",\\n \\"ClusterEstimatedMaxQps\\": 5000,\\n \\"ControlBehavior\\": 0,\\n \\"MaxQueueingTimeMs\\": 2000,\\n \\"ClusterFallbackStrategy\\": 0,\\n \\"WarmUpPeriodSec\\": 30,\\n \\"ClusterMode\\": true,\\n \\"ThresholdMode\\": 2,\\n \\"Threshold\\": 300,\\n \\"Enable\\": true\\n },\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<CreateFlowRuleResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94E*****10</RequestId>\\n <Code>200</Code>\\n <Data>\\n <RefResource>handleServiceB</RefResource>\\n <ClusterFallbackThreshold>30</ClusterFallbackThreshold>\\n <Namespace>default</Namespace>\\n <LimitOrigin>default</LimitOrigin>\\n <StatDurationMs>5000</StatDurationMs>\\n <ClusterThresholdType>0</ClusterThresholdType>\\n <RuleId>123</RuleId>\\n <RelationStrategy>0</RelationStrategy>\\n <AppName>ahas-demo</AppName>\\n <Resource>handleServiceA</Resource>\\n <ClusterEstimatedMaxQps>5000</ClusterEstimatedMaxQps>\\n <ControlBehavior>0</ControlBehavior>\\n <MaxQueueingTimeMs>2000</MaxQueueingTimeMs>\\n <ClusterFallbackStrategy>0</ClusterFallbackStrategy>\\n <WarmUpPeriodSec>30</WarmUpPeriodSec>\\n <ClusterMode>true</ClusterMode>\\n <ThresholdMode>2</ThresholdMode>\\n <Threshold>300</Threshold>\\n <Enable>true</Enable>\\n </Data>\\n <Success>true</Success>\\n</CreateFlowRuleResponse>","errorExample":""}]', - 'extraInfo' => ' ', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"RelationStrategy\\": 0,\\n \\"Resource\\": \\"handleServiceA\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"RefResource\\": \\"handleServiceB\\",\\n \\"Namespace\\": \\"default\\",\\n \\"LimitOrigin\\": \\"default\\",\\n \\"Threshold\\": 10,\\n \\"RuleId\\": 123,\\n \\"Enable\\": true\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Create an isolation rule', + 'summary' => 'Creates an isolation rule by calling the CreateIsolationRule operation.', + 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', - 'title' => 'CreateFlowRule', - ], - 'DeleteFlowRule' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateIsolationRule'], + ], ], + ], + 'CreateSystemRule' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1811,26 +729,34 @@ 'systemTags' => [], 'parameters' => [ [ - 'name' => 'RuleId', + 'name' => 'Namespace', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '123', - ], + 'schema' => ['description' => 'The namespace.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'default', 'title' => ''], + ], + [ + 'name' => 'AppName', + 'in' => 'query', + 'schema' => ['description' => 'The application name. If the application is an EDAS application, set AppName to the App ID in EDAS. You can view the corresponding ID in the EDAS console by choosing **Application Management > Basic Information**.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ahas-demo', 'title' => ''], + ], + [ + 'name' => 'MetricType', + 'in' => 'query', + 'schema' => ['description' => 'The statistical dimension. Valid values: 0: Load. 1: average RT of inbound traffic. 2: thread count. 3: total inbound QPS. 4: CPU usage.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '4', 'title' => ''], + ], + [ + 'name' => 'Threshold', + 'in' => 'query', + 'schema' => ['description' => 'The CPU threshold. Valid values: 0 to 1.', 'type' => 'number', 'format' => 'float', 'required' => true, 'docRequired' => true, 'example' => '0.6', 'title' => ''], + ], + [ + 'name' => 'Enable', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether the rule is enabled.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -1838,65 +764,53 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The business data.', 'type' => 'object', 'properties' => [ - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], + 'MetricType' => ['description' => 'The statistical dimension.', 'type' => 'integer', 'format' => 'int32', 'example' => '4', 'title' => ''], + 'Threshold' => ['description' => 'The threshold.', 'type' => 'number', 'format' => 'float', 'example' => '0.6', 'title' => ''], + 'RuleId' => ['description' => 'The rule ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.RuleId', - 'errorMessage' => 'The specified RuleId is invalid.', - ], + ['errorCode' => 'IllegalArgument.AppName', 'errorMessage' => 'The specified AppName is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.MetricType', 'errorMessage' => 'The specified MetricType is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Namespace', 'errorMessage' => 'The specified Namespace is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Threshold', 'errorMessage' => 'The specified Threshold is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"RuleId\\": 123\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<DeleteFlowRuleResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <RuleId>123</RuleId>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</DeleteFlowRuleResponse>","errorExample":""}]', - 'title' => 'DeleteFlowRule', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"MetricType\\": 4,\\n \\"Threshold\\": 0.6,\\n \\"RuleId\\": 123,\\n \\"Enable\\": true\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Create a system rule', + 'summary' => 'Creates a system rule by calling the CreateSystemRule operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'EnableFlowRule' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateSystemRule'], + ], ], + ], + 'DeleteDegradeRule' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1909,22 +823,12 @@ [ 'name' => 'RuleId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '123', - ], + 'schema' => ['description' => 'The rule ID.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '123', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -1932,160 +836,47 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The returned data.', 'type' => 'object', 'properties' => [ - 'RefResource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleServiceB', - ], - 'ClusterFallbackThreshold' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '30', - ], - 'Namespace' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'StatDurationMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5000', - ], - 'LimitOrigin' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'ClusterThresholdType' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'RelationStrategy' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Resource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleServiceA', - ], - 'AppName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ahas-demo', - ], - 'MaxQueueingTimeMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2000', - ], - 'ControlBehavior' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'ClusterEstimatedMaxQps' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '3000', - ], - 'WarmUpPeriodSec' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '30', - ], - 'ClusterFallbackStrategy' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '50', - ], - 'ClusterMode' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], - 'Enable' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'RuleId' => ['description' => 'The rule ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], ], + 'title' => '', + 'example' => '', ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the call was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument', - 'errorMessage' => 'The specified parameter is invalid.', - ], + ['errorCode' => 'IllegalArgument.RuleId', 'errorMessage' => 'The specified RuleId is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"RefResource\\": \\"handleServiceB\\",\\n \\"ClusterFallbackThreshold\\": 30,\\n \\"Namespace\\": \\"default\\",\\n \\"StatDurationMs\\": 5000,\\n \\"LimitOrigin\\": \\"default\\",\\n \\"ClusterThresholdType\\": 0,\\n \\"RuleId\\": 123,\\n \\"RelationStrategy\\": 0,\\n \\"Resource\\": \\"handleServiceA\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"MaxQueueingTimeMs\\": 2000,\\n \\"ControlBehavior\\": 0,\\n \\"ClusterEstimatedMaxQps\\": 3000,\\n \\"WarmUpPeriodSec\\": 30,\\n \\"ClusterFallbackStrategy\\": 1,\\n \\"Threshold\\": 50,\\n \\"ClusterMode\\": true,\\n \\"Enable\\": true\\n }\\n}","errorExample":""},{"type":"xml","example":"<EnableFlowRuleResponse>\\n<Message>null</Message>\\n<RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n<Data>\\n <RefResource>handleServiceB</RefResource>\\n <ClusterMode>true</ClusterMode>\\n <RuleId>123</RuleId>\\n <Resource>handleServiceA</Resource>\\n <MaxQueueingTimeMs>2000</MaxQueueingTimeMs>\\n <Namespace>default</Namespace>\\n <AppName>ahas-demo</AppName>\\n <WarmUpPeriodSec>30</WarmUpPeriodSec>\\n <ClusterThresholdType>0</ClusterThresholdType>\\n <ClusterFallbackStrategy>1</ClusterFallbackStrategy>\\n <ControlBehavior>0</ControlBehavior>\\n <ClusterFallbackThreshold>30</ClusterFallbackThreshold>\\n <Enable>true</Enable>\\n <RelationStrategy>0</RelationStrategy>\\n <LimitOrigin>default</LimitOrigin>\\n <ClusterEstimatedMaxQps>3000</ClusterEstimatedMaxQps>\\n <Threshold>50</Threshold>\\n <StatDurationMs>5000</StatDurationMs>\\n</Data>\\n<Code>200</Code>\\n<Success>true</Success>\\n</EnableFlowRuleResponse>","errorExample":""}]', - 'title' => 'EnableFlowRule', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"RuleId\\": 123\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Delete a circuit breaking rule', + 'summary' => 'Calls the DeleteDegradeRule operation to delete a circuit breaking rule.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DisableFlowRule' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteDegradeRule'], + ], ], + ], + 'DeleteFlowRule' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2098,24 +889,12 @@ [ 'name' => 'RuleId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '123', - ], + 'schema' => ['description' => 'The ID of the flow control rule.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '123', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -2123,160 +902,47 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The returned data.', 'type' => 'object', 'properties' => [ - 'RefResource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleServiceB', - ], - 'ClusterFallbackThreshold' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '30', - ], - 'Namespace' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'LimitOrigin' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'StatDurationMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5000', - ], - 'ClusterThresholdType' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'RelationStrategy' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'AppName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ahas-demo', - ], - 'Resource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleServiceA', - ], - 'MaxQueueingTimeMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2000', - ], - 'ClusterEstimatedMaxQps' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '5000', - ], - 'ControlBehavior' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'WarmUpPeriodSec' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '30', - ], - 'ClusterFallbackStrategy' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '300', - ], - 'ClusterMode' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], - 'Enable' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'false', - ], + 'RuleId' => ['description' => 'The rule ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.RuleId', - 'errorMessage' => 'The specified RuleId is invalid.', - ], + ['errorCode' => 'IllegalArgument.RuleId', 'errorMessage' => 'The specified RuleId is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"RefResource\\": \\"handleServiceB\\",\\n \\"ClusterFallbackThreshold\\": 30,\\n \\"Namespace\\": \\"default\\",\\n \\"LimitOrigin\\": \\"default\\",\\n \\"StatDurationMs\\": 5000,\\n \\"ClusterThresholdType\\": 0,\\n \\"RuleId\\": 123,\\n \\"RelationStrategy\\": 0,\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"Resource\\": \\"handleServiceA\\",\\n \\"MaxQueueingTimeMs\\": 2000,\\n \\"ClusterEstimatedMaxQps\\": 5000,\\n \\"ControlBehavior\\": 0,\\n \\"WarmUpPeriodSec\\": 30,\\n \\"ClusterFallbackStrategy\\": 0,\\n \\"Threshold\\": 300,\\n \\"ClusterMode\\": true,\\n \\"Enable\\": false\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<DisableFlowRuleResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <RefResource>handleServiceB</RefResource>\\n <ClusterFallbackThreshold>30</ClusterFallbackThreshold>\\n <Namespace>default</Namespace>\\n <LimitOrigin>default</LimitOrigin>\\n <StatDurationMs>5000</StatDurationMs>\\n <ClusterThresholdType>0</ClusterThresholdType>\\n <RuleId>123</RuleId>\\n <RelationStrategy>0</RelationStrategy>\\n <AppName>ahas-demo</AppName>\\n <Resource>handleServiceA</Resource>\\n <MaxQueueingTimeMs>2000</MaxQueueingTimeMs>\\n <ClusterEstimatedMaxQps>5000</ClusterEstimatedMaxQps>\\n <ControlBehavior>0</ControlBehavior>\\n <WarmUpPeriodSec>30</WarmUpPeriodSec>\\n <ClusterFallbackStrategy>0</ClusterFallbackStrategy>\\n <Threshold>300</Threshold>\\n <ClusterMode>true</ClusterMode>\\n <Enable>false</Enable>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</DisableFlowRuleResponse>","errorExample":""}]', - 'title' => 'DisableFlowRule', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"RuleId\\": 123\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Delete a flow control rule', + 'summary' => 'Deletes a flow control rule by calling the DeleteFlowRule operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'ModifyFlowRule' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteFlowRule'], + ], ], + ], + 'DeleteHotParamRule' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2287,387 +953,80 @@ 'systemTags' => [], 'parameters' => [ [ - 'name' => 'Namespace', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => 'default', - 'required' => false, - 'type' => 'string', - ], - ], - [ 'name' => 'RuleId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => '123', - 'format' => 'int64', - 'required' => true, - 'type' => 'integer', - ], - ], - [ - 'name' => 'RelationStrategy', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => '0', - 'format' => 'int32', - 'required' => false, - 'type' => 'integer', - ], - ], - [ - 'name' => 'Threshold', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => '50', - 'format' => 'float', - 'required' => false, - 'type' => 'number', - ], - ], - [ - 'name' => 'LimitOrigin', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => 'default', - 'required' => false, - 'type' => 'string', - ], - ], - [ - 'name' => 'RefResource', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => 'handleServiceB', - 'required' => false, - 'type' => 'string', - ], - ], - [ - 'name' => 'ControlBehavior', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => '0', - 'required' => false, - 'type' => 'string', - ], - ], - [ - 'name' => 'WarmUpPeriodSec', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => '30', - 'format' => 'int32', - 'required' => false, - 'type' => 'integer', - ], - ], - [ - 'name' => 'MaxQueueingTimeMs', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => '2000', - 'format' => 'int32', - 'required' => false, - 'type' => 'integer', - ], + 'schema' => ['description' => 'The ID of the hot parameter rule.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '123', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => 'cn-hangzhou', - 'required' => false, - 'type' => 'string', - ], - ], - [ - 'name' => 'ThresholdMode', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => '2', - 'format' => 'int32', - 'required' => false, - 'type' => 'integer', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'example' => 'null', - 'type' => 'string', - ], - 'RequestId' => [ - 'description' => '', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94E*****10', - 'type' => 'string', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The returned data.', + 'type' => 'object', 'properties' => [ - 'RefResource' => [ - 'description' => '', - 'example' => 'handleServiceB', - 'type' => 'string', - ], - 'ClusterFallbackThreshold' => [ - 'description' => '', - 'example' => '0', - 'format' => 'int32', - 'type' => 'integer', - ], - 'Namespace' => [ - 'description' => '', - 'example' => 'default', - 'type' => 'string', - ], - 'LimitOrigin' => [ - 'description' => '', - 'example' => 'default', - 'type' => 'string', - ], - 'StatDurationMs' => [ - 'description' => '', - 'example' => '0', - 'format' => 'int32', - 'type' => 'integer', - ], - 'ClusterThresholdType' => [ - 'description' => '', - 'example' => '0', - 'format' => 'int32', - 'type' => 'integer', - ], - 'RuleId' => [ - 'description' => '', - 'example' => '123', - 'format' => 'int64', - 'type' => 'integer', - ], - 'RelationStrategy' => [ - 'description' => '', - 'example' => '0', - 'format' => 'int32', - 'type' => 'integer', - ], - 'AppName' => [ - 'description' => '', - 'example' => 'ahas-demo', - 'type' => 'string', - ], - 'Resource' => [ - 'description' => '', - 'example' => 'handleServiceA', - 'type' => 'string', - ], - 'MaxQueueingTimeMs' => [ - 'description' => '', - 'example' => '2000', - 'format' => 'int32', - 'type' => 'integer', - ], - 'ClusterEstimatedMaxQps' => [ - 'description' => '', - 'example' => '0', - 'format' => 'float', - 'type' => 'number', - ], - 'ControlBehavior' => [ - 'description' => '', - 'example' => '0', - 'format' => 'int32', - 'type' => 'integer', - ], - 'WarmUpPeriodSec' => [ - 'description' => '', - 'example' => '30', - 'format' => 'int32', - 'type' => 'integer', - ], - 'ClusterFallbackStrategy' => [ - 'description' => '', - 'example' => '0', - 'format' => 'int32', - 'type' => 'integer', - ], - 'Threshold' => [ - 'description' => '', - 'example' => '50', - 'format' => 'float', - 'type' => 'number', - ], - 'ThresholdMode' => [ - 'description' => '', - 'example' => '2', - 'format' => 'int32', - 'type' => 'integer', - ], - 'ClusterMode' => [ - 'description' => '', - 'example' => 'false', - 'type' => 'boolean', - ], - 'Enable' => [ - 'description' => '', - 'example' => 'true', - 'type' => 'boolean', - ], + 'RuleId' => ['description' => 'The rule ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], ], - 'type' => 'object', - ], - 'Code' => [ - 'description' => '', - 'example' => '200', - 'type' => 'string', - ], - 'Success' => [ - 'description' => '', - 'example' => 'true', - 'type' => 'boolean', + 'title' => '', + 'example' => '', ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], - 'type' => 'object', + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.AppName', - 'errorMessage' => 'The specified AppName is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.ControlBehavior', - 'errorMessage' => 'The specified ControlBehavior is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Namespace', - 'errorMessage' => 'The specified Namespace is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.RefResource', - 'errorMessage' => 'The specified RefResource is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.RelationStrategy', - 'errorMessage' => 'The specified RelationStrategy is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Resource', - 'errorMessage' => 'The specified Resource is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.RuleId', - 'errorMessage' => 'The specified RuleId is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Threshold', - 'errorMessage' => 'The specified Threshold is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.WarmUpPeriodSec', - 'errorMessage' => 'The specified WarmUpPeriodSec is invalid.', - ], + ['errorCode' => 'IllegalArgument.RuleId', 'errorMessage' => 'The specified RuleId is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94E*****10\\",\\n \\"Data\\": {\\n \\"RefResource\\": \\"handleServiceB\\",\\n \\"ClusterFallbackThreshold\\": 0,\\n \\"Namespace\\": \\"default\\",\\n \\"LimitOrigin\\": \\"default\\",\\n \\"StatDurationMs\\": 0,\\n \\"ClusterThresholdType\\": 0,\\n \\"RuleId\\": 123,\\n \\"RelationStrategy\\": 0,\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"Resource\\": \\"handleServiceA\\",\\n \\"MaxQueueingTimeMs\\": 2000,\\n \\"ClusterEstimatedMaxQps\\": 0,\\n \\"ControlBehavior\\": 0,\\n \\"WarmUpPeriodSec\\": 30,\\n \\"ClusterFallbackStrategy\\": 0,\\n \\"Threshold\\": 50,\\n \\"ThresholdMode\\": 2,\\n \\"ClusterMode\\": false,\\n \\"Enable\\": true\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<ModifyFlowRuleResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94E*****10</RequestId>\\n <Data>\\n <RefResource>handleServiceB</RefResource>\\n <ClusterFallbackThreshold>0</ClusterFallbackThreshold>\\n <Namespace>default</Namespace>\\n <LimitOrigin>default</LimitOrigin>\\n <StatDurationMs>0</StatDurationMs>\\n <ClusterThresholdType>0</ClusterThresholdType>\\n <RuleId>123</RuleId>\\n <RelationStrategy>0</RelationStrategy>\\n <AppName>ahas-demo</AppName>\\n <Resource>handleServiceA</Resource>\\n <MaxQueueingTimeMs>2000</MaxQueueingTimeMs>\\n <ClusterEstimatedMaxQps>0</ClusterEstimatedMaxQps>\\n <ControlBehavior>0</ControlBehavior>\\n <WarmUpPeriodSec>30</WarmUpPeriodSec>\\n <ClusterFallbackStrategy>0</ClusterFallbackStrategy>\\n <Threshold>50</Threshold>\\n <ThresholdMode>2</ThresholdMode>\\n <ClusterMode>false</ClusterMode>\\n <Enable>true</Enable>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</ModifyFlowRuleResponse>","errorExample":""}]', - 'extraInfo' => ' ', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"RuleId\\": 123\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Delete a hot parameter rule', + 'summary' => 'Deletes a hot parameter rule by calling the DeleteHotParamRule operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', - 'title' => 'ModifyFlowRule', - ], - 'ListFlowRulesOfApp' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteHotParamRule'], + ], ], + ], + 'DeleteIsolationRule' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'abilityTreeNodes' => [ - 'FEATUREahasSBJFYF', - ], - ], + 'systemTags' => [], 'parameters' => [ [ - 'name' => 'Namespace', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'default', - ], - ], - [ - 'name' => 'AppName', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'ahas-demo', - ], - ], - [ - 'name' => 'PageIndex', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - ], - [ - 'name' => 'PageSize', + 'name' => 'RuleId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => 'The ID of the isolation rule.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '123', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -2675,634 +1034,195 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The returned data.', 'type' => 'object', 'properties' => [ - 'PageIndex' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Datas' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'RefResource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleServiceB', - ], - 'ClusterFallbackThreshold' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Namespace' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'LimitOrigin' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'StatDurationMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'ClusterThresholdType' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'RelationStrategy' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'AppName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ahas-demo', - ], - 'Resource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleServiceA', - ], - 'ClusterEstimatedMaxQps' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '0', - ], - 'ControlBehavior' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'MaxQueueingTimeMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2000', - ], - 'ClusterFallbackStrategy' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'WarmUpPeriodSec' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '30', - ], - 'ClusterMode' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'false', - ], - 'ThresholdMode' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '30', - ], - 'Enable' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], - ], - ], - ], - 'TotalPage' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3', - ], - 'PageSize' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'TotalCount' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '23', - ], + 'RuleId' => ['description' => 'The rule ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the call was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.AppName', - 'errorMessage' => 'The specified AppName is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Namespace', - 'errorMessage' => 'The specified Namespace is invalid.', - ], + ['errorCode' => 'IllegalArgument.RuleId', 'errorMessage' => 'The specified RuleId is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"PageIndex\\": 1,\\n \\"Datas\\": [\\n {\\n \\"RefResource\\": \\"handleServiceB\\",\\n \\"ClusterFallbackThreshold\\": 0,\\n \\"Namespace\\": \\"default\\",\\n \\"LimitOrigin\\": \\"default\\",\\n \\"StatDurationMs\\": 0,\\n \\"ClusterThresholdType\\": 0,\\n \\"RuleId\\": 123,\\n \\"RelationStrategy\\": 0,\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"Resource\\": \\"handleServiceA\\",\\n \\"ClusterEstimatedMaxQps\\": 0,\\n \\"ControlBehavior\\": 0,\\n \\"MaxQueueingTimeMs\\": 2000,\\n \\"ClusterFallbackStrategy\\": 0,\\n \\"WarmUpPeriodSec\\": 30,\\n \\"ClusterMode\\": false,\\n \\"ThresholdMode\\": 2,\\n \\"Threshold\\": 30,\\n \\"Enable\\": true\\n }\\n ],\\n \\"TotalPage\\": 3,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 23\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<ListFlowRulesOfAppResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <PageIndex>1</PageIndex>\\n <Datas>\\n <RefResource>handleServiceB</RefResource>\\n <ClusterFallbackThreshold>0</ClusterFallbackThreshold>\\n <Namespace>default</Namespace>\\n <LimitOrigin>default</LimitOrigin>\\n <StatDurationMs>0</StatDurationMs>\\n <ClusterThresholdType>0</ClusterThresholdType>\\n <RuleId>123</RuleId>\\n <RelationStrategy>0</RelationStrategy>\\n <AppName>ahas-demo</AppName>\\n <Resource>handleServiceA</Resource>\\n <ClusterEstimatedMaxQps>0</ClusterEstimatedMaxQps>\\n <ControlBehavior>0</ControlBehavior>\\n <MaxQueueingTimeMs>2000</MaxQueueingTimeMs>\\n <ClusterFallbackStrategy>0</ClusterFallbackStrategy>\\n <WarmUpPeriodSec>30</WarmUpPeriodSec>\\n <ClusterMode>false</ClusterMode>\\n <Threshold>30</Threshold>\\n <Enable>true</Enable>\\n </Datas>\\n <TotalPage>3</TotalPage>\\n <PageSize>10</PageSize>\\n <TotalCount>23</TotalCount>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</ListFlowRulesOfAppResponse>","errorExample":""}]', - 'title' => 'ListFlowRulesOfApp', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"RuleId\\": 123\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Delete an isolation rule', + 'summary' => 'Calls the DeleteIsolationRule operation to delete an isolation rule.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'ListFlowRulesOfResource' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteIsolationRule'], + ], ], + ], + 'DeleteSystemRule' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ - 'name' => 'Namespace', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => 'default', - 'required' => true, - 'type' => 'string', - ], - ], - [ - 'name' => 'AppName', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => 'ahas-demo', - 'required' => true, - 'type' => 'string', - ], - ], - [ - 'name' => 'Resource', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => 'handleServiceA', - 'required' => true, - 'type' => 'string', - ], - ], - [ - 'name' => 'PageIndex', + 'name' => 'RuleId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => '1', - 'format' => 'int32', - 'required' => false, - 'type' => 'integer', - ], - ], - [ - 'name' => 'PageSize', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => '10', - 'format' => 'int32', - 'required' => false, - 'type' => 'integer', - ], + 'schema' => ['description' => 'The ID of the system rule.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '123', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => 'cn-hangzhou', - 'required' => false, - 'type' => 'string', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'example' => 'null ', - 'type' => 'string', - ], - 'RequestId' => [ - 'description' => '', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94E*****10', - 'type' => 'string', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The returned data.', + 'type' => 'object', 'properties' => [ - 'PageIndex' => [ - 'description' => '', - 'example' => '1', - 'format' => 'int32', - 'type' => 'integer', - ], - 'Datas' => [ - 'description' => '', - 'items' => [ - 'properties' => [ - 'RefResource' => [ - 'description' => '', - 'example' => 'handleServiceB', - 'type' => 'string', - ], - 'ClusterFallbackThreshold' => [ - 'description' => '', - 'example' => '0', - 'format' => 'int32', - 'type' => 'integer', - ], - 'Namespace' => [ - 'description' => '', - 'example' => 'default', - 'type' => 'string', - ], - 'LimitOrigin' => [ - 'description' => '', - 'example' => 'default', - 'type' => 'string', - ], - 'StatDurationMs' => [ - 'description' => '', - 'example' => '0', - 'format' => 'int32', - 'type' => 'integer', - ], - 'ClusterThresholdType' => [ - 'description' => '', - 'example' => '0', - 'format' => 'int32', - 'type' => 'integer', - ], - 'RuleId' => [ - 'description' => '', - 'example' => '123', - 'format' => 'int64', - 'type' => 'integer', - ], - 'RelationStrategy' => [ - 'description' => '', - 'example' => '0', - 'format' => 'int32', - 'type' => 'integer', - ], - 'AppName' => [ - 'description' => '', - 'example' => 'ahas-demo', - 'type' => 'string', - ], - 'Resource' => [ - 'description' => '', - 'example' => 'handleServiceA', - 'type' => 'string', - ], - 'ClusterEstimatedMaxQps' => [ - 'description' => '', - 'example' => '0', - 'format' => 'float', - 'type' => 'number', - ], - 'ControlBehavior' => [ - 'description' => '', - 'example' => '0', - 'format' => 'int32', - 'type' => 'integer', - ], - 'MaxQueueingTimeMs' => [ - 'description' => '', - 'example' => '2000', - 'format' => 'int32', - 'type' => 'integer', - ], - 'ClusterFallbackStrategy' => [ - 'description' => '', - 'example' => '0', - 'format' => 'int32', - 'type' => 'integer', - ], - 'WarmUpPeriodSec' => [ - 'description' => '', - 'example' => '30', - 'format' => 'int32', - 'type' => 'integer', - ], - 'ClusterMode' => [ - 'description' => '', - 'example' => 'false', - 'type' => 'boolean', - ], - 'ThresholdMode' => [ - 'description' => '', - 'example' => '2', - 'format' => 'int32', - 'type' => 'integer', - ], - 'Threshold' => [ - 'description' => '', - 'example' => '30', - 'format' => 'float', - 'type' => 'number', - ], - 'Enable' => [ - 'description' => '', - 'example' => 'true', - 'type' => 'boolean', - ], - ], - 'type' => 'object', - ], - 'type' => 'array', - ], - 'TotalPage' => [ - 'description' => '', - 'example' => '3', - 'format' => 'int32', - 'type' => 'integer', - ], - 'PageSize' => [ - 'description' => '', - 'example' => '10', - 'format' => 'int32', - 'type' => 'integer', - ], - 'TotalCount' => [ - 'description' => '', - 'example' => '23', - 'format' => 'int32', - 'type' => 'integer', - ], + 'RuleId' => ['description' => 'The rule ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], ], - 'type' => 'object', - ], - 'Code' => [ - 'description' => '', - 'example' => '200', - 'type' => 'string', - ], - 'Success' => [ - 'description' => '', - 'example' => 'true', - 'type' => 'boolean', + 'title' => '', + 'example' => '', ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], - 'type' => 'object', + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.Resource', - 'errorMessage' => 'The specified Resource is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Namespace', - 'errorMessage' => 'The specified Namespace is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.AppName', - 'errorMessage' => 'The specified AppName is invalid.', - ], + ['errorCode' => 'IllegalArgument.RuleId', 'errorMessage' => 'The specified RuleId is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null \\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94E*****10\\",\\n \\"Data\\": {\\n \\"PageIndex\\": 1,\\n \\"Datas\\": [\\n {\\n \\"RefResource\\": \\"handleServiceB\\",\\n \\"ClusterFallbackThreshold\\": 0,\\n \\"Namespace\\": \\"default\\",\\n \\"LimitOrigin\\": \\"default\\",\\n \\"StatDurationMs\\": 0,\\n \\"ClusterThresholdType\\": 0,\\n \\"RuleId\\": 123,\\n \\"RelationStrategy\\": 0,\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"Resource\\": \\"handleServiceA\\",\\n \\"ClusterEstimatedMaxQps\\": 0,\\n \\"ControlBehavior\\": 0,\\n \\"MaxQueueingTimeMs\\": 2000,\\n \\"ClusterFallbackStrategy\\": 0,\\n \\"WarmUpPeriodSec\\": 30,\\n \\"ClusterMode\\": false,\\n \\"ThresholdMode\\": 2,\\n \\"Threshold\\": 30,\\n \\"Enable\\": true\\n }\\n ],\\n \\"TotalPage\\": 3,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 23\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<ListFlowRulesOfResourceResponse>\\n <Message>null </Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94E*****10</RequestId>\\n <Data>\\n <PageIndex>1</PageIndex>\\n <Datas>\\n <RefResource>handleServiceB</RefResource>\\n <ClusterFallbackThreshold>0</ClusterFallbackThreshold>\\n <Namespace>default</Namespace>\\n <LimitOrigin>default</LimitOrigin>\\n <StatDurationMs>0</StatDurationMs>\\n <ClusterThresholdType>0</ClusterThresholdType>\\n <RuleId>123</RuleId>\\n <RelationStrategy>0</RelationStrategy>\\n <AppName>ahas-demo</AppName>\\n <Resource>handleServiceA</Resource>\\n <ClusterEstimatedMaxQps>0</ClusterEstimatedMaxQps>\\n <ControlBehavior>0</ControlBehavior>\\n <MaxQueueingTimeMs>2000</MaxQueueingTimeMs>\\n <ClusterFallbackStrategy>0</ClusterFallbackStrategy>\\n <WarmUpPeriodSec>30</WarmUpPeriodSec>\\n <ClusterMode>false</ClusterMode>\\n <ThresholdMode>2</ThresholdMode>\\n <Threshold>30</Threshold>\\n <Enable>true</Enable>\\n </Datas>\\n <TotalPage>3</TotalPage>\\n <PageSize>10</PageSize>\\n <TotalCount>23</TotalCount>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</ListFlowRulesOfResourceResponse>","errorExample":""}]', - 'extraInfo' => ' ', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"RuleId\\": 123\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Delete a system rule', + 'summary' => 'Deletes a system rule.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', - 'title' => 'ListFlowRulesOfResource', - ], - 'CreateDegradeRule' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteSystemRule'], + ], ], + ], + 'DescribeRegions' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', - 'deprecated' => false, - 'systemTags' => [], + 'operationType' => 'read', + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '20659', + 'abilityTreeNodes' => ['FEATUREahasF8SZSQ'], + ], 'parameters' => [ [ - 'name' => 'Namespace', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'default', - ], - ], - [ - 'name' => 'AppName', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'ahas-demo', - ], - ], - [ - 'name' => 'Resource', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'handleService', - ], - ], - [ - 'name' => 'Strategy', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'docRequired' => true, - 'example' => '0', - ], - ], - [ - 'name' => 'Threshold', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'required' => true, - 'docRequired' => true, - 'example' => '0.6', - ], - ], - [ - 'name' => 'Enable', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - ], - [ - 'name' => 'RecoveryTimeoutMs', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'docRequired' => true, - 'example' => '5000', - ], - ], - [ - 'name' => 'StatDurationMs', + 'name' => 'AcceptLanguage', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '2000', - ], + 'schema' => ['type' => 'string', 'required' => false, 'description' => '', 'title' => '', 'example' => ''], ], - [ - 'name' => 'SlowRtMs', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'RequestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'Regions' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'LocalName' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'RegionEndpoint' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'RegionId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'Code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'Success' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''], + ], 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '2000', + 'title' => '', + 'example' => '', ], ], - [ - 'name' => 'MinRequestAmount', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], + ], + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"\\",\\n \\"RequestId\\": \\"\\",\\n \\"Regions\\": [\\n {\\n \\"LocalName\\": \\"\\",\\n \\"RegionEndpoint\\": \\"\\",\\n \\"RegionId\\": \\"\\"\\n }\\n ],\\n \\"Code\\": \\"\\",\\n \\"Success\\": false\\n}","type":"json"}]', + 'title' => '', + 'summary' => '', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRegions'], ], + ], + ], + 'DisableDegradeRule' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'HalfOpenBaseAmountPerStep', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '5', - ], + 'AK' => [], ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ [ - 'name' => 'HalfOpenRecoveryStepNum', + 'name' => 'RuleId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => 'The ID of the circuit breaking rule.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '123', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -3310,172 +1230,59 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The business data.', 'type' => 'object', 'properties' => [ - 'SlowRtMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2000', - ], - 'HalfOpenRecoveryStepNum' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Namespace' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'StatDurationMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2000', - ], - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'Strategy' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Resource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleService', - ], - 'AppName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ahas-demo', - ], - 'HalfOpenBaseAmountPerStep' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5', - ], - 'RecoveryTimeoutMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5000', - ], - 'MinRequestAmount' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '0.6', - ], - 'Enable' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'SlowRtMs' => ['description' => 'The response time (RT) threshold for slow calls.', 'type' => 'integer', 'format' => 'int32', 'example' => '2000', 'title' => ''], + 'HalfOpenRecoveryStepNum' => ['description' => 'The number of steps in the circuit breaking recovery phase.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default ', 'title' => ''], + 'StatDurationMs' => ['description' => 'The duration of the statistics window.', 'type' => 'integer', 'format' => 'int32', 'example' => '2000', 'title' => ''], + 'RuleId' => ['description' => 'The ID of the circuit breaking rule.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'Strategy' => ['description' => 'The threshold type.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Resource' => ['description' => 'The resource name.', 'type' => 'string', 'example' => 'handleService', 'title' => ''], + 'AppName' => ['description' => 'The application name. If the application is an Enterprise Distributed Application Service (EDAS) application, the AppName is the App ID in EDAS. You can view the corresponding ID in the EDAS console by choosing Application Management > Basic Information.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'HalfOpenBaseAmountPerStep' => ['description' => 'The minimum number of requests allowed per step during circuit breaking recovery.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''], + 'RecoveryTimeoutMs' => ['description' => 'The circuit breaking duration.', 'type' => 'integer', 'format' => 'int32', 'example' => '5000', 'title' => ''], + 'MinRequestAmount' => ['description' => 'The minimum number of requests required to trigger circuit breaking.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], + 'Threshold' => ['description' => 'The circuit breaking threshold that corresponds to the threshold type.', 'type' => 'number', 'format' => 'float', 'example' => '0.6', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'false', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the call was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.AppName', - 'errorMessage' => 'The specified AppName is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.HalfOpenBaseAmountPerStep', - 'errorMessage' => 'The specified HalfOpenBaseAmountPerStep is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.HalfOpenRecoveryStepNum', - 'errorMessage' => 'The specified HalfOpenRecoveryStepNum is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.MinRequestAmount', - 'errorMessage' => 'The specified MinRequestAmount is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Namespace', - 'errorMessage' => 'The specified Namespace is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.RecoveryTimeoutMs', - 'errorMessage' => 'The specified RecoveryTimeoutMs is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Resource', - 'errorMessage' => 'The specified Resource is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.SlowRtMS', - 'errorMessage' => 'The specified SlowRtMs is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.StatDurationMs', - 'errorMessage' => 'The specified StatDurationMs is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Strategy', - 'errorMessage' => 'The specified Strategy is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Threshold', - 'errorMessage' => 'The specified Threshold is invalid.', - ], + ['errorCode' => 'IllegalArgument.RuleId', 'errorMessage' => 'The specified RuleId is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"SlowRtMs\\": 2000,\\n \\"HalfOpenRecoveryStepNum\\": 1,\\n \\"Namespace\\": \\"default\\",\\n \\"StatDurationMs\\": 2000,\\n \\"RuleId\\": 1,\\n \\"Strategy\\": 0,\\n \\"Resource\\": \\"handleService\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"HalfOpenBaseAmountPerStep\\": 5,\\n \\"RecoveryTimeoutMs\\": 5000,\\n \\"MinRequestAmount\\": 10,\\n \\"Threshold\\": 0.6,\\n \\"Enable\\": true\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<CreateDegradeRuleResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <SlowRtMs>2000</SlowRtMs>\\n <HalfOpenRecoveryStepNum>1</HalfOpenRecoveryStepNum>\\n <Namespace>default</Namespace>\\n <StatDurationMs>2000</StatDurationMs>\\n <RuleId>1</RuleId>\\n <Strategy>0</Strategy>\\n <Resource>handleService</Resource>\\n <AppName>ahas-demo</AppName>\\n <HalfOpenBaseAmountPerStep>5</HalfOpenBaseAmountPerStep>\\n <RecoveryTimeoutMs>5000</RecoveryTimeoutMs>\\n <MinRequestAmount>10</MinRequestAmount>\\n <Threshold>0.6</Threshold>\\n <Enable>true</Enable>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</CreateDegradeRuleResponse>","errorExample":""}]', - 'title' => 'CreateDegradeRule', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"SlowRtMs\\": 2000,\\n \\"HalfOpenRecoveryStepNum\\": 1,\\n \\"Namespace\\": \\"default \\",\\n \\"StatDurationMs\\": 2000,\\n \\"RuleId\\": 123,\\n \\"Strategy\\": 0,\\n \\"Resource\\": \\"handleService\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"HalfOpenBaseAmountPerStep\\": 5,\\n \\"RecoveryTimeoutMs\\": 5000,\\n \\"MinRequestAmount\\": 10,\\n \\"Threshold\\": 0.6,\\n \\"Enable\\": false\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Disable a circuit breaking rule', + 'summary' => 'Disables a circuit breaking rule by calling the DisableDegradeRule operation.', + 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DeleteDegradeRule' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisableDegradeRule'], + ], ], + ], + 'DisableFlowRule' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3488,24 +1295,12 @@ [ 'name' => 'RuleId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '123', - ], + 'schema' => ['description' => 'The ID of the throttling rule.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '123', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -3513,65 +1308,71 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The data of the throttling rule.', 'type' => 'object', 'properties' => [ - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], + 'RefResource' => ['description' => 'The name of the associated interface or the name of the entry resource.', 'type' => 'string', 'example' => 'handleServiceB', 'title' => ''], + 'ClusterFallbackThreshold' => ['description' => 'The fallback threshold for standalone mode. This parameter is returned when the fallback strategy is set to fall back to standalone mode (ClusterFallbackStrategy=0).', 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'LimitOrigin' => ['description' => 'The source application.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'StatDurationMs' => ['description' => 'The duration of the statistics window in cluster mode.', 'type' => 'integer', 'format' => 'int32', 'example' => '5000', 'title' => ''], + 'ClusterThresholdType' => ['description' => 'The threshold mode. Valid values:'."\n" + .'- 0: standalone-distributed threshold.'."\n" + .'- 1: cluster threshold.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'RuleId' => ['description' => 'The ID of the throttling rule.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'RelationStrategy' => ['description' => 'The statistics dimension.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'AppName' => ['description' => 'The application name. If the application is an EDAS application, AppName is the App ID in EDAS. You can view the corresponding ID in the EDAS console by choosing Application Management > Basic Information.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'Resource' => ['description' => 'The resource name.', 'type' => 'string', 'example' => 'handleServiceA', 'title' => ''], + 'MaxQueueingTimeMs' => ['description' => 'The timeout period.', 'type' => 'integer', 'format' => 'int32', 'example' => '2000', 'title' => ''], + 'ClusterEstimatedMaxQps' => ['description' => 'The estimated maximum QPS of the cluster interface.', 'type' => 'number', 'format' => 'float', 'example' => '5000', 'title' => ''], + 'ControlBehavior' => ['description' => 'The throttling behavior. Valid values:'."\n" + .'- 0: fast failure.'."\n" + .'- 1: warm-up.'."\n" + .'- 2: queuing.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'WarmUpPeriodSec' => ['description' => 'The warm-up period.', 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''], + 'ClusterFallbackStrategy' => ['description' => 'The fallback strategy when cluster throttling communication fails. Valid values:'."\n" + .'- 0: fall back to standalone mode.'."\n" + .'- 1: pass directly.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Threshold' => ['description' => 'The threshold.', 'type' => 'number', 'format' => 'float', 'example' => '300', 'title' => ''], + 'ClusterMode' => ['description' => 'Indicates whether cluster mode is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'false', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the call was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.RuleId', - 'errorMessage' => 'The specified RuleId is invalid.', - ], + ['errorCode' => 'IllegalArgument.RuleId', 'errorMessage' => 'The specified RuleId is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"RuleId\\": 123\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<DeleteDegradeRuleResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <RuleId>123</RuleId>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</DeleteDegradeRuleResponse>","errorExample":""}]', - 'title' => 'DeleteDegradeRule', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"RefResource\\": \\"handleServiceB\\",\\n \\"ClusterFallbackThreshold\\": 30,\\n \\"Namespace\\": \\"default\\",\\n \\"LimitOrigin\\": \\"default\\",\\n \\"StatDurationMs\\": 5000,\\n \\"ClusterThresholdType\\": 0,\\n \\"RuleId\\": 123,\\n \\"RelationStrategy\\": 0,\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"Resource\\": \\"handleServiceA\\",\\n \\"MaxQueueingTimeMs\\": 2000,\\n \\"ClusterEstimatedMaxQps\\": 5000,\\n \\"ControlBehavior\\": 0,\\n \\"WarmUpPeriodSec\\": 30,\\n \\"ClusterFallbackStrategy\\": 0,\\n \\"Threshold\\": 300,\\n \\"ClusterMode\\": true,\\n \\"Enable\\": false\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Disable a throttling rule', + 'summary' => 'Disables a throttling rule by calling the DisableFlowRule operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'EnableDegradeRule' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisableFlowRule'], + ], ], + ], + 'DisableHotParamRule' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3584,24 +1385,12 @@ [ 'name' => 'RuleId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '123', - ], + 'schema' => ['description' => 'The ID of the hot parameter rule.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '123', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['type' => 'string', 'required' => false, 'description' => '', 'title' => '', 'example' => ''], ], ], 'responses' => [ @@ -3609,133 +1398,75 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The data of the hot parameter rule.', 'type' => 'object', 'properties' => [ - 'SlowRtMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2000', - ], - 'HalfOpenRecoveryStepNum' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Namespace' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'StatDurationMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2000', - ], - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'Strategy' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Resource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleService', - ], - 'AppName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ahas-demo', - ], - 'HalfOpenBaseAmountPerStep' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5', - ], - 'RecoveryTimeoutMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5000', - ], - 'MinRequestAmount' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '0.6', - ], - 'Enable' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', + 'ParamIdx' => ['description' => 'The index of the parameter position.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'StatDurationSec' => ['description' => 'The statistical period in seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''], + 'BurstCount' => ['description' => 'The number of burst requests allowed.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''], + 'RuleId' => ['description' => 'The ID of the hot parameter rule.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'AppName' => ['description' => 'The application name. If the application is an EDAS application, the AppName is the App ID in EDAS. You can view the corresponding ID in the EDAS console by choosing Application Management > Basic Information.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'Resource' => ['description' => 'The resource name.', 'type' => 'string', 'example' => 'handleService', 'title' => ''], + 'ControlBehavior' => ['description' => 'The throttling behavior. A value of 0 indicates fast failure. A value of 2 indicates queuing.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'MaxQueueingTimeMs' => ['description' => 'The timeout period when the throttling behavior is set to queuing.', 'type' => 'integer', 'format' => 'int32', 'example' => '3000', 'title' => ''], + 'MetricType' => ['description' => 'The metric type. A value of 0 indicates concurrency. A value of 1 indicates passed requests.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Threshold' => ['description' => 'The threshold for a single machine.', 'type' => 'number', 'format' => 'float', 'example' => '20', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'false', 'title' => ''], + 'ParamFlowItemList' => [ + 'description' => 'The list of hot parameter exception items.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ItemValue' => ['description' => 'The value of the exception item parameter.', 'type' => 'string', 'example' => 'apple', 'title' => ''], + 'Threshold' => ['description' => 'The threshold of the exception item.', 'type' => 'number', 'format' => 'float', 'example' => '10', 'title' => ''], + 'ItemType' => ['description' => 'The type of the exception item.', 'type' => 'string', 'example' => 'String', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], ], - ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.RuleId', - 'errorMessage' => 'The specified RuleId is invalid.', - ], + ['errorCode' => 'IllegalArgument', 'errorMessage' => 'The specified parameter is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"SlowRtMs\\": 2000,\\n \\"HalfOpenRecoveryStepNum\\": 1,\\n \\"Namespace\\": \\"default\\",\\n \\"StatDurationMs\\": 2000,\\n \\"RuleId\\": 123,\\n \\"Strategy\\": 200,\\n \\"Resource\\": \\"handleService\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"HalfOpenBaseAmountPerStep\\": 5,\\n \\"RecoveryTimeoutMs\\": 5000,\\n \\"MinRequestAmount\\": 10,\\n \\"Threshold\\": 0.6,\\n \\"Enable\\": true\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<EnableDegradeRuleResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <SlowRtMs>2000</SlowRtMs>\\n <HalfOpenRecoveryStepNum>1</HalfOpenRecoveryStepNum>\\n <Namespace>default</Namespace>\\n <StatDurationMs>2000</StatDurationMs>\\n <RuleId>123</RuleId>\\n <Strategy>200</Strategy>\\n <Resource>handleService</Resource>\\n <AppName>ahas-demo</AppName>\\n <HalfOpenBaseAmountPerStep>5</HalfOpenBaseAmountPerStep>\\n <RecoveryTimeoutMs>5000</RecoveryTimeoutMs>\\n <MinRequestAmount>10</MinRequestAmount>\\n <Threshold>0.6</Threshold>\\n <Enable>true</Enable>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</EnableDegradeRuleResponse>","errorExample":""}]', - 'title' => 'EnableDegradeRule', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"ParamIdx\\": 1,\\n \\"Namespace\\": \\"default\\",\\n \\"StatDurationSec\\": 1,\\n \\"BurstCount\\": 2,\\n \\"RuleId\\": 123,\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"Resource\\": \\"handleService\\",\\n \\"ControlBehavior\\": 0,\\n \\"MaxQueueingTimeMs\\": 3000,\\n \\"MetricType\\": 0,\\n \\"Threshold\\": 20,\\n \\"Enable\\": false,\\n \\"ParamFlowItemList\\": [\\n {\\n \\"ItemValue\\": \\"apple\\",\\n \\"Threshold\\": 10,\\n \\"ItemType\\": \\"String\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => 'Disable a hot parameter rule', + 'summary' => 'Disables a hot parameter rule by calling the DisableHotParamRule operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DisableDegradeRule' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisableHotParamRule'], + ], ], + ], + 'DisableIsolationRule' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3748,24 +1479,12 @@ [ 'name' => 'RuleId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '123', - ], + 'schema' => ['description' => 'The ID of the isolation rule.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '100000000000000', 'minimum' => '0', 'isFileTransferUrl' => false, 'example' => '123', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -3773,195 +1492,73 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The data of the isolation rule.', 'type' => 'object', 'properties' => [ - 'SlowRtMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2000', - ], - 'HalfOpenRecoveryStepNum' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Namespace' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default ', - ], - 'StatDurationMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2000', - ], - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'Strategy' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Resource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleService', - ], - 'AppName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ahas-demo', - ], - 'HalfOpenBaseAmountPerStep' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5', - ], - 'RecoveryTimeoutMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5000', - ], - 'MinRequestAmount' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '0.6', - ], - 'Enable' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'false', - ], + 'RelationStrategy' => ['description' => 'The statistical dimension.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Resource' => ['description' => 'The resource name.', 'type' => 'string', 'example' => 'handleServiceA', 'title' => ''], + 'AppName' => ['description' => 'The application name. If the application is an EDAS application, the AppName is the App ID in EDAS. You can view the corresponding ID in the EDAS console by choosing Application Management > Basic Information.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'RefResource' => ['description' => 'The name of the associated interface or the call stack entry name.', 'type' => 'string', 'example' => 'handleServiceB', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'LimitOrigin' => ['description' => 'The source application.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'Threshold' => ['description' => 'The concurrency threshold.', 'type' => 'number', 'format' => 'float', 'example' => '10', 'title' => ''], + 'RuleId' => ['description' => 'The ID of the isolation rule.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'false', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the call is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.RuleId', - 'errorMessage' => 'The specified RuleId is invalid.', - ], + ['errorCode' => 'IllegalArgument.RuleId', 'errorMessage' => 'The specified RuleId is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"SlowRtMs\\": 2000,\\n \\"HalfOpenRecoveryStepNum\\": 1,\\n \\"Namespace\\": \\"default \\",\\n \\"StatDurationMs\\": 2000,\\n \\"RuleId\\": 123,\\n \\"Strategy\\": 0,\\n \\"Resource\\": \\"handleService\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"HalfOpenBaseAmountPerStep\\": 5,\\n \\"RecoveryTimeoutMs\\": 5000,\\n \\"MinRequestAmount\\": 10,\\n \\"Threshold\\": 0.6,\\n \\"Enable\\": false\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<DisableDegradeRuleResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <SlowRtMs>2000</SlowRtMs>\\n <HalfOpenRecoveryStepNum>1</HalfOpenRecoveryStepNum>\\n <Namespace>default </Namespace>\\n <StatDurationMs>2000</StatDurationMs>\\n <RuleId>123</RuleId>\\n <Strategy>0</Strategy>\\n <Resource>handleService</Resource>\\n <AppName>ahas-demo</AppName>\\n <HalfOpenBaseAmountPerStep>5</HalfOpenBaseAmountPerStep>\\n <RecoveryTimeoutMs>5000</RecoveryTimeoutMs>\\n <MinRequestAmount>10</MinRequestAmount>\\n <Threshold>0.6</Threshold>\\n <Enable>false</Enable>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</DisableDegradeRuleResponse>","errorExample":""}]', - 'title' => 'DisableDegradeRule', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"RelationStrategy\\": 0,\\n \\"Resource\\": \\"handleServiceA\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"RefResource\\": \\"handleServiceB\\",\\n \\"Namespace\\": \\"default\\",\\n \\"LimitOrigin\\": \\"default\\",\\n \\"Threshold\\": 10,\\n \\"RuleId\\": 123,\\n \\"Enable\\": false\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Disable an isolation rule', + 'summary' => 'Disables an isolation rule by calling the DisableIsolationRule operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'ListDegradeRulesOfApp' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisableIsolationRule'], + ], ], + ], + 'DisableSystemRule' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ - 'name' => 'Namespace', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'default', - ], - ], - [ - 'name' => 'AppName', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'ahas-demo', - ], - ], - [ - 'name' => 'PageIndex', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - ], - [ - 'name' => 'PageSize', + 'name' => 'RuleId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => 'The ID of the system rule.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '123', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -3969,243 +1566,68 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The data of the system rule.', 'type' => 'object', 'properties' => [ - 'PageIndex' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Datas' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'SlowRtMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2000', - ], - 'HalfOpenRecoveryStepNum' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Namespace' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'StatDurationMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2000', - ], - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'Strategy' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Resource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleServiceA', - ], - 'AppName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ahas-demo', - ], - 'HalfOpenBaseAmountPerStep' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5', - ], - 'RecoveryTimeoutMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5000', - ], - 'MinRequestAmount' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '0.6', - ], - 'Enable' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], - ], - ], - ], - 'TotalPage' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3', - ], - 'PageSize' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'TotalCount' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '23', - ], + 'MetricType' => ['description' => 'The statistical dimension.', 'type' => 'integer', 'format' => 'int32', 'example' => '4', 'title' => ''], + 'Threshold' => ['description' => 'The threshold.', 'type' => 'number', 'format' => 'float', 'example' => '0.6', 'title' => ''], + 'RuleId' => ['description' => 'The ID of the system rule.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'false', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the call is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.AppName', - 'errorMessage' => 'The specified AppName is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Namespace', - 'errorMessage' => 'The specified Namespace is invalid.', - ], + ['errorCode' => 'IllegalArgument.RuleId', 'errorMessage' => 'The specified RuleId is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"PageIndex\\": 1,\\n \\"Datas\\": [\\n {\\n \\"SlowRtMs\\": 2000,\\n \\"HalfOpenRecoveryStepNum\\": 1,\\n \\"Namespace\\": \\"default\\",\\n \\"StatDurationMs\\": 2000,\\n \\"RuleId\\": 123,\\n \\"Strategy\\": 0,\\n \\"Resource\\": \\"handleServiceA\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"HalfOpenBaseAmountPerStep\\": 5,\\n \\"RecoveryTimeoutMs\\": 5000,\\n \\"MinRequestAmount\\": 10,\\n \\"Threshold\\": 0.6,\\n \\"Enable\\": true\\n }\\n ],\\n \\"TotalPage\\": 3,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 23\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<ListDegradeRulesOfAppResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <PageIndex>1</PageIndex>\\n <Datas>\\n <SlowRtMs>2000</SlowRtMs>\\n <HalfOpenRecoveryStepNum>1</HalfOpenRecoveryStepNum>\\n <Namespace>default</Namespace>\\n <StatDurationMs>2000</StatDurationMs>\\n <RuleId>123</RuleId>\\n <Strategy>0</Strategy>\\n <Resource>handleServiceA</Resource>\\n <AppName>ahas-demo</AppName>\\n <HalfOpenBaseAmountPerStep>5</HalfOpenBaseAmountPerStep>\\n <RecoveryTimeoutMs>5000</RecoveryTimeoutMs>\\n <MinRequestAmount>10</MinRequestAmount>\\n <Threshold>0.6</Threshold>\\n <Enable>true</Enable>\\n </Datas>\\n <TotalPage>3</TotalPage>\\n <PageSize>10</PageSize>\\n <TotalCount>23</TotalCount>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</ListDegradeRulesOfAppResponse>","errorExample":""}]', - 'title' => 'ListDegradeRulesOfApp', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"MetricType\\": 4,\\n \\"Threshold\\": 0.6,\\n \\"RuleId\\": 123,\\n \\"Enable\\": false\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Disable a system rule', + 'summary' => 'Disables a system rule by calling the DisableSystemRule operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'ListDegradeRulesOfResource' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisableSystemRule'], + ], ], + ], + 'EnableDegradeRule' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ - 'name' => 'Namespace', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'default', - ], - ], - [ - 'name' => 'AppName', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'ahas-demo', - ], - ], - [ - 'name' => 'Resource', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'handleServiceA', - ], - ], - [ - 'name' => 'PageIndex', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - ], - [ - 'name' => 'PageSize', + 'name' => 'RuleId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => 'The ID of the circuit breaking rule.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '123', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -4213,174 +1635,59 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The data of the circuit breaking rule.', 'type' => 'object', 'properties' => [ - 'PageIndex' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Datas' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'SlowRtMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2000', - ], - 'HalfOpenRecoveryStepNum' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Namespace' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'StatDurationMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2000', - ], - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'Strategy' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Resource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleSerivice', - ], - 'AppName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ahas-demo', - ], - 'HalfOpenBaseAmountPerStep' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5', - ], - 'RecoveryTimeoutMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5000', - ], - 'MinRequestAmount' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '0.6', - ], - 'Enable' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'false', - ], - ], - ], - ], - 'TotalPage' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3', - ], - 'PageSize' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'TotalCount' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '23', - ], + 'SlowRtMs' => ['description' => 'The response time (RT) threshold for slow calls, in milliseconds.', 'type' => 'integer', 'format' => 'int32', 'example' => '2000', 'title' => ''], + 'HalfOpenRecoveryStepNum' => ['description' => 'The number of recovery steps during the half-open phase.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'StatDurationMs' => ['description' => 'The duration of the statistics window, in milliseconds.', 'type' => 'integer', 'format' => 'int32', 'example' => '2000', 'title' => ''], + 'RuleId' => ['description' => 'The ID of the circuit breaking rule.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'Strategy' => ['description' => 'The threshold type.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''], + 'Resource' => ['description' => 'The resource name.', 'type' => 'string', 'example' => 'handleService', 'title' => ''], + 'AppName' => ['description' => 'The application name. If the application is an EDAS application, AppName is the App ID in EDAS. You can view the corresponding ID in the EDAS console by choosing Application Management > Basic Information.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'HalfOpenBaseAmountPerStep' => ['description' => 'The minimum number of requests allowed per recovery step during the half-open phase. Default value: 5.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''], + 'RecoveryTimeoutMs' => ['description' => 'The circuit breaking duration, in milliseconds.', 'type' => 'integer', 'format' => 'int32', 'example' => '5000', 'title' => ''], + 'MinRequestAmount' => ['description' => 'The minimum number of requests required to trigger circuit breaking.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], + 'Threshold' => ['description' => 'The circuit breaking threshold.', 'type' => 'number', 'format' => 'float', 'example' => '0.6', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the call was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.AppName', - 'errorMessage' => 'The specified AppName is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Namespace', - 'errorMessage' => 'The specified Namespace is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Resource', - 'errorMessage' => 'The specified Resource is invalid.', - ], + ['errorCode' => 'IllegalArgument.RuleId', 'errorMessage' => 'The specified RuleId is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"PageIndex\\": 1,\\n \\"Datas\\": [\\n {\\n \\"SlowRtMs\\": 2000,\\n \\"HalfOpenRecoveryStepNum\\": 1,\\n \\"Namespace\\": \\"default\\",\\n \\"StatDurationMs\\": 2000,\\n \\"RuleId\\": 123,\\n \\"Strategy\\": 0,\\n \\"Resource\\": \\"handleSerivice\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"HalfOpenBaseAmountPerStep\\": 5,\\n \\"RecoveryTimeoutMs\\": 5000,\\n \\"MinRequestAmount\\": 10,\\n \\"Threshold\\": 0.6,\\n \\"Enable\\": false\\n }\\n ],\\n \\"TotalPage\\": 3,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 23\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<ListDegradeRulesOfResourceResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <PageIndex>1</PageIndex>\\n <Datas>\\n <SlowRtMs>2000</SlowRtMs>\\n <HalfOpenRecoveryStepNum>1</HalfOpenRecoveryStepNum>\\n <Namespace>default</Namespace>\\n <StatDurationMs>2000</StatDurationMs>\\n <RuleId>123</RuleId>\\n <Strategy>0</Strategy>\\n <Resource>handleSerivice</Resource>\\n <AppName>ahas-demo</AppName>\\n <HalfOpenBaseAmountPerStep>5</HalfOpenBaseAmountPerStep>\\n <RecoveryTimeoutMs>5000</RecoveryTimeoutMs>\\n <MinRequestAmount>10</MinRequestAmount>\\n <Threshold>0.6</Threshold>\\n <Enable>false</Enable>\\n </Datas>\\n <TotalPage>3</TotalPage>\\n <PageSize>10</PageSize>\\n <TotalCount>23</TotalCount>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</ListDegradeRulesOfResourceResponse>","errorExample":""}]', - 'title' => 'ListDegradeRulesOfResource', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"SlowRtMs\\": 2000,\\n \\"HalfOpenRecoveryStepNum\\": 1,\\n \\"Namespace\\": \\"default\\",\\n \\"StatDurationMs\\": 2000,\\n \\"RuleId\\": 123,\\n \\"Strategy\\": 200,\\n \\"Resource\\": \\"handleService\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"HalfOpenBaseAmountPerStep\\": 5,\\n \\"RecoveryTimeoutMs\\": 5000,\\n \\"MinRequestAmount\\": 10,\\n \\"Threshold\\": 0.6,\\n \\"Enable\\": true\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Enable a circuit breaking rule', + 'summary' => 'Enables a circuit breaking rule by calling the EnableDegradeRule operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'ModifyDegradeRule' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableDegradeRule'], + ], ], + ], + 'EnableFlowRule' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -4391,114 +1698,14 @@ 'systemTags' => [], 'parameters' => [ [ - 'name' => 'Strategy', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '0', - ], - ], - [ - 'name' => 'Threshold', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'required' => false, - 'example' => '0.5', - ], - ], - [ 'name' => 'RuleId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '123', - ], - ], - [ - 'name' => 'RecoveryTimeoutMs', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '2000', - ], - ], - [ - 'name' => 'StatDurationMs', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '2000', - ], - ], - [ - 'name' => 'SlowRtMs', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '3000', - ], - ], - [ - 'name' => 'MinRequestAmount', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], - ], - [ - 'name' => 'HalfOpenBaseAmountPerStep', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '3', - ], - ], - [ - 'name' => 'HalfOpenRecoveryStepNum', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '2', - ], + 'schema' => ['description' => 'The ID of the flow control rule.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '123', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['type' => 'string', 'required' => false, 'description' => '', 'title' => '', 'example' => ''], ], ], 'responses' => [ @@ -4506,161 +1713,71 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The data of the flow control rule.', 'type' => 'object', 'properties' => [ - 'SlowRtMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5000', - ], - 'HalfOpenRecoveryStepNum' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'Namespace' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'StatDurationMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2000', - ], - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'Strategy' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Resource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleService', - ], - 'AppName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ahas-demo', - ], - 'HalfOpenBaseAmountPerStep' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3', - ], - 'RecoveryTimeoutMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2000', - ], - 'MinRequestAmount' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '0.5', - ], - 'Enable' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'RefResource' => ['description' => 'The name of the associated API or the name of the entry resource.', 'type' => 'string', 'example' => 'handleServiceB', 'title' => ''], + 'ClusterFallbackThreshold' => ['description' => 'The fallback threshold for standalone mode. This parameter is returned when the fallback strategy is set to fallback to standalone (ClusterFallbackStrategy=0).', 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'StatDurationMs' => ['description' => 'The duration of the statistics window in cluster mode.', 'type' => 'integer', 'format' => 'int32', 'example' => '5000', 'title' => ''], + 'LimitOrigin' => ['description' => 'The source application.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'ClusterThresholdType' => ['description' => 'The threshold mode. Valid values:'."\n" + .'- 0: standalone-distributed threshold.'."\n" + .'- 1: cluster threshold.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'RuleId' => ['description' => 'The ID of the flow control rule.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'RelationStrategy' => ['description' => 'The statistics dimension.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Resource' => ['description' => 'The name of the API resource.', 'type' => 'string', 'example' => 'handleServiceA', 'title' => ''], + 'AppName' => ['description' => 'The application name. If the application is an EDAS application, AppName is the App ID in EDAS. You can view the corresponding ID in the EDAS console by choosing Application Management > Basic Information.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'MaxQueueingTimeMs' => ['description' => 'The timeout period.', 'type' => 'integer', 'format' => 'int32', 'example' => '2000', 'title' => ''], + 'ControlBehavior' => ['description' => 'The throttling behavior. Valid values:'."\n" + .'- 0: fast failure.'."\n" + .'- 1: warm-up.'."\n" + .'- 2: queuing.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'ClusterEstimatedMaxQps' => ['description' => 'The estimated maximum QPS of the cluster API.', 'type' => 'number', 'format' => 'float', 'example' => '3000', 'title' => ''], + 'WarmUpPeriodSec' => ['description' => 'The warm-up period.', 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''], + 'ClusterFallbackStrategy' => ['description' => 'The fallback strategy when cluster flow control communication fails. Valid values:'."\n" + .'- 0: fallback to standalone mode.'."\n" + .'- 1: pass directly.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Threshold' => ['description' => 'The flow control threshold.', 'type' => 'number', 'format' => 'float', 'example' => '50', 'title' => ''], + 'ClusterMode' => ['description' => 'Indicates whether cluster mode is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], - ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.HalfOpenBaseAmountPerStep', - 'errorMessage' => 'The specified HalfOpenBaseAmountPerStep is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.HalfOpenRecoveryStepNum', - 'errorMessage' => 'The specified HalfOpenRecoveryStepNum is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.MinRequestAmount', - 'errorMessage' => 'The specified MinRequestAmount is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.RecoveryTimeoutMs', - 'errorMessage' => 'The specified RecoveryTimeoutMs is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.RuleId', - 'errorMessage' => 'The specified RuleId is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.SlowRtMS', - 'errorMessage' => 'The specified SlowRtMs is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Strategy', - 'errorMessage' => 'The specified Strategy is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Threshold', - 'errorMessage' => 'The specified Threshold is invalid.', - ], + ['errorCode' => 'IllegalArgument', 'errorMessage' => 'The specified parameter is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"SlowRtMs\\": 5000,\\n \\"HalfOpenRecoveryStepNum\\": 2,\\n \\"Namespace\\": \\"default\\",\\n \\"StatDurationMs\\": 2000,\\n \\"RuleId\\": 123,\\n \\"Strategy\\": 0,\\n \\"Resource\\": \\"handleService\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"HalfOpenBaseAmountPerStep\\": 3,\\n \\"RecoveryTimeoutMs\\": 2000,\\n \\"MinRequestAmount\\": 10,\\n \\"Threshold\\": 0.5,\\n \\"Enable\\": true\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<ModifyDegradeRuleResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <SlowRtMs>5000</SlowRtMs>\\n <HalfOpenRecoveryStepNum>2</HalfOpenRecoveryStepNum>\\n <Namespace>default</Namespace>\\n <StatDurationMs>2000</StatDurationMs>\\n <RuleId>123</RuleId>\\n <Strategy>0</Strategy>\\n <Resource>handleService</Resource>\\n <AppName>ahas-demo</AppName>\\n <HalfOpenBaseAmountPerStep>3</HalfOpenBaseAmountPerStep>\\n <RecoveryTimeoutMs>2000</RecoveryTimeoutMs>\\n <MinRequestAmount>10</MinRequestAmount>\\n <Threshold>0.5</Threshold>\\n <Enable>true</Enable>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</ModifyDegradeRuleResponse>","errorExample":""}]', - 'title' => 'ModifyDegradeRule', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"RefResource\\": \\"handleServiceB\\",\\n \\"ClusterFallbackThreshold\\": 30,\\n \\"Namespace\\": \\"default\\",\\n \\"StatDurationMs\\": 5000,\\n \\"LimitOrigin\\": \\"default\\",\\n \\"ClusterThresholdType\\": 0,\\n \\"RuleId\\": 123,\\n \\"RelationStrategy\\": 0,\\n \\"Resource\\": \\"handleServiceA\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"MaxQueueingTimeMs\\": 2000,\\n \\"ControlBehavior\\": 0,\\n \\"ClusterEstimatedMaxQps\\": 3000,\\n \\"WarmUpPeriodSec\\": 30,\\n \\"ClusterFallbackStrategy\\": 1,\\n \\"Threshold\\": 50,\\n \\"ClusterMode\\": true,\\n \\"Enable\\": true\\n }\\n}","type":"json"}]', + 'title' => 'Enable a flow control rule', + 'summary' => 'Enables a flow control rule by calling the EnableFlowRule operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'CreateIsolationRule' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableFlowRule'], + ], ], + ], + 'EnableHotParamRule' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -4671,101 +1788,14 @@ 'systemTags' => [], 'parameters' => [ [ - 'name' => 'Namespace', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'default', - ], - ], - [ - 'name' => 'AppName', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'ahas-demo', - ], - ], - [ - 'name' => 'RelationStrategy', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'docRequired' => true, - 'example' => '0', - ], - ], - [ - 'name' => 'Threshold', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'required' => true, - 'docRequired' => true, - 'example' => '10', - ], - ], - [ - 'name' => 'Enable', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - ], - [ - 'name' => 'Resource', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'handleServiceA', - ], - ], - [ - 'name' => 'LimitOrigin', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'default', - ], - ], - [ - 'name' => 'RefResource', + 'name' => 'RuleId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'handleServiceB', - ], + 'schema' => ['description' => 'The ID of the hot parameter rule.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '123', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -4773,127 +1803,79 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The returned data.', 'type' => 'object', 'properties' => [ - 'RelationStrategy' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Resource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleServiceA', - ], - 'AppName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ahas-demo', - ], - 'RefResource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleServiceB', - ], - 'Namespace' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'LimitOrigin' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '10', - ], - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'Enable' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'ParamIdx' => ['description' => 'The index of the parameter position.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'ParamFlowItemList' => [ + 'description' => 'The hot parameter exception items.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ItemValue' => ['description' => 'The parameter value of the exception item.', 'type' => 'string', 'example' => 'apple', 'title' => ''], + 'ItemType' => ['description' => 'The type of the exception item.', 'type' => 'string', 'example' => 'String ', 'title' => ''], + 'Threshold' => ['description' => 'The threshold of the exception item.', 'type' => 'number', 'format' => 'float', 'example' => '10', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + 'StatDurationSec' => ['description' => 'The statistical period, in seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''], + 'BurstCount' => ['description' => 'The number of burst requests allowed.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''], + 'RuleId' => ['description' => 'The ID of the hot parameter rule.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'Resource' => ['description' => 'The resource name.', 'type' => 'string', 'example' => 'handleService', 'title' => ''], + 'AppName' => ['description' => 'The application name. If the application is an EDAS application, AppName is the App ID in EDAS. You can view the corresponding ID in the EDAS console by navigating to Application Management > Basic Information.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'MaxQueueingTimeMs' => ['description' => 'The timeout period when the throttling effect is set to queuing.', 'type' => 'integer', 'format' => 'int32', 'example' => '3000', 'title' => ''], + 'ControlBehavior' => ['description' => 'The throttling effect. Valid values:'."\n" + .'- 0: fast failure.'."\n" + .'- 2: queuing.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'MetricType' => ['description' => 'The statistical dimension. Valid values:'."\n" + .'- 0: concurrency.'."\n" + .'- 1: passed requests.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Threshold' => ['description' => 'The threshold for a single machine.', 'type' => 'number', 'format' => 'float', 'example' => '20', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.Namespace', - 'errorMessage' => 'The specified Namespace is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.AppName', - 'errorMessage' => 'The specified AppName is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.RelationStrategy', - 'errorMessage' => 'The specified RelationStrategy is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.RefResource', - 'errorMessage' => 'The specified RefResource is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Resource', - 'errorMessage' => 'The specified Resource is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Threshold', - 'errorMessage' => 'The specified Threshold is invalid.', - ], + ['errorCode' => 'IllegalArgument.RuleId', 'errorMessage' => 'The specified RuleId is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"RelationStrategy\\": 0,\\n \\"Resource\\": \\"handleServiceA\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"RefResource\\": \\"handleServiceB\\",\\n \\"Namespace\\": \\"default\\",\\n \\"LimitOrigin\\": \\"default\\",\\n \\"Threshold\\": 10,\\n \\"RuleId\\": 123,\\n \\"Enable\\": true\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<CreateIsolationRuleResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <RelationStrategy>0</RelationStrategy>\\n <Resource>handleServiceA</Resource>\\n <AppName>ahas-demo</AppName>\\n <RefResource>handleServiceB</RefResource>\\n <Namespace>default</Namespace>\\n <LimitOrigin>default</LimitOrigin>\\n <Threshold>10</Threshold>\\n <RuleId>123</RuleId>\\n <Enable>true</Enable>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</CreateIsolationRuleResponse>","errorExample":""}]', - 'title' => 'CreateIsolationRule', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"ParamIdx\\": 1,\\n \\"Namespace\\": \\"default\\",\\n \\"ParamFlowItemList\\": [\\n {\\n \\"ItemValue\\": \\"apple\\",\\n \\"ItemType\\": \\"String \\",\\n \\"Threshold\\": 10\\n }\\n ],\\n \\"StatDurationSec\\": 1,\\n \\"BurstCount\\": 2,\\n \\"RuleId\\": 123,\\n \\"Resource\\": \\"handleService\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"MaxQueueingTimeMs\\": 3000,\\n \\"ControlBehavior\\": 0,\\n \\"MetricType\\": 0,\\n \\"Threshold\\": 20,\\n \\"Enable\\": true\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Enable a hot parameter rule', + 'summary' => 'Enables a hot parameter rule by calling the EnableHotParamRule operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DeleteIsolationRule' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableHotParamRule'], + ], ], + ], + 'EnableIsolationRule' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -4906,24 +1888,12 @@ [ 'name' => 'RuleId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '123', - ], + 'schema' => ['description' => 'The ID of the isolation rule.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '9223372036854775807', 'minimum' => '0', 'example' => '123', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -4931,65 +1901,55 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The returned data.', 'type' => 'object', 'properties' => [ - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], + 'RelationStrategy' => ['description' => 'The statistical dimension.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Resource' => ['description' => 'The name of the API resource.', 'type' => 'string', 'example' => 'handleServiceA', 'title' => ''], + 'AppName' => ['description' => 'The application name. If the application is an EDAS application, the AppName is the App ID in EDAS. You can view the corresponding ID in the EDAS console by choosing Application Management > Basic Information.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'RefResource' => ['description' => 'The name of the associated API or the callstack entry name.', 'type' => 'string', 'example' => 'handleServiceB', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'LimitOrigin' => ['description' => 'The source application.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'Threshold' => ['description' => 'The concurrency threshold.', 'type' => 'number', 'format' => 'float', 'example' => '30', 'title' => ''], + 'RuleId' => ['description' => 'The rule ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.RuleId', - 'errorMessage' => 'The specified RuleId is invalid.', - ], + ['errorCode' => 'IllegalArgument.RuleId', 'errorMessage' => 'The specified RuleId is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"RuleId\\": 123\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<DeleteIsolationRuleResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <RuleId>123</RuleId>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</DeleteIsolationRuleResponse>","errorExample":""}]', - 'title' => 'DeleteIsolationRule', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"RelationStrategy\\": 0,\\n \\"Resource\\": \\"handleServiceA\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"RefResource\\": \\"handleServiceB\\",\\n \\"Namespace\\": \\"default\\",\\n \\"LimitOrigin\\": \\"default\\",\\n \\"Threshold\\": 30,\\n \\"RuleId\\": 123,\\n \\"Enable\\": true\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Enable an isolation rule', + 'summary' => 'Enables an isolation rule by calling the EnableIsolationRule operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'EnableIsolationRule' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableIsolationRule'], + ], ], + ], + 'EnableSystemRule' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -5002,26 +1962,12 @@ [ 'name' => 'RuleId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '9223372036854775807', - 'minimum' => '0', - 'example' => '123', - ], + 'schema' => ['description' => 'The ID of the system rule.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '123', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -5029,140 +1975,72 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The returned data.', 'type' => 'object', 'properties' => [ - 'RelationStrategy' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Resource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleServiceA', - ], - 'AppName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ahas-demo', - ], - 'RefResource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleServiceB', - ], - 'Namespace' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'LimitOrigin' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '30', - ], - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'Enable' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'MetricType' => ['description' => 'The statistical dimension.', 'type' => 'integer', 'format' => 'int32', 'example' => '4', 'title' => ''], + 'Threshold' => ['description' => 'The threshold.', 'type' => 'number', 'format' => 'float', 'example' => '0.6', 'title' => ''], + 'RuleId' => ['description' => 'The rule ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.RuleId', - 'errorMessage' => 'The specified RuleId is invalid.', - ], + ['errorCode' => 'IllegalArgument.RuleId', 'errorMessage' => 'The specified RuleId is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"RelationStrategy\\": 0,\\n \\"Resource\\": \\"handleServiceA\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"RefResource\\": \\"handleServiceB\\",\\n \\"Namespace\\": \\"default\\",\\n \\"LimitOrigin\\": \\"default\\",\\n \\"Threshold\\": 30,\\n \\"RuleId\\": 123,\\n \\"Enable\\": true\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<EnableIsolationRuleResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <RelationStrategy>0</RelationStrategy>\\n <Resource>handleServiceA</Resource>\\n <AppName>ahas-demo</AppName>\\n <RefResource>handleServiceB</RefResource>\\n <Namespace>default</Namespace>\\n <LimitOrigin>default</LimitOrigin>\\n <Threshold>30</Threshold>\\n <RuleId>123</RuleId>\\n <Enable>true</Enable>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</EnableIsolationRuleResponse>","errorExample":""}]', - 'title' => 'EnableIsolationRule', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"MetricType\\": 4,\\n \\"Threshold\\": 0.6,\\n \\"RuleId\\": 123,\\n \\"Enable\\": true\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Enable a system rule', + 'summary' => 'Enables a system rule by calling the EnableSystemRule operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DisableIsolationRule' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableSystemRule'], + ], ], + ], + 'GetLicenseKey' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [], + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '20678', + 'abilityTreeNodes' => ['FEATUREahasF8SZSQ'], + ], 'parameters' => [ [ - 'name' => 'RuleId', + 'name' => 'Namespace', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '100000000000000', - 'minimum' => '0', - 'example' => '123', - 'isFileTransferUrl' => false, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true, 'description' => '', 'title' => '', 'example' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['type' => 'string', 'required' => false, 'description' => '', 'title' => '', 'example' => ''], ], ], 'responses' => [ @@ -5170,179 +2048,69 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], - 'Data' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'RelationStrategy' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Resource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleServiceA', - ], - 'AppName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ahas-demo', - ], - 'RefResource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleServiceB', - ], - 'Namespace' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'LimitOrigin' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '10', - ], - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'Enable' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'false', - ], - ], - ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'RequestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'Data' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'Code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'Success' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.RuleId', - 'errorMessage' => 'The specified RuleId is invalid.', - ], + ['errorCode' => 'IllegalArgument', 'errorMessage' => 'The specified parameter is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"RelationStrategy\\": 0,\\n \\"Resource\\": \\"handleServiceA\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"RefResource\\": \\"handleServiceB\\",\\n \\"Namespace\\": \\"default\\",\\n \\"LimitOrigin\\": \\"default\\",\\n \\"Threshold\\": 10,\\n \\"RuleId\\": 123,\\n \\"Enable\\": false\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<DisableIsolationRuleResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <RelationStrategy>0</RelationStrategy>\\n <Resource>handleServiceA</Resource>\\n <AppName>ahas-demo</AppName>\\n <RefResource>handleServiceB</RefResource>\\n <Namespace>default</Namespace>\\n <LimitOrigin>default</LimitOrigin>\\n <Threshold>10</Threshold>\\n <RuleId>123</RuleId>\\n <Enable>false</Enable>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</DisableIsolationRuleResponse>","errorExample":""}]', - 'title' => 'DisableIsolationRule', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'ListIsolationRulesOfApp' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetLicenseKey'], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"\\",\\n \\"RequestId\\": \\"\\",\\n \\"Data\\": \\"\\",\\n \\"Code\\": \\"\\",\\n \\"Success\\": false\\n}","type":"json"}]', + 'title' => '', + 'summary' => '', + ], + 'GetMetricsOfApp' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ 'name' => 'Namespace', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'default', - ], + 'schema' => ['description' => 'The namespace.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'default', 'title' => ''], ], [ 'name' => 'AppName', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'ahas-demo', - ], + 'schema' => ['description' => 'The application name. If the application is an EDAS application, AppName is the App ID in EDAS. You can view the corresponding ID on the Basic Information tab of the application in the EDAS console.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ahas-demo', 'title' => ''], ], [ - 'name' => 'PageIndex', + 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'docRequired' => false, - 'maximum' => '2147483647', - 'minimum' => '0', - 'example' => '1', - 'isFileTransferUrl' => false, - 'default' => '0', - ], + 'schema' => ['description' => 'The start time, in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1596081600000', 'title' => ''], ], [ - 'name' => 'PageSize', + 'name' => 'EndTime', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'docRequired' => false, - 'maximum' => '2147483647', - 'minimum' => '0', - 'example' => '10', - 'isFileTransferUrl' => false, - 'default' => '0', - ], + 'schema' => ['description' => 'The end time, in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1596081780000', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -5350,226 +2118,157 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The returned data.', 'type' => 'object', 'properties' => [ - 'PageIndex' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Datas' => [ - 'description' => '', + 'AppName' => ['description' => 'The application name. If the application is an EDAS application, AppName is the App ID in EDAS.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'InnerMetrics' => [ + 'description' => 'The application monitoring metrics data.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'RelationStrategy' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Resource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleServiceA', - ], - 'AppName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ahas-demo', - ], - 'RefResource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'hanldeServiceB', - ], - 'Namespace' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'LimitOrigin' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '10', - ], - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'Enable' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'RtP99' => ['description' => 'The 99th percentile of the application response time (RT).', 'type' => 'number', 'format' => 'float', 'example' => '7', 'title' => ''], + 'SuccessQpsAvg' => ['description' => 'The average success QPS of the application.', 'type' => 'number', 'format' => 'float', 'example' => '143', 'title' => ''], + 'PassedQpsP99' => ['description' => 'The 99th percentile of the application passed QPS.', 'type' => 'number', 'format' => 'float', 'example' => '143', 'title' => ''], + 'RtAvg' => ['description' => 'The average RT of the application.', 'type' => 'number', 'format' => 'float', 'example' => '6.5', 'title' => ''], + 'Count' => ['description' => 'The number of machines in the cluster.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'ThreadStd' => ['description' => 'The standard deviation of the application concurrency.', 'type' => 'number', 'format' => 'float', 'example' => '1', 'title' => ''], + 'PassedQpsAvg' => ['description' => 'The average passed QPS of the application.', 'type' => 'number', 'format' => 'float', 'example' => '143', 'title' => ''], + 'ExceptionP95' => ['description' => 'The 95th percentile of the application exception QPS.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''], + 'SuccessQpsMax' => ['description' => 'The maximum success QPS of the application.', 'type' => 'number', 'format' => 'float', 'example' => '143', 'title' => ''], + 'RtP95' => ['description' => 'The 95th percentile of the application RT.', 'type' => 'number', 'format' => 'float', 'example' => '7', 'title' => ''], + 'BlockedQpsMin' => ['description' => 'The minimum throttled QPS of the interface.', 'type' => 'number', 'format' => 'float', 'example' => '86', 'title' => ''], + 'BlockedQps' => ['description' => 'The throttled QPS of the cluster interface.', 'type' => 'number', 'format' => 'float', 'example' => '173', 'title' => ''], + 'Timestamp' => ['description' => 'The timestamp.', 'type' => 'integer', 'format' => 'int64', 'example' => '1596593014000', 'title' => ''], + 'ThreadP95' => ['description' => 'The 95th percentile of the application concurrency.', 'type' => 'number', 'format' => 'float', 'example' => '1', 'title' => ''], + 'RtStd' => ['description' => 'The standard deviation of the application RT.', 'type' => 'number', 'format' => 'float', 'example' => '0.7', 'title' => ''], + 'PassedQpsMin' => ['description' => 'The minimum passed QPS of the application.', 'type' => 'number', 'format' => 'float', 'example' => '143', 'title' => ''], + 'BlockedQpsP99' => ['description' => 'The 99th percentile of the interface throttled QPS.', 'type' => 'number', 'format' => 'float', 'example' => '86', 'title' => ''], + 'PassedQpsMax' => ['description' => 'The maximum passed QPS of the application.', 'type' => 'number', 'format' => 'float', 'example' => '143', 'title' => ''], + 'ExceptionMax' => ['description' => 'The maximum exception QPS of the application.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''], + 'SuccessQps' => ['description' => 'The success QPS of the application cluster.', 'type' => 'number', 'format' => 'float', 'example' => '286', 'title' => ''], + 'SuccessQpsP75' => ['description' => 'The 75th percentile of the application success QPS.', 'type' => 'number', 'format' => 'float', 'example' => '143', 'title' => ''], + 'ThreadP75' => ['description' => 'The 75th percentile of the application concurrency.', 'type' => 'number', 'format' => 'float', 'example' => '1', 'title' => ''], + 'SuccessQpsStd' => ['description' => 'The standard deviation of the application success QPS.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''], + 'ExceptionMin' => ['description' => 'The minimum exception QPS of the application.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''], + 'PassedQpsP75' => ['description' => 'The 75th percentile of the application passed QPS.', 'type' => 'number', 'format' => 'float', 'example' => '143', 'title' => ''], + 'PassedQps' => ['description' => 'The passed QPS of the cluster.', 'type' => 'number', 'format' => 'float', 'example' => '286', 'title' => ''], + 'ThreadMax' => ['description' => 'The maximum concurrency of the application.', 'type' => 'number', 'format' => 'float', 'example' => '1', 'title' => ''], + 'SuccessQpsP99' => ['description' => 'The 99th percentile of the application success QPS.', 'type' => 'number', 'format' => 'float', 'example' => '143', 'title' => ''], + 'SuccessQpsMin' => ['description' => 'The minimum success QPS of the application.', 'type' => 'number', 'format' => 'float', 'example' => '143', 'title' => ''], + 'ThreadP99' => ['description' => 'The 99th percentile of the application concurrency.', 'type' => 'number', 'format' => 'float', 'example' => '1', 'title' => ''], + 'ExceptionStd' => ['description' => 'The standard deviation of the application exception QPS.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''], + 'BlockedQpsP95' => ['description' => 'The 95th percentile of the interface throttled QPS.', 'type' => 'number', 'format' => 'float', 'example' => '86', 'title' => ''], + 'Thread' => ['description' => 'The concurrency of the application cluster.', 'type' => 'number', 'format' => 'float', 'example' => '2', 'title' => ''], + 'ThreadMin' => ['description' => 'The minimum concurrency of the application.', 'type' => 'number', 'format' => 'float', 'example' => '1', 'title' => ''], + 'RtMin' => ['description' => 'The minimum RT of the application.', 'type' => 'number', 'format' => 'float', 'example' => '7', 'title' => ''], + 'BlockedQpsAvg' => ['description' => 'The average throttled QPS of the interface.', 'type' => 'number', 'format' => 'float', 'example' => '86', 'title' => ''], + 'ThreadAvg' => ['description' => 'The average concurrency of the application.', 'type' => 'number', 'format' => 'float', 'example' => '1', 'title' => ''], + 'BlockedQpsP75' => ['description' => 'The 75th percentile of the interface throttled QPS.', 'type' => 'number', 'format' => 'float', 'example' => '86', 'title' => ''], + 'RtP75' => ['description' => 'The 75th percentile of the application RT.', 'type' => 'number', 'format' => 'float', 'example' => '7', 'title' => ''], + 'ExceptionP99' => ['description' => 'The 99th percentile of the application exception QPS.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''], + 'ExceptionP75' => ['description' => 'The 75th percentile of the application exception QPS.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''], + 'SuccessQpsP95' => ['description' => 'The 95th percentile of the application success QPS.', 'type' => 'number', 'format' => 'float', 'example' => '143', 'title' => ''], + 'Rt' => ['description' => 'The average RT of the application cluster.', 'type' => 'number', 'format' => 'float', 'example' => '6.5', 'title' => ''], + 'PassedQpsP95' => ['description' => 'The 95th percentile of the application passed QPS.', 'type' => 'number', 'format' => 'float', 'example' => '143', 'title' => ''], + 'RtMax' => ['description' => 'The maximum RT of the application.', 'type' => 'number', 'format' => 'float', 'example' => '7', 'title' => ''], + 'BlockedQpsStd' => ['description' => 'The standard deviation of the interface throttled QPS.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''], + 'BlockedQpsMax' => ['description' => 'The maximum throttled QPS of the interface.', 'type' => 'number', 'format' => 'float', 'example' => '86', 'title' => ''], + 'Exception' => ['description' => 'The exception QPS of the cluster.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''], + 'ExceptionAvg' => ['description' => 'The average exception QPS of the application.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''], + 'PassedQpsStd' => ['description' => 'The standard deviation of the application passed QPS.', 'type' => 'number', 'format' => 'float', 'example' => '143', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], - ], - 'TotalPage' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3', - ], - 'PageSize' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'TotalCount' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '23', + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the call was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.Namespace', - 'errorMessage' => 'The specified Namespace is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.AppName', - 'errorMessage' => 'The specified AppName is invalid.', - ], + ['errorCode' => 'IllegalArgument.AppName', 'errorMessage' => 'The specified AppName is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Namespace', 'errorMessage' => 'The specified Namespace is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"PageIndex\\": 1,\\n \\"Datas\\": [\\n {\\n \\"RelationStrategy\\": 0,\\n \\"Resource\\": \\"handleServiceA\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"RefResource\\": \\"hanldeServiceB\\",\\n \\"Namespace\\": \\"default\\",\\n \\"LimitOrigin\\": \\"default\\",\\n \\"Threshold\\": 10,\\n \\"RuleId\\": 123,\\n \\"Enable\\": true\\n }\\n ],\\n \\"TotalPage\\": 3,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 23\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<ListIsolationRulesOfAppResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <PageIndex>1</PageIndex>\\n <Datas>\\n <RelationStrategy>0</RelationStrategy>\\n <Resource>handleServiceA</Resource>\\n <AppName>ahas-demo</AppName>\\n <RefResource>hanldeServiceB</RefResource>\\n <Namespace>default</Namespace>\\n <LimitOrigin>default</LimitOrigin>\\n <Threshold>10</Threshold>\\n <RuleId>123</RuleId>\\n <Enable>true</Enable>\\n </Datas>\\n <TotalPage>3</TotalPage>\\n <PageSize>10</PageSize>\\n <TotalCount>23</TotalCount>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</ListIsolationRulesOfAppResponse>","errorExample":""}]', - 'title' => 'ListIsolationRulesOfApp', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"Namespace\\": \\"default\\",\\n \\"InnerMetrics\\": [\\n {\\n \\"RtP99\\": 7,\\n \\"SuccessQpsAvg\\": 143,\\n \\"PassedQpsP99\\": 143,\\n \\"RtAvg\\": 6.5,\\n \\"Count\\": 0,\\n \\"ThreadStd\\": 1,\\n \\"PassedQpsAvg\\": 143,\\n \\"ExceptionP95\\": 0,\\n \\"SuccessQpsMax\\": 143,\\n \\"RtP95\\": 7,\\n \\"BlockedQpsMin\\": 86,\\n \\"BlockedQps\\": 173,\\n \\"Timestamp\\": 1596593014000,\\n \\"ThreadP95\\": 1,\\n \\"RtStd\\": 0.7,\\n \\"PassedQpsMin\\": 143,\\n \\"BlockedQpsP99\\": 86,\\n \\"PassedQpsMax\\": 143,\\n \\"ExceptionMax\\": 0,\\n \\"SuccessQps\\": 286,\\n \\"SuccessQpsP75\\": 143,\\n \\"ThreadP75\\": 1,\\n \\"SuccessQpsStd\\": 0,\\n \\"ExceptionMin\\": 0,\\n \\"PassedQpsP75\\": 143,\\n \\"PassedQps\\": 286,\\n \\"ThreadMax\\": 1,\\n \\"SuccessQpsP99\\": 143,\\n \\"SuccessQpsMin\\": 143,\\n \\"ThreadP99\\": 1,\\n \\"ExceptionStd\\": 0,\\n \\"BlockedQpsP95\\": 86,\\n \\"Thread\\": 2,\\n \\"ThreadMin\\": 1,\\n \\"RtMin\\": 7,\\n \\"BlockedQpsAvg\\": 86,\\n \\"ThreadAvg\\": 1,\\n \\"BlockedQpsP75\\": 86,\\n \\"RtP75\\": 7,\\n \\"ExceptionP99\\": 0,\\n \\"ExceptionP75\\": 0,\\n \\"SuccessQpsP95\\": 143,\\n \\"Rt\\": 6.5,\\n \\"PassedQpsP95\\": 143,\\n \\"RtMax\\": 7,\\n \\"BlockedQpsStd\\": 0,\\n \\"BlockedQpsMax\\": 86,\\n \\"Exception\\": 0,\\n \\"ExceptionAvg\\": 0,\\n \\"PassedQpsStd\\": 143\\n }\\n ]\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Retrieve application monitoring metrics', + 'summary' => 'Calls the GetMetricsOfApp operation to retrieve application monitoring metrics.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'ListIsolationRulesOfResource' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetMetricsOfApp'], + ], ], + ], + 'GetMetricsOfResource' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ 'name' => 'Namespace', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'default', - ], + 'schema' => ['description' => 'The namespace.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'default', 'title' => ''], ], [ 'name' => 'AppName', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'ahas-demo', - ], + 'schema' => ['description' => 'The application name. If the application is an EDAS application, AppName is the App ID in EDAS. You can view the corresponding ID in the EDAS console by navigating to Application Management > Basic Information.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ahas-demo', 'title' => ''], ], [ 'name' => 'Resource', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'handleServiceA', - ], + 'schema' => ['description' => 'The resource name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'handleService', 'title' => ''], ], [ - 'name' => 'PageIndex', + 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '0', - 'example' => '1', - 'isFileTransferUrl' => false, - 'default' => '0', - ], + 'schema' => ['description' => 'The start time. The following formats are supported:'."\n" + ."\n" + .'- UNIX timestamp: the number of milliseconds that have elapsed since January 1, 1970.'."\n" + .'- Format: YYYY-MM-DDThh:mm:ssZ.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1596081600000', 'title' => ''], ], [ - 'name' => 'PageSize', + 'name' => 'EndTime', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'docRequired' => false, - 'maximum' => '2147483647', - 'minimum' => '0', - 'example' => '10', - 'isFileTransferUrl' => false, - 'default' => '0', - ], + 'schema' => ['description' => 'The end time. The following formats are supported:'."\n" + ."\n" + .'- UNIX timestamp: the number of milliseconds that have elapsed since January 1, 1970.'."\n" + .'- Format: YYYY-MM-DDThh:mm:ssZ.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1596081780000', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -5577,222 +2276,154 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94E*****10', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The returned data.', 'type' => 'object', 'properties' => [ - 'PageIndex' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Datas' => [ - 'description' => '', + 'AppName' => ['description' => 'The application name. If the application is an EDAS application, AppName is the App ID in EDAS. You can view the corresponding ID in the EDAS console by navigating to Application Management > Basic Information.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'Resource' => ['description' => 'The resource name.', 'type' => 'string', 'example' => 'handleService', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'InnerMetrics' => [ + 'description' => 'The resource metric data.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'RelationStrategy' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Resource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleServiceA', - ], - 'AppName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ahas-demo', - ], - 'RefResource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleServiceB', - ], - 'Namespace' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'LimitOrigin' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '10', - ], - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'Enable' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'RtP99' => ['description' => 'The P99 value of the response time (RT) for the API.', 'type' => 'number', 'format' => 'float', 'example' => '7', 'title' => ''], + 'SuccessQpsAvg' => ['description' => 'The average success QPS of the API.', 'type' => 'number', 'format' => 'float', 'example' => '143', 'title' => ''], + 'PassedQpsP99' => ['description' => 'The P99 value of the pass QPS for the API.', 'type' => 'number', 'format' => 'float', 'example' => '143', 'title' => ''], + 'RtAvg' => ['description' => 'The average RT of the API.', 'type' => 'number', 'format' => 'float', 'example' => '6.5', 'title' => ''], + 'Count' => ['description' => 'The number of machines.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''], + 'ThreadStd' => ['description' => 'The standard deviation of the concurrency for the API.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''], + 'PassedQpsAvg' => ['description' => 'The average pass QPS of the API.', 'type' => 'number', 'format' => 'float', 'example' => '143', 'title' => ''], + 'ExceptionP95' => ['description' => 'The P95 value of the exception QPS for the API.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''], + 'SuccessQpsMax' => ['description' => 'The maximum success QPS of the API.', 'type' => 'number', 'format' => 'float', 'example' => '143', 'title' => ''], + 'RtP95' => ['description' => 'The P95 value of the RT for the API.', 'type' => 'number', 'format' => 'float', 'example' => '7', 'title' => ''], + 'BlockedQpsMin' => ['description' => 'The minimum throttled QPS of the API.', 'type' => 'number', 'format' => 'float', 'example' => '86', 'title' => ''], + 'BlockedQps' => ['description' => 'The cluster-level throttled QPS of the API.', 'type' => 'number', 'format' => 'float', 'example' => '173', 'title' => ''], + 'Timestamp' => ['description' => 'The timestamp.', 'type' => 'integer', 'format' => 'int64', 'example' => '1596593014000', 'title' => ''], + 'ThreadP95' => ['description' => 'The P95 value of the concurrency for the API.', 'type' => 'number', 'format' => 'float', 'example' => '1', 'title' => ''], + 'RtStd' => ['description' => 'The standard deviation of the RT for the API.', 'type' => 'number', 'format' => 'float', 'example' => '0.7', 'title' => ''], + 'PassedQpsMin' => ['description' => 'The minimum pass QPS of the API.', 'type' => 'number', 'format' => 'float', 'example' => '143', 'title' => ''], + 'BlockedQpsP99' => ['description' => 'The P99 value of the throttled QPS for the API.', 'type' => 'number', 'format' => 'float', 'example' => '86', 'title' => ''], + 'PassedQpsMax' => ['description' => 'The maximum pass QPS of the API.', 'type' => 'number', 'format' => 'float', 'example' => '143', 'title' => ''], + 'ExceptionMax' => ['description' => 'The maximum exception QPS of the API.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''], + 'SuccessQps' => ['description' => 'The cluster-level success QPS of the API.', 'type' => 'number', 'format' => 'float', 'example' => '286', 'title' => ''], + 'SuccessQpsP75' => ['description' => 'The P75 value of the success QPS for the API.', 'type' => 'number', 'format' => 'float', 'example' => '143', 'title' => ''], + 'ThreadP75' => ['description' => 'The P75 value of the concurrency for the API.', 'type' => 'number', 'format' => 'float', 'example' => '1', 'title' => ''], + 'SuccessQpsStd' => ['description' => 'The standard deviation of the success QPS for the API.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''], + 'ExceptionMin' => ['description' => 'The minimum exception QPS of the API.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''], + 'PassedQpsP75' => ['description' => 'The P75 value of the pass QPS for the API.', 'type' => 'number', 'format' => 'float', 'example' => '143', 'title' => ''], + 'PassedQps' => ['description' => 'The cluster-level pass QPS of the API.', 'type' => 'number', 'format' => 'float', 'example' => '286', 'title' => ''], + 'ThreadMax' => ['description' => 'The maximum concurrency of the API.', 'type' => 'number', 'format' => 'float', 'example' => '1', 'title' => ''], + 'SuccessQpsP99' => ['description' => 'The P95 value of the success QPS for the API.', 'type' => 'number', 'format' => 'float', 'example' => '143', 'title' => ''], + 'SuccessQpsMin' => ['description' => 'The minimum success QPS of the API.', 'type' => 'number', 'format' => 'float', 'example' => '143', 'title' => ''], + 'ThreadP99' => ['description' => 'The P99 value of the concurrency for the API.', 'type' => 'number', 'format' => 'float', 'example' => '1', 'title' => ''], + 'ExceptionStd' => ['description' => 'The standard deviation of the exception QPS for the API.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''], + 'BlockedQpsP95' => ['description' => 'The P95 value of the throttled QPS for the API.', 'type' => 'number', 'format' => 'float', 'example' => '86', 'title' => ''], + 'Thread' => ['description' => 'The cluster-level concurrency of the API.', 'type' => 'number', 'format' => 'float', 'example' => '2', 'title' => ''], + 'ThreadMin' => ['description' => 'The minimum concurrency of the API.', 'type' => 'number', 'format' => 'float', 'example' => '1', 'title' => ''], + 'RtMin' => ['description' => 'The minimum RT of the API.', 'type' => 'number', 'format' => 'float', 'example' => '6.5', 'title' => ''], + 'BlockedQpsAvg' => ['description' => 'The average throttled QPS of the API.', 'type' => 'number', 'format' => 'float', 'example' => '86', 'title' => ''], + 'ThreadAvg' => ['description' => 'The average concurrency of the API.', 'type' => 'number', 'format' => 'float', 'example' => '1', 'title' => ''], + 'BlockedQpsP75' => ['description' => 'The P75 value of the throttled QPS for the API.', 'type' => 'number', 'format' => 'float', 'example' => '86', 'title' => ''], + 'RtP75' => ['description' => 'The P75 value of the RT for the API.', 'type' => 'number', 'format' => 'float', 'example' => '7', 'title' => ''], + 'ExceptionP99' => ['description' => 'The P99 value of the exception QPS for the API.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''], + 'ExceptionP75' => ['description' => 'The P75 value of the exception QPS for the API.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''], + 'SuccessQpsP95' => ['description' => 'The P95 value of the success QPS for the API.', 'type' => 'number', 'format' => 'float', 'example' => '143', 'title' => ''], + 'Rt' => ['description' => 'The cluster-level average RT of the API.', 'type' => 'number', 'format' => 'float', 'example' => '6.5', 'title' => ''], + 'PassedQpsP95' => ['description' => 'The P95 value of the pass QPS for the API.', 'type' => 'number', 'format' => 'float', 'example' => '143', 'title' => ''], + 'RtMax' => ['description' => 'The maximum RT of the API.', 'type' => 'number', 'format' => 'float', 'example' => '7', 'title' => ''], + 'BlockedQpsStd' => ['description' => 'The standard deviation of the throttled QPS for the API.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''], + 'BlockedQpsMax' => ['description' => 'The maximum throttled QPS of the API.', 'type' => 'number', 'format' => 'float', 'example' => '86', 'title' => ''], + 'Exception' => ['description' => 'The cluster-level exception QPS of the API.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''], + 'ExceptionAvg' => ['description' => 'The average exception QPS of the API.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''], + 'PassedQpsStd' => ['description' => 'The standard deviation of the pass QPS for the API.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], - ], - 'TotalPage' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3', - ], - 'PageSize' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'TotalCount' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '23', + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the call was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.Namespace', - 'errorMessage' => 'The specified Namespace is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.AppName', - 'errorMessage' => 'The specified AppName is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Resource', - 'errorMessage' => 'The specified Resource is invalid.', - ], + ['errorCode' => 'IllegalArgument.AppName', 'errorMessage' => 'The specified AppName is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Namespace', 'errorMessage' => 'The specified Namespace is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Resource', 'errorMessage' => 'The specified Resource is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"PageIndex\\": 1,\\n \\"Datas\\": [\\n {\\n \\"RelationStrategy\\": 0,\\n \\"Resource\\": \\"handleServiceA\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"RefResource\\": \\"handleServiceB\\",\\n \\"Namespace\\": \\"default\\",\\n \\"LimitOrigin\\": \\"default\\",\\n \\"Threshold\\": 10,\\n \\"RuleId\\": 123,\\n \\"Enable\\": true\\n }\\n ],\\n \\"TotalPage\\": 3,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 23\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<ListIsolationRulesOfResourceResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <PageIndex>1</PageIndex>\\n <Datas>\\n <RelationStrategy>0</RelationStrategy>\\n <Resource>handleServiceA</Resource>\\n <AppName>ahas-demo</AppName>\\n <RefResource>handleServiceB</RefResource>\\n <Namespace>default</Namespace>\\n <LimitOrigin>default</LimitOrigin>\\n <Threshold>10</Threshold>\\n <RuleId>123</RuleId>\\n <Enable>true</Enable>\\n </Datas>\\n <TotalPage>3</TotalPage>\\n <PageSize>10</PageSize>\\n <TotalCount>23</TotalCount>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</ListIsolationRulesOfResourceResponse>","errorExample":""}]', - 'title' => 'ListIsolationRulesOfResource', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94E*****10\\",\\n \\"Data\\": {\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"Resource\\": \\"handleService\\",\\n \\"Namespace\\": \\"default\\",\\n \\"InnerMetrics\\": [\\n {\\n \\"RtP99\\": 7,\\n \\"SuccessQpsAvg\\": 143,\\n \\"PassedQpsP99\\": 143,\\n \\"RtAvg\\": 6.5,\\n \\"Count\\": 2,\\n \\"ThreadStd\\": 0,\\n \\"PassedQpsAvg\\": 143,\\n \\"ExceptionP95\\": 0,\\n \\"SuccessQpsMax\\": 143,\\n \\"RtP95\\": 7,\\n \\"BlockedQpsMin\\": 86,\\n \\"BlockedQps\\": 173,\\n \\"Timestamp\\": 1596593014000,\\n \\"ThreadP95\\": 1,\\n \\"RtStd\\": 0.7,\\n \\"PassedQpsMin\\": 143,\\n \\"BlockedQpsP99\\": 86,\\n \\"PassedQpsMax\\": 143,\\n \\"ExceptionMax\\": 0,\\n \\"SuccessQps\\": 286,\\n \\"SuccessQpsP75\\": 143,\\n \\"ThreadP75\\": 1,\\n \\"SuccessQpsStd\\": 0,\\n \\"ExceptionMin\\": 0,\\n \\"PassedQpsP75\\": 143,\\n \\"PassedQps\\": 286,\\n \\"ThreadMax\\": 1,\\n \\"SuccessQpsP99\\": 143,\\n \\"SuccessQpsMin\\": 143,\\n \\"ThreadP99\\": 1,\\n \\"ExceptionStd\\": 0,\\n \\"BlockedQpsP95\\": 86,\\n \\"Thread\\": 2,\\n \\"ThreadMin\\": 1,\\n \\"RtMin\\": 6.5,\\n \\"BlockedQpsAvg\\": 86,\\n \\"ThreadAvg\\": 1,\\n \\"BlockedQpsP75\\": 86,\\n \\"RtP75\\": 7,\\n \\"ExceptionP99\\": 0,\\n \\"ExceptionP75\\": 0,\\n \\"SuccessQpsP95\\": 143,\\n \\"Rt\\": 6.5,\\n \\"PassedQpsP95\\": 143,\\n \\"RtMax\\": 7,\\n \\"BlockedQpsStd\\": 0,\\n \\"BlockedQpsMax\\": 86,\\n \\"Exception\\": 0,\\n \\"ExceptionAvg\\": 0,\\n \\"PassedQpsStd\\": 0\\n }\\n ]\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Retrieve resource metric data', + 'summary' => 'Calls the GetMetricsOfResource operation to retrieve metric data for a resource.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'ModifyIsolationRule' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '300', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetMetricsOfResource'], + ], ], + ], + 'GetSentinelAppSumMetric' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', - 'deprecated' => false, + 'operationType' => 'read', 'systemTags' => [], 'parameters' => [ [ - 'name' => 'RuleId', + 'name' => 'AcceptLanguage', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '123', - ], + 'schema' => ['title' => '', 'description' => 'The language of the response. Valid values:'."\n" + .'- **zh-CN** (default): Chinese.'."\n" + .'- **en-US**: English.', 'type' => 'string', 'required' => false, 'example' => ''], ], [ - 'name' => 'RelationStrategy', + 'name' => 'Namespace', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'docRequired' => true, - 'example' => '0', - ], + 'schema' => ['title' => '', 'description' => 'The namespace of the application.', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => ''], ], [ - 'name' => 'Threshold', + 'name' => 'AppName', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'required' => false, - 'docRequired' => true, - 'example' => '10', - ], + 'schema' => ['title' => '', 'description' => 'The name of the application.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => ''], ], [ - 'name' => 'LimitOrigin', + 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'default', - ], + 'schema' => ['title' => '', 'description' => 'The beginning of the time range to query. The value is a UNIX timestamp in milliseconds.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => ''], ], [ - 'name' => 'RefResource', + 'name' => 'EndTime', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'handleServiceB', - ], + 'schema' => ['title' => '', 'description' => 'The end of the time range to query. The value is a UNIX timestamp in milliseconds.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['title' => '', 'description' => 'The region ID of the Application High Availability Service (AHAS) instance.', 'type' => 'string', 'required' => false, 'example' => ''], ], ], 'responses' => [ @@ -5800,193 +2431,73 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], - 'Data' => [ - 'description' => '', + 'Message' => ['title' => '', 'description' => 'The message returned.', 'type' => 'string', 'example' => ''], + 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => ''], + 'Code' => ['title' => '', 'description' => 'The response code returned. A value of 200 indicates that the request was successful.', 'type' => 'string', 'example' => ''], + 'Success' => ['title' => '', 'description' => 'Indicates whether the request was successful. Valid values:'."\n" + .'- **true**: The request was successful.'."\n" + .'- **false**: The request failed.', 'type' => 'boolean', 'example' => ''], + 'MetricData' => [ 'type' => 'object', + 'description' => 'The summary metric data of the Sentinel application.', + 'title' => '', 'properties' => [ - 'RelationStrategy' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Resource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleServiceA', - ], - 'AppName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ahas-demo', - ], - 'RefResource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleServiceB', - ], - 'Namespace' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'LimitOrigin' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '10', - ], - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'Enable' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'AppName' => ['title' => '', 'description' => 'The name of the application.', 'type' => 'string', 'example' => ''], + 'PassCount' => ['title' => '', 'description' => 'The number of passed requests.', 'type' => 'number', 'format' => 'float', 'example' => ''], + 'MachineCount' => ['title' => '', 'description' => 'The number of machines on which the application is deployed.', 'type' => 'integer', 'format' => 'int64', 'example' => ''], + 'AvgRt' => ['title' => '', 'description' => 'The average response time. Unit: milliseconds.', 'type' => 'number', 'format' => 'float', 'example' => ''], + 'UserId' => ['title' => '', 'description' => 'The user ID.', 'type' => 'string', 'example' => ''], + 'Namespace' => ['title' => '', 'description' => 'The namespace of the application.', 'type' => 'string', 'example' => ''], + 'TotalCount' => ['title' => '', 'description' => 'The total number of requests.', 'type' => 'number', 'format' => 'float', 'example' => ''], + 'BlockCount' => ['title' => '', 'description' => 'The number of blocked requests.', 'type' => 'number', 'format' => 'float', 'example' => ''], ], - ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'IllegalArgument.RuleId', - 'errorMessage' => 'The specified RuleId is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.RelationStrategy', - 'errorMessage' => 'The specified RelationStrategy is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Threshold', - 'errorMessage' => 'The specified Threshold is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.RefResource', - 'errorMessage' => 'The specified RefResource is invalid.', - ], + 'errorCodes' => [], + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetSentinelAppSumMetric'], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"RelationStrategy\\": 0,\\n \\"Resource\\": \\"handleServiceA\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"RefResource\\": \\"handleServiceB\\",\\n \\"Namespace\\": \\"default\\",\\n \\"LimitOrigin\\": \\"default\\",\\n \\"Threshold\\": 10,\\n \\"RuleId\\": 123,\\n \\"Enable\\": true\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<ModifyIsolationRuleResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <RelationStrategy>0</RelationStrategy>\\n <Resource>handleServiceA</Resource>\\n <AppName>ahas-demo</AppName>\\n <RefResource>handleServiceB</RefResource>\\n <Namespace>default</Namespace>\\n <LimitOrigin>default</LimitOrigin>\\n <Threshold>10</Threshold>\\n <RuleId>123</RuleId>\\n <Enable>true</Enable>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</ModifyIsolationRuleResponse>","errorExample":""}]', - 'title' => 'ModifyIsolationRule', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"\\",\\n \\"RequestId\\": \\"\\",\\n \\"Code\\": \\"\\",\\n \\"Success\\": false,\\n \\"MetricData\\": {\\n \\"AppName\\": \\"\\",\\n \\"PassCount\\": 0,\\n \\"MachineCount\\": 0,\\n \\"AvgRt\\": 0,\\n \\"UserId\\": \\"\\",\\n \\"Namespace\\": \\"\\",\\n \\"TotalCount\\": 0,\\n \\"BlockCount\\": 0\\n }\\n}","type":"json"}]', + 'title' => 'Query the summary metrics of a Sentinel application', + 'description' => 'Queries the summary metrics of a Sentinel application within a specified time range, including the total request count, passed request count, blocked request count, average response time, and machine count.', + 'summary' => 'Queries the summary metrics of a Sentinel application.', ], - 'CreateSystemRule' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListActiveApps' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ 'name' => 'Namespace', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'default', - ], - ], - [ - 'name' => 'AppName', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'ahas-demo', - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true, 'description' => '', 'title' => '', 'example' => ''], ], [ - 'name' => 'MetricType', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'docRequired' => true, - 'example' => '4', - ], - ], - [ - 'name' => 'Threshold', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'required' => true, - 'docRequired' => true, - 'example' => '0.6', - ], - ], - [ - 'name' => 'Enable', + 'name' => 'AppType', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => true, 'maximum' => '2147483647', 'minimum' => '0', 'description' => '', 'title' => '', 'example' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['type' => 'string', 'required' => false, 'description' => '', 'title' => '', 'example' => ''], ], ], 'responses' => [ @@ -5994,124 +2505,89 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'RequestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], 'Data' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'MetricType' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '4', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '0.6', - ], - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'Enable' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'AppName' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'LastHealthPingTime' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''], + 'CurrentLevel' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''], + 'Namespace' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'AppType' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''], + 'DirtyLevel' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''], + 'AhasAppName' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], - ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ 'description' => '', - 'type' => 'boolean', - 'example' => 'true', + 'title' => '', + 'example' => '', ], + 'Code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'Success' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.AppName', - 'errorMessage' => 'The specified AppName is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.MetricType', - 'errorMessage' => 'The specified MetricType is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Namespace', - 'errorMessage' => 'The specified Namespace is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Threshold', - 'errorMessage' => 'The specified Threshold is invalid.', - ], + ['errorCode' => 'IllegalArgument', 'errorMessage' => 'The specified parameter is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"MetricType\\": 4,\\n \\"Threshold\\": 0.6,\\n \\"RuleId\\": 123,\\n \\"Enable\\": true\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<CreateSystemRuleResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <MetricType>4</MetricType>\\n <Threshold>0.6</Threshold>\\n <RuleId>123</RuleId>\\n <Enable>true</Enable>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</CreateSystemRuleResponse>","errorExample":""}]', - 'title' => 'CreateSystemRule', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'DeleteSystemRule' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"\\",\\n \\"RequestId\\": \\"\\",\\n \\"Data\\": [\\n {\\n \\"AppName\\": \\"\\",\\n \\"LastHealthPingTime\\": 0,\\n \\"CurrentLevel\\": 0,\\n \\"Namespace\\": \\"\\",\\n \\"AppType\\": 0,\\n \\"DirtyLevel\\": 0,\\n \\"AhasAppName\\": \\"\\"\\n }\\n ],\\n \\"Code\\": \\"\\",\\n \\"Success\\": false\\n}","type":"json"}]', + 'title' => '', + 'summary' => '', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListActiveApps'], + ], ], + ], + 'ListDegradeRulesOfApp' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ - 'name' => 'RuleId', + 'name' => 'Namespace', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '123', - ], + 'schema' => ['description' => 'The namespace.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'default', 'title' => ''], + ], + [ + 'name' => 'AppName', + 'in' => 'query', + 'schema' => ['description' => 'The application name. If the application is an EDAS application, the value of this parameter is the application ID in EDAS. You can obtain the ID on the Basic Information page in Application Management of the EDAS console.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ahas-demo', 'title' => ''], + ], + [ + 'name' => 'PageIndex', + 'in' => 'query', + 'schema' => ['description' => 'The number of the page to return. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => 'The number of entries to return on each page. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -6119,95 +2595,116 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The returned data.', 'type' => 'object', 'properties' => [ - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', + 'PageIndex' => ['description' => 'The page number of the returned page.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Datas' => [ + 'description' => 'The list of degradation rules.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'SlowRtMs' => ['description' => 'The slow call response time (RT).', 'type' => 'integer', 'format' => 'int32', 'example' => '2000', 'title' => ''], + 'HalfOpenRecoveryStepNum' => ['description' => 'The number of circuit breaker recovery stages.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'StatDurationMs' => ['description' => 'The statistical window duration.', 'type' => 'integer', 'format' => 'int32', 'example' => '2000', 'title' => ''], + 'RuleId' => ['description' => 'The rule ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'Strategy' => ['description' => 'The threshold type.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Resource' => ['description' => 'The resource name.', 'type' => 'string', 'example' => 'handleServiceA', 'title' => ''], + 'AppName' => ['description' => 'The application name. If the application is an EDAS application, the value of this parameter is the application ID in EDAS. You can obtain the ID on the Basic Information page in Application Management of the EDAS console.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'HalfOpenBaseAmountPerStep' => ['description' => 'The minimum number of requests allowed to pass through in each step during circuit breaker recovery. Default value: 5.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''], + 'RecoveryTimeoutMs' => ['description' => 'The circuit breaker duration.', 'type' => 'integer', 'format' => 'int32', 'example' => '5000', 'title' => ''], + 'MinRequestAmount' => ['description' => 'The minimum number of requests required to trigger circuit breaking.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], + 'Threshold' => ['description' => 'The degradation threshold.', 'type' => 'number', 'format' => 'float', 'example' => '0.6', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], + 'TotalPage' => ['description' => 'The total number of pages.', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''], + 'PageSize' => ['description' => 'The number of entries returned per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], + 'TotalCount' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'example' => '23', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Code' => ['description' => 'The response code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.RuleId', - 'errorMessage' => 'The specified RuleId is invalid.', - ], + ['errorCode' => 'IllegalArgument.AppName', 'errorMessage' => 'The specified AppName is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Namespace', 'errorMessage' => 'The specified Namespace is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"RuleId\\": 123\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<DeleteSystemRuleResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <RuleId>123</RuleId>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</DeleteSystemRuleResponse>","errorExample":""}]', - 'title' => 'DeleteSystemRule', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"PageIndex\\": 1,\\n \\"Datas\\": [\\n {\\n \\"SlowRtMs\\": 2000,\\n \\"HalfOpenRecoveryStepNum\\": 1,\\n \\"Namespace\\": \\"default\\",\\n \\"StatDurationMs\\": 2000,\\n \\"RuleId\\": 123,\\n \\"Strategy\\": 0,\\n \\"Resource\\": \\"handleServiceA\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"HalfOpenBaseAmountPerStep\\": 5,\\n \\"RecoveryTimeoutMs\\": 5000,\\n \\"MinRequestAmount\\": 10,\\n \\"Threshold\\": 0.6,\\n \\"Enable\\": true\\n }\\n ],\\n \\"TotalPage\\": 3,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 23\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Query Degradation Rules of an Application', + 'summary' => 'Calls the ListDegradeRulesOfApp operation to query the degradation rules of an application.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'EnableSystemRule' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDegradeRulesOfApp'], + ], ], + ], + 'ListDegradeRulesOfResource' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ - 'name' => 'RuleId', + 'name' => 'Namespace', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '123', - ], + 'schema' => ['description' => 'The namespace.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'default', 'title' => ''], + ], + [ + 'name' => 'AppName', + 'in' => 'query', + 'schema' => ['description' => 'The application name. If the application is an EDAS application, set AppName to the App ID in EDAS. You can view the App ID in the EDAS console by choosing Application Management > Basic Information.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ahas-demo', 'title' => ''], + ], + [ + 'name' => 'Resource', + 'in' => 'query', + 'schema' => ['description' => 'The resource name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'handleServiceA', 'title' => ''], + ], + [ + 'name' => 'PageIndex', + 'in' => 'query', + 'schema' => ['description' => 'The current page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -6215,112 +2712,114 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The returned data.', 'type' => 'object', 'properties' => [ - 'MetricType' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '4', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '0.6', - ], - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'Enable' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', + 'PageIndex' => ['description' => 'The current page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Datas' => [ + 'description' => 'The list of circuit breaking rules.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'SlowRtMs' => ['description' => 'The response time (RT) threshold for slow calls, in milliseconds.', 'type' => 'integer', 'format' => 'int32', 'example' => '2000', 'title' => ''], + 'HalfOpenRecoveryStepNum' => ['description' => 'The number of recovery steps in the half-open state.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'StatDurationMs' => ['description' => 'The duration of the statistics window, in milliseconds.', 'type' => 'integer', 'format' => 'int32', 'example' => '2000', 'title' => ''], + 'RuleId' => ['description' => 'The rule ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'Strategy' => ['description' => 'The threshold type.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Resource' => ['description' => 'The resource name of the interface.', 'type' => 'string', 'example' => 'handleSerivice', 'title' => ''], + 'AppName' => ['description' => 'The application name. If the application is an EDAS application, set AppName to the App ID in EDAS. You can view the App ID in the EDAS console by choosing Application Management > Basic Information.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'HalfOpenBaseAmountPerStep' => ['description' => 'The minimum number of requests allowed per recovery step in the half-open state. Default value: 5.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''], + 'RecoveryTimeoutMs' => ['description' => 'The circuit breaking duration, in milliseconds.', 'type' => 'integer', 'format' => 'int32', 'example' => '5000', 'title' => ''], + 'MinRequestAmount' => ['description' => 'The minimum number of requests required to trigger circuit breaking.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], + 'Threshold' => ['description' => 'The circuit breaking threshold.', 'type' => 'number', 'format' => 'float', 'example' => '0.6', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'false', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], + 'TotalPage' => ['description' => 'The total number of pages.', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''], + 'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], + 'TotalCount' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'example' => '23', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.RuleId', - 'errorMessage' => 'The specified RuleId is invalid.', - ], + ['errorCode' => 'IllegalArgument.AppName', 'errorMessage' => 'The specified AppName is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Namespace', 'errorMessage' => 'The specified Namespace is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Resource', 'errorMessage' => 'The specified Resource is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"MetricType\\": 4,\\n \\"Threshold\\": 0.6,\\n \\"RuleId\\": 123,\\n \\"Enable\\": true\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<EnableSystemRuleResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <MetricType>4</MetricType>\\n <Threshold>0.6</Threshold>\\n <RuleId>123</RuleId>\\n <Enable>true</Enable>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</EnableSystemRuleResponse>","errorExample":""}]', - 'title' => 'EnableSystemRule', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"PageIndex\\": 1,\\n \\"Datas\\": [\\n {\\n \\"SlowRtMs\\": 2000,\\n \\"HalfOpenRecoveryStepNum\\": 1,\\n \\"Namespace\\": \\"default\\",\\n \\"StatDurationMs\\": 2000,\\n \\"RuleId\\": 123,\\n \\"Strategy\\": 0,\\n \\"Resource\\": \\"handleSerivice\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"HalfOpenBaseAmountPerStep\\": 5,\\n \\"RecoveryTimeoutMs\\": 5000,\\n \\"MinRequestAmount\\": 10,\\n \\"Threshold\\": 0.6,\\n \\"Enable\\": false\\n }\\n ],\\n \\"TotalPage\\": 3,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 23\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Retrieve circuit breaking rules for a resource', + 'summary' => 'Retrieves the circuit breaking rules for a specified resource by calling the ListDegradeRulesOfResource operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DisableSystemRule' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDegradeRulesOfResource'], + ], ], + ], + 'ListFlowRulesOfApp' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [], + 'systemTags' => [ + 'abilityTreeNodes' => ['FEATUREahasSBJFYF'], + ], 'parameters' => [ [ - 'name' => 'RuleId', + 'name' => 'Namespace', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '123', - ], + 'schema' => ['description' => 'The namespace.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'default', 'title' => ''], + ], + [ + 'name' => 'AppName', + 'in' => 'query', + 'schema' => ['description' => 'The application name. If the application is an EDAS application, set AppName to the App ID in EDAS. You can view the corresponding ID in the EDAS console by choosing **Application Management > Basic Information**.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ahas-demo', 'title' => ''], + ], + [ + 'name' => 'PageIndex', + 'in' => 'query', + 'schema' => ['description' => 'The page number for the paged query.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -6328,82 +2827,91 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The returned data.', 'type' => 'object', 'properties' => [ - 'MetricType' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '4', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '0.6', - ], - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'Enable' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'false', + 'PageIndex' => ['description' => 'The current page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Datas' => [ + 'description' => 'The list of rules.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'RefResource' => ['description' => 'The name of the associated API or the name of the entry resource.', 'type' => 'string', 'example' => 'handleServiceB', 'title' => ''], + 'ClusterFallbackThreshold' => ['description' => 'The fallback standalone threshold. This parameter is returned when the fallback strategy is set to fallback to standalone mode (ClusterFallbackStrategy=0).', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'LimitOrigin' => ['description' => 'The source application.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'StatDurationMs' => ['description' => 'The duration of the statistics window in cluster mode.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'ClusterThresholdType' => ['description' => 'The threshold mode. Valid values:'."\n" + .'- 0: standalone-distributed threshold.'."\n" + .'- 1: cluster threshold.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'RuleId' => ['description' => 'The rule ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'RelationStrategy' => ['description' => 'The statistics dimension.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'AppName' => ['description' => 'The application name. If the application is an EDAS application, set AppName to the App ID in EDAS. You can view the corresponding ID in the EDAS console by choosing **Application Management > Basic Information**.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'Resource' => ['description' => 'The name of the API resource.', 'type' => 'string', 'example' => 'handleServiceA', 'title' => ''], + 'ClusterEstimatedMaxQps' => ['description' => 'The estimated maximum QPS of the cluster API.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''], + 'ControlBehavior' => ['description' => 'The throttling behavior. Valid values:'."\n" + .'- 0: fast failure.'."\n" + .'- 1: warm-up.'."\n" + .'- 2: queuing.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'MaxQueueingTimeMs' => ['description' => 'The timeout period.', 'type' => 'integer', 'format' => 'int32', 'example' => '2000', 'title' => ''], + 'ClusterFallbackStrategy' => ['description' => 'The fallback strategy when cluster flow control communication fails. Valid values:'."\n" + .'- 0: falls back to standalone mode.'."\n" + .'- 1: passes through directly.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'WarmUpPeriodSec' => ['description' => 'The warm-up period.', 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''], + 'ClusterMode' => ['description' => 'Indicates whether cluster mode is enabled.', 'type' => 'boolean', 'example' => 'false', 'title' => ''], + 'ThresholdMode' => ['description' => 'The type of the flow control threshold.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''], + 'Threshold' => ['description' => 'The threshold.', 'type' => 'number', 'format' => 'float', 'example' => '30', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], + 'TotalPage' => ['description' => 'The total number of pages.', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''], + 'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], + 'TotalCount' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'example' => '23', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.RuleId', - 'errorMessage' => 'The specified RuleId is invalid.', - ], + ['errorCode' => 'IllegalArgument.AppName', 'errorMessage' => 'The specified AppName is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Namespace', 'errorMessage' => 'The specified Namespace is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"MetricType\\": 4,\\n \\"Threshold\\": 0.6,\\n \\"RuleId\\": 123,\\n \\"Enable\\": false\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<DisableSystemRuleResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <MetricType>4</MetricType>\\n <Threshold>0.6</Threshold>\\n <RuleId>123</RuleId>\\n <Enable>false</Enable>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</DisableSystemRuleResponse>","errorExample":""}]', - 'title' => 'DisableSystemRule', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"PageIndex\\": 1,\\n \\"Datas\\": [\\n {\\n \\"RefResource\\": \\"handleServiceB\\",\\n \\"ClusterFallbackThreshold\\": 0,\\n \\"Namespace\\": \\"default\\",\\n \\"LimitOrigin\\": \\"default\\",\\n \\"StatDurationMs\\": 0,\\n \\"ClusterThresholdType\\": 0,\\n \\"RuleId\\": 123,\\n \\"RelationStrategy\\": 0,\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"Resource\\": \\"handleServiceA\\",\\n \\"ClusterEstimatedMaxQps\\": 0,\\n \\"ControlBehavior\\": 0,\\n \\"MaxQueueingTimeMs\\": 2000,\\n \\"ClusterFallbackStrategy\\": 0,\\n \\"WarmUpPeriodSec\\": 30,\\n \\"ClusterMode\\": false,\\n \\"ThresholdMode\\": 2,\\n \\"Threshold\\": 30,\\n \\"Enable\\": true\\n }\\n ],\\n \\"TotalPage\\": 3,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 23\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Query flow control rules of an application', + 'summary' => 'Queries the list of flow control rules for an application by calling the ListFlowRulesOfApp operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'ListSystemRules' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFlowRulesOfApp'], + ], ], + ], + 'ListFlowRulesOfResource' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -6416,56 +2924,32 @@ [ 'name' => 'Namespace', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'default', - ], + 'schema' => ['description' => 'The namespace.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'default', 'title' => ''], ], [ 'name' => 'AppName', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'ahas-demo', - ], + 'schema' => ['description' => 'The application name. If the application is an EDAS application, set this parameter to the App ID in EDAS. You can view the App ID on the **Application Management > Basic Information** page in the EDAS console.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ahas-demo', 'title' => ''], + ], + [ + 'name' => 'Resource', + 'in' => 'query', + 'schema' => ['description' => 'The resource name of the API.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'handleServiceA', 'title' => ''], ], [ 'name' => 'PageIndex', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => 'The current page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''], ], [ 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -6473,171 +2957,125 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null ', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94E*****10', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The returned data.', 'type' => 'object', 'properties' => [ - 'PageIndex' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], + 'PageIndex' => ['description' => 'The current page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], 'Datas' => [ - 'description' => '', + 'description' => 'The list of rules.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'AppName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ahas-demo', - ], - 'Namespace' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'MetricType' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '4', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '0.6', - ], - 'Enable' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], + 'RefResource' => ['description' => 'The name of the associated API or the entry resource name.', 'type' => 'string', 'example' => 'handleServiceB', 'title' => ''], + 'ClusterFallbackThreshold' => ['description' => 'The fallback threshold for standalone mode. This parameter is returned when the fallback strategy is set to fallback to standalone (ClusterFallbackStrategy=0).', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'LimitOrigin' => ['description' => 'The source application.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'StatDurationMs' => ['description' => 'The statistical window duration in cluster mode.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'ClusterThresholdType' => ['description' => 'The threshold mode. Valid values:'."\n" + .'- 0: standalone average threshold.'."\n" + .'- 1: cluster threshold.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'RuleId' => ['description' => 'The rule ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'RelationStrategy' => ['description' => 'The statistical dimension.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'AppName' => ['description' => 'The application name. If the application is an EDAS application, set this parameter to the App ID in EDAS. You can view the App ID on the **Application Management > Basic Information** page in the EDAS console.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'Resource' => ['description' => 'The resource name of the API.', 'type' => 'string', 'example' => 'handleServiceA', 'title' => ''], + 'ClusterEstimatedMaxQps' => ['description' => 'The estimated maximum QPS for the cluster API.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''], + 'ControlBehavior' => ['description' => 'The throttling behavior. Valid values:'."\n" + .'- 0: fast failure.'."\n" + .'- 1: warm-up.'."\n" + .'- 2: queuing.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'MaxQueueingTimeMs' => ['description' => 'The timeout period.', 'type' => 'integer', 'format' => 'int32', 'example' => '2000', 'title' => ''], + 'ClusterFallbackStrategy' => ['description' => 'The fallback strategy when cluster flow control communication fails. Valid values:'."\n" + .'- 0: fallback to standalone mode.'."\n" + .'- 1: pass directly.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'WarmUpPeriodSec' => ['description' => 'The warm-up period.', 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''], + 'ClusterMode' => ['description' => 'Indicates whether cluster mode is enabled.', 'type' => 'boolean', 'example' => 'false', 'title' => ''], + 'ThresholdMode' => ['description' => 'The flow control threshold type.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''], + 'Threshold' => ['description' => 'The threshold.', 'type' => 'number', 'format' => 'float', 'example' => '30', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], - 'TotalPage' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3', - ], - 'PageSize' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'TotalCount' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '23', - ], + 'TotalPage' => ['description' => 'The total number of pages.', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''], + 'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], + 'TotalCount' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'example' => '23', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the call was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.AppName', - 'errorMessage' => 'The specified AppName is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Namespace', - 'errorMessage' => 'The specified Namespace is invalid.', - ], + ['errorCode' => 'IllegalArgument.Resource', 'errorMessage' => 'The specified Resource is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Namespace', 'errorMessage' => 'The specified Namespace is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.AppName', 'errorMessage' => 'The specified AppName is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"PageIndex\\": 1,\\n \\"Datas\\": [\\n {\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"Namespace\\": \\"default\\",\\n \\"MetricType\\": 4,\\n \\"Threshold\\": 0.6,\\n \\"Enable\\": true,\\n \\"RuleId\\": 123\\n }\\n ],\\n \\"TotalPage\\": 3,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 23\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<ListSystemRulesResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <PageIndex>1</PageIndex>\\n <Datas>\\n <AppName>ahas-demo</AppName>\\n <Namespace>default</Namespace>\\n <MetricType>4</MetricType>\\n <Threshold>0.6</Threshold>\\n <Enable>true</Enable>\\n <RuleId>123</RuleId>\\n </Datas>\\n <TotalPage>3</TotalPage>\\n <PageSize>10</PageSize>\\n <TotalCount>23</TotalCount>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</ListSystemRulesResponse>","errorExample":""}]', - 'title' => 'ListSystemRules', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null \\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94E*****10\\",\\n \\"Data\\": {\\n \\"PageIndex\\": 1,\\n \\"Datas\\": [\\n {\\n \\"RefResource\\": \\"handleServiceB\\",\\n \\"ClusterFallbackThreshold\\": 0,\\n \\"Namespace\\": \\"default\\",\\n \\"LimitOrigin\\": \\"default\\",\\n \\"StatDurationMs\\": 0,\\n \\"ClusterThresholdType\\": 0,\\n \\"RuleId\\": 123,\\n \\"RelationStrategy\\": 0,\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"Resource\\": \\"handleServiceA\\",\\n \\"ClusterEstimatedMaxQps\\": 0,\\n \\"ControlBehavior\\": 0,\\n \\"MaxQueueingTimeMs\\": 2000,\\n \\"ClusterFallbackStrategy\\": 0,\\n \\"WarmUpPeriodSec\\": 30,\\n \\"ClusterMode\\": false,\\n \\"ThresholdMode\\": 2,\\n \\"Threshold\\": 30,\\n \\"Enable\\": true\\n }\\n ],\\n \\"TotalPage\\": 3,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 23\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Query flow control rules for a resource', + 'summary' => 'Queries the list of flow control rules for a specified resource by calling the ListFlowRulesOfResource operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'ModifySystemRule' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFlowRulesOfResource'], + ], ], + ], + 'ListHotParamRulesOfApp' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ - 'name' => 'Threshold', + 'name' => 'Namespace', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'required' => true, - 'docRequired' => true, - 'example' => '0.5', - ], + 'schema' => ['description' => 'The namespace.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'default', 'title' => ''], ], [ - 'name' => 'RuleId', + 'name' => 'AppName', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '123', - ], + 'schema' => ['description' => 'The application name. If the application is an Enterprise Distributed Application Service (EDAS) application, set AppName to the App ID in EDAS. You can view the App ID on the **Application Management > Basic Information** page in the EDAS console.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ahas-demo', 'title' => ''], + ], + [ + 'name' => 'PageIndex', + 'in' => 'query', + 'schema' => ['description' => 'The current page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -6645,451 +3083,275 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The returned data.', 'type' => 'object', 'properties' => [ - 'MetricType' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '4', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '0.5', - ], - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'Enable' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', + 'PageIndex' => ['description' => 'The current page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Datas' => [ + 'description' => 'The list of hot parameter rules.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ParamIdx' => ['description' => 'The parameter index.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'ParamFlowItemList' => [ + 'description' => 'The list of hot parameter exception items.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ItemValue' => ['description' => 'The value of the exception item parameter.', 'type' => 'string', 'example' => 'apple', 'title' => ''], + 'ItemType' => ['description' => 'The type of the exception item.', 'type' => 'string', 'example' => 'String', 'title' => ''], + 'Threshold' => ['description' => 'The threshold of the exception item.', 'type' => 'number', 'format' => 'float', 'example' => '20', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + 'StatDurationSec' => ['description' => 'The statistical period, in seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''], + 'BurstCount' => ['description' => 'The number of burst requests allowed.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''], + 'RuleId' => ['description' => 'The rule ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'Resource' => ['description' => 'The resource name of the interface.', 'type' => 'string', 'example' => 'handleService', 'title' => ''], + 'AppName' => ['description' => 'The application name. If the application is an Enterprise Distributed Application Service (EDAS) application, set AppName to the App ID in EDAS. You can view the App ID on the **Application Management > Basic Information** page in the EDAS console.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'MaxQueueingTimeMs' => ['description' => 'The timeout period when the throttling behavior is set to queuing.', 'type' => 'integer', 'format' => 'int32', 'example' => '3000', 'title' => ''], + 'ControlBehavior' => ['description' => 'The throttling behavior. Valid values:'."\n" + .'- 0: fast failure.'."\n" + .'- 2: queuing.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'MetricType' => ['description' => 'The statistical dimension. Valid values:'."\n" + .'- 0: concurrency.'."\n" + .'- 1: passed requests.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Threshold' => ['description' => 'The threshold for a single machine.', 'type' => 'number', 'format' => 'float', 'example' => '20', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], + 'TotalPage' => ['description' => 'The total number of pages.', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''], + 'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], + 'TotalCount' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'example' => '23', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.RuleId', - 'errorMessage' => 'The specified RuleId is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Threshold', - 'errorMessage' => 'The specified Threshold is invalid.', - ], + ['errorCode' => 'IllegalArgument.AppName', 'errorMessage' => 'The specified AppName is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Namespace', 'errorMessage' => 'The specified Namespace is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"MetricType\\": 4,\\n \\"Threshold\\": 0.5,\\n \\"RuleId\\": 123,\\n \\"Enable\\": true\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<ModifySystemRuleResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <MetricType>4</MetricType>\\n <Threshold>0.5</Threshold>\\n <RuleId>123</RuleId>\\n <Enable>true</Enable>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</ModifySystemRuleResponse>","errorExample":""}]', - 'title' => 'ModifySystemRule', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"PageIndex\\": 1,\\n \\"Datas\\": [\\n {\\n \\"ParamIdx\\": 1,\\n \\"Namespace\\": \\"default\\",\\n \\"ParamFlowItemList\\": [\\n {\\n \\"ItemValue\\": \\"apple\\",\\n \\"ItemType\\": \\"String\\",\\n \\"Threshold\\": 20\\n }\\n ],\\n \\"StatDurationSec\\": 1,\\n \\"BurstCount\\": 2,\\n \\"RuleId\\": 123,\\n \\"Resource\\": \\"handleService\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"MaxQueueingTimeMs\\": 3000,\\n \\"ControlBehavior\\": 0,\\n \\"MetricType\\": 0,\\n \\"Threshold\\": 20,\\n \\"Enable\\": true\\n }\\n ],\\n \\"TotalPage\\": 3,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 23\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Query hot parameter rules of an application', + 'summary' => 'Queries the hot parameter rules of an application by calling the ListHotParamRulesOfApp operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'CreateHotParamRule' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListHotParamRulesOfApp'], + ], ], + ], + 'ListHotParamRulesOfResource' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ 'name' => 'Namespace', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => 'default', - 'required' => true, - 'type' => 'string', - ], + 'schema' => ['description' => 'The namespace.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'default', 'title' => ''], ], [ 'name' => 'AppName', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => 'ahas-demo', - 'required' => true, - 'type' => 'string', - ], - ], - [ - 'name' => 'MetricType', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => '1', - 'format' => 'int32', - 'required' => true, - 'type' => 'integer', - ], - ], - [ - 'name' => 'Threshold', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => '20', - 'format' => 'float', - 'required' => true, - 'type' => 'number', - ], - ], - [ - 'name' => 'Enable', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => 'true', - 'required' => false, - 'type' => 'boolean', - ], + 'schema' => ['description' => 'The application name. If the application is an EDAS application, set AppName to the App ID in EDAS. You can view the App ID on the **Application Management > Basic Information** page in the EDAS console.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ahas-demo', 'title' => ''], ], [ 'name' => 'Resource', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => 'handleService', - 'required' => true, - 'type' => 'string', - ], - ], - [ - 'name' => 'ParamIdx', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => '1', - 'format' => 'int32', - 'required' => true, - 'type' => 'integer', - ], - ], - [ - 'name' => 'StatDurationSec', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => '1', - 'format' => 'int64', - 'required' => true, - 'type' => 'integer', - ], - ], - [ - 'name' => 'ControlBehavior', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'docRequired' => true, - 'example' => '0', - 'format' => 'int32', - 'required' => true, - 'type' => 'integer', - ], + 'schema' => ['description' => 'The resource name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'handleService', 'title' => ''], ], [ - 'name' => 'BurstCount', + 'name' => 'PageIndex', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => '2', - 'format' => 'int32', - 'required' => false, - 'type' => 'integer', - ], + 'schema' => ['description' => 'The current page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''], ], [ - 'name' => 'MaxQueueingTimeMs', + 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => '3000', - 'format' => 'int32', - 'required' => false, - 'type' => 'integer', - ], + 'schema' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'example' => 'cn-hangzhou', - 'required' => false, - 'type' => 'string', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'example' => 'null', - 'type' => 'string', - ], - 'RequestId' => [ - 'description' => '', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - 'type' => 'string', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The returned data.', + 'type' => 'object', 'properties' => [ - 'ParamIdx' => [ - 'description' => '', - 'example' => '1', - 'format' => 'int32', - 'type' => 'integer', - ], - 'Namespace' => [ - 'description' => '', - 'example' => 'default', - 'type' => 'string', - ], - 'ParamFlowItemList' => [ - 'description' => '', + 'PageIndex' => ['description' => 'The current page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Datas' => [ + 'description' => 'The list of hot parameter rules.', + 'type' => 'array', 'items' => [ + 'type' => 'object', 'properties' => [ - 'ItemValue' => [ - 'description' => '', - 'example' => 'apple', - 'type' => 'string', - ], - 'ItemType' => [ - 'description' => '', - 'example' => 'String', - 'type' => 'string', - ], - 'Threshold' => [ - 'description' => '', - 'example' => '10', - 'format' => 'float', - 'type' => 'number', - ], + 'ParamIdx' => ['description' => 'The index of the hot parameter.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'ParamFlowItemList' => [ + 'description' => 'The list of hot parameter exception items.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ItemValue' => ['description' => 'The value of the exception item parameter.', 'type' => 'string', 'example' => 'apple', 'title' => ''], + 'ItemType' => ['description' => 'The type of the exception item.', 'type' => 'string', 'example' => 'String', 'title' => ''], + 'Threshold' => ['description' => 'The threshold of the exception item.', 'type' => 'number', 'format' => 'float', 'example' => '10', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + 'StatDurationSec' => ['description' => 'The statistical period in seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''], + 'BurstCount' => ['description' => 'The number of burst requests allowed.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''], + 'RuleId' => ['description' => 'The rule ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'Resource' => ['description' => 'The resource name.', 'type' => 'string', 'example' => 'handleService', 'title' => ''], + 'AppName' => ['description' => 'The application name. If the application is an EDAS application, set AppName to the App ID in EDAS. You can view the App ID on the **Application Management > Basic Information** page in the EDAS console.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'MaxQueueingTimeMs' => ['description' => 'The timeout period when the throttling behavior is set to queuing.', 'type' => 'integer', 'format' => 'int32', 'example' => '3000', 'title' => ''], + 'ControlBehavior' => ['description' => 'The throttling behavior. Valid values:'."\n" + .'- 0: fast failure.'."\n" + .'- 2: queuing.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'MetricType' => ['description' => 'The statistical dimension. Valid values:'."\n" + .'- 0: concurrency.'."\n" + .'- 1: passed requests.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Threshold' => ['description' => 'The threshold of the exception item.', 'type' => 'number', 'format' => 'float', 'example' => '10', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], - 'type' => 'object', + 'description' => '', + 'title' => '', + 'example' => '', ], - 'type' => 'array', - ], - 'StatDurationSec' => [ - 'description' => '', - 'example' => '1', - 'format' => 'int64', - 'type' => 'integer', - ], - 'BurstCount' => [ - 'description' => '', - 'example' => '2', - 'format' => 'int32', - 'type' => 'integer', - ], - 'RuleId' => [ - 'description' => '', - 'example' => '123', - 'format' => 'int64', - 'type' => 'integer', - ], - 'Resource' => [ - 'description' => '', - 'example' => 'handleService', - 'type' => 'string', - ], - 'AppName' => [ - 'description' => '', - 'example' => 'ahas-demo', - 'type' => 'string', - ], - 'MaxQueueingTimeMs' => [ - 'description' => '', - 'example' => '3000', - 'format' => 'int32', - 'type' => 'integer', - ], - 'ControlBehavior' => [ - 'description' => '', - 'example' => '0', - 'format' => 'int32', - 'type' => 'integer', - ], - 'MetricType' => [ - 'description' => '', - 'example' => '0', - 'format' => 'int32', - 'type' => 'integer', - ], - 'Threshold' => [ - 'description' => '', - 'example' => '20', - 'format' => 'float', - 'type' => 'number', - ], - 'Enable' => [ - 'description' => '', - 'example' => 'true', - 'type' => 'boolean', + 'title' => '', + 'example' => '', ], + 'TotalPage' => ['description' => 'The total number of pages.', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''], + 'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], + 'TotalCount' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'example' => '23', 'title' => ''], ], - 'type' => 'object', - ], - 'Code' => [ - 'description' => '', - 'example' => '200', - 'type' => 'string', - ], - 'Success' => [ - 'description' => '', - 'example' => 'true', - 'type' => 'boolean', + 'title' => '', + 'example' => '', ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the call is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], - 'type' => 'object', + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.AppName', - 'errorMessage' => 'The specified AppName is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.BurstCount', - 'errorMessage' => 'The specified BurstCount is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.ControlBehavior', - 'errorMessage' => 'The specified ControlBehavior is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.DurationInSec', - 'errorMessage' => 'The specified DurationInSec is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.MaxQueueingTimeM', - 'errorMessage' => 'The specified MaxQueueingTimeMs is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.MetricType', - 'errorMessage' => 'The specified MetricType is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Namespace', - 'errorMessage' => 'The specified Namespace is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.ParamIdx', - 'errorMessage' => 'The specified ParamIdx is invalid.', - ], + ['errorCode' => 'IllegalArgument.AppName', 'errorMessage' => 'The specified AppName is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Resource', 'errorMessage' => 'The specified Resource is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Namespace', 'errorMessage' => 'The specified Namespace is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"ParamIdx\\": 1,\\n \\"Namespace\\": \\"default\\",\\n \\"ParamFlowItemList\\": [\\n {\\n \\"ItemValue\\": \\"apple\\",\\n \\"ItemType\\": \\"String\\",\\n \\"Threshold\\": 10\\n }\\n ],\\n \\"StatDurationSec\\": 1,\\n \\"BurstCount\\": 2,\\n \\"RuleId\\": 123,\\n \\"Resource\\": \\"handleService\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"MaxQueueingTimeMs\\": 3000,\\n \\"ControlBehavior\\": 0,\\n \\"MetricType\\": 0,\\n \\"Threshold\\": 20,\\n \\"Enable\\": true\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<CreateHotParamRuleResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <ParamIdx>1</ParamIdx>\\n <Namespace>default</Namespace>\\n <ParamFlowItemList>\\n <ItemValue>apple</ItemValue>\\n <ItemType>String</ItemType>\\n <Threshold>10</Threshold>\\n </ParamFlowItemList>\\n <StatDurationSec>1</StatDurationSec>\\n <BurstCount>2</BurstCount>\\n <RuleId>123</RuleId>\\n <Resource>handleService</Resource>\\n <AppName>ahas-demo</AppName>\\n <MaxQueueingTimeMs>3000</MaxQueueingTimeMs>\\n <ControlBehavior>0</ControlBehavior>\\n <MetricType>0</MetricType>\\n <Threshold>20</Threshold>\\n <Enable>true</Enable>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</CreateHotParamRuleResponse>","errorExample":""}]', - 'extraInfo' => ' ', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"PageIndex\\": 1,\\n \\"Datas\\": [\\n {\\n \\"ParamIdx\\": 1,\\n \\"Namespace\\": \\"default\\",\\n \\"ParamFlowItemList\\": [\\n {\\n \\"ItemValue\\": \\"apple\\",\\n \\"ItemType\\": \\"String\\",\\n \\"Threshold\\": 10\\n }\\n ],\\n \\"StatDurationSec\\": 1,\\n \\"BurstCount\\": 2,\\n \\"RuleId\\": 123,\\n \\"Resource\\": \\"handleService\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"MaxQueueingTimeMs\\": 3000,\\n \\"ControlBehavior\\": 0,\\n \\"MetricType\\": 0,\\n \\"Threshold\\": 10,\\n \\"Enable\\": true\\n }\\n ],\\n \\"TotalPage\\": 3,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 23\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Retrieve hot parameter rules for a resource', + 'summary' => 'Calls the ListHotParamRulesOfResource operation to retrieve the hot parameter rules for a specified resource.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', - 'title' => 'CreateHotParamRule', - ], - 'CreateHotParamItems' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListHotParamRulesOfResource'], + ], ], + ], + 'ListIsolationRulesOfApp' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ - 'name' => 'RuleId', + 'name' => 'Namespace', + 'in' => 'query', + 'schema' => ['description' => 'The namespace.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'default', 'title' => ''], + ], + [ + 'name' => 'AppName', + 'in' => 'query', + 'schema' => ['description' => 'The application name. If the application is an Enterprise Distributed Application Service (EDAS) application, set this parameter to the App ID in EDAS. You can view the App ID in the EDAS console by choosing **Application Management** > **Basic Information**.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ahas-demo', 'title' => ''], + ], + [ + 'name' => 'PageIndex', 'in' => 'query', 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '123', + 'description' => 'The current page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'maximum' => '2147483647', 'minimum' => '0', 'isFileTransferUrl' => false, 'default' => '0', 'example' => '1', + 'title' => '', ], ], [ - 'name' => 'Items', + 'name' => 'PageSize', 'in' => 'query', 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '[{"itemType":"String","itemValue":"apple","threshold":50.0},{"itemType":"String","itemValue":"orange","threshold":20.0}]', + 'description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'maximum' => '2147483647', 'minimum' => '0', 'isFileTransferUrl' => false, 'default' => '0', 'example' => '10', + 'title' => '', ], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -7097,186 +3359,115 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The returned data.', 'type' => 'object', 'properties' => [ - 'ParamIdx' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Namespace' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'ParamFlowItemList' => [ - 'description' => '', + 'PageIndex' => ['description' => 'The current page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Datas' => [ + 'description' => 'The list of isolation rules.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'ItemValue' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'apple', - ], - 'ItemType' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'String', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '10', - ], + 'RelationStrategy' => ['description' => 'The statistical dimension.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Resource' => ['description' => 'The name of the interface resource.', 'type' => 'string', 'example' => 'handleServiceA', 'title' => ''], + 'AppName' => ['description' => 'The application name. If the application is an Enterprise Distributed Application Service (EDAS) application, set this parameter to the App ID in EDAS. You can view the App ID in the EDAS console by choosing **Application Management** > **Basic Information**.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'RefResource' => ['description' => 'The name of the associated interface or the call stack entry name.', 'type' => 'string', 'example' => 'hanldeServiceB', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'LimitOrigin' => ['description' => 'The source application.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'Threshold' => ['description' => 'The concurrency threshold.', 'type' => 'number', 'format' => 'float', 'example' => '10', 'title' => ''], + 'RuleId' => ['description' => 'The rule ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], - 'StatDurationSec' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'BurstCount' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'Resource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleService', - ], - 'AppName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ahas-demo', - ], - 'MaxQueueingTimeMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3000', - ], - 'ControlBehavior' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'MetricType' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '50', - ], - 'Enable' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'TotalPage' => ['description' => 'The total number of pages.', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''], + 'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], + 'TotalCount' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'example' => '23', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Code' => ['description' => 'The response code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.RuleId', - 'errorMessage' => 'The specified RuleId is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.ParamItems', - 'errorMessage' => 'The specified Items is invalid.', - ], + ['errorCode' => 'IllegalArgument.Namespace', 'errorMessage' => 'The specified Namespace is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.AppName', 'errorMessage' => 'The specified AppName is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"ParamIdx\\": 1,\\n \\"Namespace\\": \\"default\\",\\n \\"ParamFlowItemList\\": [\\n {\\n \\"ItemValue\\": \\"apple\\",\\n \\"ItemType\\": \\"String\\",\\n \\"Threshold\\": 10\\n }\\n ],\\n \\"StatDurationSec\\": 1,\\n \\"BurstCount\\": 2,\\n \\"RuleId\\": 123,\\n \\"Resource\\": \\"handleService\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"MaxQueueingTimeMs\\": 3000,\\n \\"ControlBehavior\\": 0,\\n \\"MetricType\\": 1,\\n \\"Threshold\\": 50,\\n \\"Enable\\": true\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<CreateHotParamItemsResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <ParamIdx>1</ParamIdx>\\n <Namespace>default</Namespace>\\n <ParamFlowItemList>\\n <ItemValue>apple</ItemValue>\\n <ItemType>String</ItemType>\\n <Threshold>10</Threshold>\\n </ParamFlowItemList>\\n <StatDurationSec>1</StatDurationSec>\\n <BurstCount>2</BurstCount>\\n <RuleId>123</RuleId>\\n <Resource>handleService</Resource>\\n <AppName>ahas-demo</AppName>\\n <MaxQueueingTimeMs>3000</MaxQueueingTimeMs>\\n <ControlBehavior>0</ControlBehavior>\\n <MetricType>1</MetricType>\\n <Threshold>50</Threshold>\\n <Enable>true</Enable>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</CreateHotParamItemsResponse>","errorExample":""}]', - 'title' => 'CreateHotParamItems', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"PageIndex\\": 1,\\n \\"Datas\\": [\\n {\\n \\"RelationStrategy\\": 0,\\n \\"Resource\\": \\"handleServiceA\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"RefResource\\": \\"hanldeServiceB\\",\\n \\"Namespace\\": \\"default\\",\\n \\"LimitOrigin\\": \\"default\\",\\n \\"Threshold\\": 10,\\n \\"RuleId\\": 123,\\n \\"Enable\\": true\\n }\\n ],\\n \\"TotalPage\\": 3,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 23\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Query application isolation rules', + 'summary' => 'Queries the isolation rules of an application by calling the ListIsolationRulesOfApp operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DeleteHotParamRule' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListIsolationRulesOfApp'], + ], ], + ], + 'ListIsolationRulesOfResource' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ - 'name' => 'RuleId', + 'name' => 'Namespace', + 'in' => 'query', + 'schema' => ['description' => 'The namespace.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'default', 'title' => ''], + ], + [ + 'name' => 'AppName', + 'in' => 'query', + 'schema' => ['description' => 'The application name. If the application is an EDAS application, set this parameter to the App ID in EDAS. You can view the App ID on the **Application Management > Basic Information** page in the EDAS console.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ahas-demo', 'title' => ''], + ], + [ + 'name' => 'Resource', + 'in' => 'query', + 'schema' => ['description' => 'The resource name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'handleServiceA', 'title' => ''], + ], + [ + 'name' => 'PageIndex', + 'in' => 'query', + 'schema' => ['description' => 'The current page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '0', 'isFileTransferUrl' => false, 'default' => '0', 'example' => '1', 'title' => ''], + ], + [ + 'name' => 'PageSize', 'in' => 'query', 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '123', + 'description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'maximum' => '2147483647', 'minimum' => '0', 'isFileTransferUrl' => false, 'default' => '0', 'example' => '10', + 'title' => '', ], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -7284,95 +3475,108 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The returned data.', 'type' => 'object', 'properties' => [ - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', + 'PageIndex' => ['description' => 'The current page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Datas' => [ + 'description' => 'The list of isolation rules.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'RelationStrategy' => ['description' => 'The statistical dimension.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Resource' => ['description' => 'The resource name.', 'type' => 'string', 'example' => 'handleServiceA', 'title' => ''], + 'AppName' => ['description' => 'The application name. If the application is an EDAS application, set this parameter to the App ID in EDAS. You can view the App ID on the **Application Management > Basic Information** page in the EDAS console.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'RefResource' => ['description' => 'The name of the associated interface or the entry name of the call stack.', 'type' => 'string', 'example' => 'handleServiceB', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'LimitOrigin' => ['description' => 'The source application.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'Threshold' => ['description' => 'The concurrency threshold.', 'type' => 'number', 'format' => 'float', 'example' => '10', 'title' => ''], + 'RuleId' => ['description' => 'The rule ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], + 'TotalPage' => ['description' => 'The total number of pages.', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''], + 'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], + 'TotalCount' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'example' => '23', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Code' => ['description' => 'The response code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.RuleId', - 'errorMessage' => 'The specified RuleId is invalid.', - ], + ['errorCode' => 'IllegalArgument.Namespace', 'errorMessage' => 'The specified Namespace is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.AppName', 'errorMessage' => 'The specified AppName is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Resource', 'errorMessage' => 'The specified Resource is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"RuleId\\": 123\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<DeleteHotParamRuleResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <RuleId>123</RuleId>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</DeleteHotParamRuleResponse>","errorExample":""}]', - 'title' => 'DeleteHotParamRule', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"PageIndex\\": 1,\\n \\"Datas\\": [\\n {\\n \\"RelationStrategy\\": 0,\\n \\"Resource\\": \\"handleServiceA\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"RefResource\\": \\"handleServiceB\\",\\n \\"Namespace\\": \\"default\\",\\n \\"LimitOrigin\\": \\"default\\",\\n \\"Threshold\\": 10,\\n \\"RuleId\\": 123,\\n \\"Enable\\": true\\n }\\n ],\\n \\"TotalPage\\": 3,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 23\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Retrieve isolation rules for a resource', + 'summary' => 'Calls the ListIsolationRulesOfResource operation to retrieve the isolation rules for a specified resource.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'EnableHotParamRule' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListIsolationRulesOfResource'], + ], ], + ], + 'ListSystemRules' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ - 'name' => 'RuleId', + 'name' => 'Namespace', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '123', - ], + 'schema' => ['description' => 'The namespace.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'default', 'title' => ''], + ], + [ + 'name' => 'AppName', + 'in' => 'query', + 'schema' => ['description' => 'The application name. If the application is an EDAS application, set this parameter to the App ID in EDAS. You can view the App ID on the Basic Information page in Application Management of the EDAS console.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ahas-demo', 'title' => ''], + ], + [ + 'name' => 'PageIndex', + 'in' => 'query', + 'schema' => ['description' => 'The page number of the page to return.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => 'The number of entries to return on each page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -7380,152 +3584,71 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The returned data.', 'type' => 'object', 'properties' => [ - 'ParamIdx' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Namespace' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'ParamFlowItemList' => [ - 'description' => '', + 'PageIndex' => ['description' => 'The page number of the returned page.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Datas' => [ + 'description' => 'The list of system rules.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'ItemValue' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'apple', - ], - 'ItemType' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'String ', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '10', - ], + 'AppName' => ['description' => 'The application name. If the application is an EDAS application, the value of AppName is the App ID in EDAS. You can view the App ID on the Basic Information page in Application Management of the EDAS console.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'MetricType' => ['description' => 'The metric type.', 'type' => 'integer', 'format' => 'int32', 'example' => '4', 'title' => ''], + 'Threshold' => ['description' => 'The threshold.', 'type' => 'number', 'format' => 'float', 'example' => '0.6', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'RuleId' => ['description' => 'The rule ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], - 'StatDurationSec' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'BurstCount' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'Resource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleService', - ], - 'AppName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ahas-demo', - ], - 'MaxQueueingTimeMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3000', - ], - 'ControlBehavior' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'MetricType' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '20', - ], - 'Enable' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'TotalPage' => ['description' => 'The total number of pages returned.', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''], + 'PageSize' => ['description' => 'The number of entries returned per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], + 'TotalCount' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int32', 'example' => '23', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Code' => ['description' => 'The response code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.RuleId', - 'errorMessage' => 'The specified RuleId is invalid.', - ], + ['errorCode' => 'IllegalArgument.AppName', 'errorMessage' => 'The specified AppName is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Namespace', 'errorMessage' => 'The specified Namespace is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"ParamIdx\\": 1,\\n \\"Namespace\\": \\"default\\",\\n \\"ParamFlowItemList\\": [\\n {\\n \\"ItemValue\\": \\"apple\\",\\n \\"ItemType\\": \\"String \\",\\n \\"Threshold\\": 10\\n }\\n ],\\n \\"StatDurationSec\\": 1,\\n \\"BurstCount\\": 2,\\n \\"RuleId\\": 123,\\n \\"Resource\\": \\"handleService\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"MaxQueueingTimeMs\\": 3000,\\n \\"ControlBehavior\\": 0,\\n \\"MetricType\\": 0,\\n \\"Threshold\\": 20,\\n \\"Enable\\": true\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<EnableHotParamRuleResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <ParamIdx>1</ParamIdx>\\n <Namespace>default</Namespace>\\n <ParamFlowItemList>\\n <ItemValue>apple</ItemValue>\\n <ItemType>String </ItemType>\\n <Threshold>10</Threshold>\\n </ParamFlowItemList>\\n <StatDurationSec>1</StatDurationSec>\\n <BurstCount>2</BurstCount>\\n <RuleId>123</RuleId>\\n <Resource>handleService</Resource>\\n <AppName>ahas-demo</AppName>\\n <MaxQueueingTimeMs>3000</MaxQueueingTimeMs>\\n <ControlBehavior>0</ControlBehavior>\\n <MetricType>0</MetricType>\\n <Threshold>20</Threshold>\\n <Enable>true</Enable>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</EnableHotParamRuleResponse>","errorExample":""}]', - 'title' => 'EnableHotParamRule', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"PageIndex\\": 1,\\n \\"Datas\\": [\\n {\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"Namespace\\": \\"default\\",\\n \\"MetricType\\": 4,\\n \\"Threshold\\": 0.6,\\n \\"Enable\\": true,\\n \\"RuleId\\": 123\\n }\\n ],\\n \\"TotalPage\\": 3,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 23\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'List system rules', + 'summary' => 'Queries system rules by calling the ListSystemRules operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DisableHotParamRule' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListSystemRules'], + ], ], + ], + 'ModifyDegradeRule' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -7536,24 +3659,54 @@ 'systemTags' => [], 'parameters' => [ [ + 'name' => 'Strategy', + 'in' => 'query', + 'schema' => ['description' => 'The threshold type, which specifies the circuit breaking strategy. A value of 0 indicates circuit breaking based on the slow request ratio. A value of 1 indicates circuit breaking based on the exception ratio.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''], + ], + [ + 'name' => 'Threshold', + 'in' => 'query', + 'schema' => ['description' => 'The circuit breaking threshold corresponding to the threshold type. Circuit breaking is triggered for the API when this value is exceeded.', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '0.5', 'title' => ''], + ], + [ 'name' => 'RuleId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '123', - ], + 'schema' => ['description' => 'The ID of the circuit breaking rule.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '123', 'title' => ''], + ], + [ + 'name' => 'RecoveryTimeoutMs', + 'in' => 'query', + 'schema' => ['description' => 'The circuit breaking duration. During this period, all requests to the API fail immediately. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2000', 'title' => ''], + ], + [ + 'name' => 'StatDurationMs', + 'in' => 'query', + 'schema' => ['description' => 'The statistical window duration. Unit: milliseconds. Default value: 1000.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2000', 'title' => ''], + ], + [ + 'name' => 'SlowRtMs', + 'in' => 'query', + 'schema' => ['description' => 'The slow request response time (RT). A request whose response time exceeds this value is counted as a slow request. This parameter is required when the threshold type is set to slow request ratio.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3000', 'title' => ''], + ], + [ + 'name' => 'MinRequestAmount', + 'in' => 'query', + 'schema' => ['description' => 'The minimum number of requests required to trigger circuit breaking. If the number of requests in the current statistical window is less than this value, the circuit breaking rule is not triggered even if the circuit breaking condition is met. Default value: 5.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''], + ], + [ + 'name' => 'HalfOpenBaseAmountPerStep', + 'in' => 'query', + 'schema' => ['description' => 'The minimum number of requests allowed to pass through per step during circuit breaking recovery. Default value: 5.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3', 'title' => ''], + ], + [ + 'name' => 'HalfOpenRecoveryStepNum', + 'in' => 'query', + 'schema' => ['description' => 'The number of recovery steps during circuit breaking recovery. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -7561,214 +3714,129 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The returned data.', 'type' => 'object', 'properties' => [ - 'ParamIdx' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Namespace' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'StatDurationSec' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'BurstCount' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'AppName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ahas-demo', - ], - 'Resource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleService', - ], - 'ControlBehavior' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'MaxQueueingTimeMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3000', - ], - 'MetricType' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '20', - ], - 'Enable' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'false', - ], - 'ParamFlowItemList' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'ItemValue' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'apple', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '10', - ], - 'ItemType' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'String', - ], - ], - ], - ], + 'SlowRtMs' => ['description' => 'The slow request RT.', 'type' => 'integer', 'format' => 'int32', 'example' => '5000', 'title' => ''], + 'HalfOpenRecoveryStepNum' => ['description' => 'The number of recovery steps during circuit breaking recovery.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'StatDurationMs' => ['description' => 'The statistical window duration.', 'type' => 'integer', 'format' => 'int32', 'example' => '2000', 'title' => ''], + 'RuleId' => ['description' => 'The rule ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'Strategy' => ['description' => 'The threshold type.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Resource' => ['description' => 'The resource name.', 'type' => 'string', 'example' => 'handleService', 'title' => ''], + 'AppName' => ['description' => 'The application name. If the application is an Enterprise Distributed Application Service (EDAS) application, AppName is the App ID in EDAS. You can view the corresponding ID in the EDAS console by choosing Application Management > Basic Information.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'HalfOpenBaseAmountPerStep' => ['description' => 'The minimum number of requests allowed to pass through per step during circuit breaking recovery. Default value: 5.', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''], + 'RecoveryTimeoutMs' => ['description' => 'The circuit breaking duration.', 'type' => 'integer', 'format' => 'int32', 'example' => '2000', 'title' => ''], + 'MinRequestAmount' => ['description' => 'The minimum number of requests required to trigger circuit breaking.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], + 'Threshold' => ['description' => 'The threshold.', 'type' => 'number', 'format' => 'float', 'example' => '0.5', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'title' => '', + 'example' => '', ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the call was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument', - 'errorMessage' => 'The specified parameter is invalid.', - ], - ], - ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"ParamIdx\\": 1,\\n \\"Namespace\\": \\"default\\",\\n \\"StatDurationSec\\": 1,\\n \\"BurstCount\\": 2,\\n \\"RuleId\\": 123,\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"Resource\\": \\"handleService\\",\\n \\"ControlBehavior\\": 0,\\n \\"MaxQueueingTimeMs\\": 3000,\\n \\"MetricType\\": 0,\\n \\"Threshold\\": 20,\\n \\"Enable\\": false,\\n \\"ParamFlowItemList\\": [\\n {\\n \\"ItemValue\\": \\"apple\\",\\n \\"Threshold\\": 10,\\n \\"ItemType\\": \\"String\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DisableHotParamRuleResponse>\\n<Message>null</Message>\\n<RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n<Data>\\n <MetricType>0</MetricType>\\n <RuleId>123</RuleId>\\n <Resource>handleService</Resource>\\n <MaxQueueingTimeMs>3000</MaxQueueingTimeMs>\\n <Namespace>default</Namespace>\\n <AppName>ahas-demo</AppName>\\n <BurstCount>2</BurstCount>\\n <ParamFlowItemList>\\n <ItemValue>apple</ItemValue>\\n <ItemType>String</ItemType>\\n <Threshold>10</Threshold>\\n </ParamFlowItemList>\\n <ControlBehavior>0</ControlBehavior>\\n <StatDurationSec>1</StatDurationSec>\\n <Enable>false</Enable>\\n <ParamIdx>1</ParamIdx>\\n <Threshold>20</Threshold>\\n</Data>\\n<Code>200</Code>\\n<Success>true</Success>\\n</DisableHotParamRuleResponse>","errorExample":""}]', - 'title' => 'DisableHotParamRule', + ['errorCode' => 'IllegalArgument.HalfOpenBaseAmountPerStep', 'errorMessage' => 'The specified HalfOpenBaseAmountPerStep is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.HalfOpenRecoveryStepNum', 'errorMessage' => 'The specified HalfOpenRecoveryStepNum is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.MinRequestAmount', 'errorMessage' => 'The specified MinRequestAmount is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.RecoveryTimeoutMs', 'errorMessage' => 'The specified RecoveryTimeoutMs is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.RuleId', 'errorMessage' => 'The specified RuleId is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.SlowRtMS', 'errorMessage' => 'The specified SlowRtMs is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Strategy', 'errorMessage' => 'The specified Strategy is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Threshold', 'errorMessage' => 'The specified Threshold is invalid.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"SlowRtMs\\": 5000,\\n \\"HalfOpenRecoveryStepNum\\": 2,\\n \\"Namespace\\": \\"default\\",\\n \\"StatDurationMs\\": 2000,\\n \\"RuleId\\": 123,\\n \\"Strategy\\": 0,\\n \\"Resource\\": \\"handleService\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"HalfOpenBaseAmountPerStep\\": 3,\\n \\"RecoveryTimeoutMs\\": 2000,\\n \\"MinRequestAmount\\": 10,\\n \\"Threshold\\": 0.5,\\n \\"Enable\\": true\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Modify a circuit breaking rule', + 'summary' => 'Modifies a circuit breaking rule by calling the ModifyDegradeRule operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'ListHotParamRulesOfApp' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyDegradeRule'], + ], ], + ], + 'ModifyFlowRule' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ 'name' => 'Namespace', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'default', - ], + 'schema' => ['description' => 'The namespace.', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'default', 'title' => ''], ], [ - 'name' => 'AppName', + 'name' => 'RuleId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'ahas-demo', - ], + 'schema' => ['description' => 'The rule ID.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '123', 'title' => ''], ], [ - 'name' => 'PageIndex', + 'name' => 'RelationStrategy', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => 'The statistical dimension. Valid values: 0: current interface. 1: associated interface. 2: chain entrance.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''], ], [ - 'name' => 'PageSize', + 'name' => 'Threshold', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => 'The flow control threshold.', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '50', 'title' => ''], + ], + [ + 'name' => 'LimitOrigin', + 'in' => 'query', + 'schema' => ['description' => 'The source application.', 'type' => 'string', 'required' => false, 'example' => 'default', 'title' => ''], + ], + [ + 'name' => 'RefResource', + 'in' => 'query', + 'schema' => ['description' => 'The name of the associated interface or the entrance resource name. This parameter is required when RelationStrategy is set to 1 (associated interface) or 2 (chain entrance).', 'type' => 'string', 'required' => false, 'example' => 'handleServiceB', 'title' => ''], + ], + [ + 'name' => 'ControlBehavior', + 'in' => 'query', + 'schema' => ['description' => 'The flow control behavior. Valid values: 0: fast fail. 1: warm-up. 2: queue waiting.', 'type' => 'string', 'required' => false, 'example' => '0', 'title' => ''], + ], + [ + 'name' => 'WarmUpPeriodSec', + 'in' => 'query', + 'schema' => ['description' => 'The warm-up period, in seconds. This parameter is required when ControlBehavior is set to 1 (warm-up).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30', 'title' => ''], + ], + [ + 'name' => 'MaxQueueingTimeMs', + 'in' => 'query', + 'schema' => ['description' => 'The timeout period, in milliseconds. This parameter is required when ControlBehavior is set to 2 (queue waiting).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2000', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], + ], + [ + 'name' => 'ThresholdMode', + 'in' => 'query', + 'schema' => ['description' => 'The flow control threshold mode.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2', 'title' => ''], ], ], 'responses' => [ @@ -7776,262 +3844,139 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94E*****10', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The returned data.', 'type' => 'object', 'properties' => [ - 'PageIndex' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Datas' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'ParamIdx' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Namespace' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'ParamFlowItemList' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'ItemValue' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'apple', - ], - 'ItemType' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'String', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '20', - ], - ], - ], - ], - 'StatDurationSec' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'BurstCount' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'Resource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleService', - ], - 'AppName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ahas-demo', - ], - 'MaxQueueingTimeMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3000', - ], - 'ControlBehavior' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'MetricType' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '20', - ], - 'Enable' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], - ], - ], - ], - 'TotalPage' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3', - ], - 'PageSize' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'TotalCount' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '23', - ], + 'RefResource' => ['description' => 'The name of the associated interface or the entrance resource name.', 'type' => 'string', 'example' => 'handleServiceB', 'title' => ''], + 'ClusterFallbackThreshold' => ['description' => 'The fallback threshold for standalone mode. This parameter is returned when the fallback strategy is set to fallback to standalone (ClusterFallbackStrategy=0).', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'LimitOrigin' => ['description' => 'The source application.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'StatDurationMs' => ['description' => 'The statistical window duration in cluster mode.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'ClusterThresholdType' => ['description' => 'The threshold mode. Valid values: 0: average threshold per node. 1: cluster threshold.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'RuleId' => ['description' => 'The rule ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'RelationStrategy' => ['description' => 'The statistical dimension.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'AppName' => ['description' => 'The application name. For Enterprise Distributed Application Service (EDAS) applications, AppName is the App ID in EDAS. You can view the corresponding ID in the EDAS console by navigating to Application Management > Basic Information.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'Resource' => ['description' => 'The interface resource name.', 'type' => 'string', 'example' => 'handleServiceA', 'title' => ''], + 'MaxQueueingTimeMs' => ['description' => 'The timeout period.', 'type' => 'integer', 'format' => 'int32', 'example' => '2000', 'title' => ''], + 'ClusterEstimatedMaxQps' => ['description' => 'The estimated maximum QPS of the cluster interface.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''], + 'ControlBehavior' => ['description' => 'The flow control behavior. Valid values: 0: fast fail. 1: warm-up. 2: queue waiting.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'WarmUpPeriodSec' => ['description' => 'The warm-up period.', 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''], + 'ClusterFallbackStrategy' => ['description' => 'The fallback strategy when cluster flow control communication fails. Valid values: 0: fallback to standalone. 1: pass directly.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Threshold' => ['description' => 'The flow control threshold.', 'type' => 'number', 'format' => 'float', 'example' => '50', 'title' => ''], + 'ThresholdMode' => ['description' => 'The flow control threshold mode.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''], + 'ClusterMode' => ['description' => 'Indicates whether cluster mode is enabled.', 'type' => 'boolean', 'example' => 'false', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the call was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.AppName', - 'errorMessage' => 'The specified AppName is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Namespace', - 'errorMessage' => 'The specified Namespace is invalid.', - ], - ], - ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"PageIndex\\": 1,\\n \\"Datas\\": [\\n {\\n \\"ParamIdx\\": 1,\\n \\"Namespace\\": \\"default\\",\\n \\"ParamFlowItemList\\": [\\n {\\n \\"ItemValue\\": \\"apple\\",\\n \\"ItemType\\": \\"String\\",\\n \\"Threshold\\": 20\\n }\\n ],\\n \\"StatDurationSec\\": 1,\\n \\"BurstCount\\": 2,\\n \\"RuleId\\": 123,\\n \\"Resource\\": \\"handleService\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"MaxQueueingTimeMs\\": 3000,\\n \\"ControlBehavior\\": 0,\\n \\"MetricType\\": 0,\\n \\"Threshold\\": 20,\\n \\"Enable\\": true\\n }\\n ],\\n \\"TotalPage\\": 3,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 23\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<ListHotParamRulesOfAppResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <PageIndex>1</PageIndex>\\n <Datas>\\n <ParamIdx>1</ParamIdx>\\n <Namespace>default</Namespace>\\n <ParamFlowItemList>\\n <ItemValue>apple</ItemValue>\\n <ItemType>String</ItemType>\\n <Threshold>20</Threshold>\\n </ParamFlowItemList>\\n <StatDurationSec>1</StatDurationSec>\\n <BurstCount>2</BurstCount>\\n <RuleId>123</RuleId>\\n <Resource>handleService</Resource>\\n <AppName>ahas-demo</AppName>\\n <MaxQueueingTimeMs>3000</MaxQueueingTimeMs>\\n <ControlBehavior>0</ControlBehavior>\\n <MetricType>0</MetricType>\\n <Threshold>20</Threshold>\\n <Enable>true</Enable>\\n </Datas>\\n <TotalPage>3</TotalPage>\\n <PageSize>10</PageSize>\\n <TotalCount>23</TotalCount>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</ListHotParamRulesOfAppResponse>","errorExample":""}]', - 'title' => 'ListHotParamRulesOfApp', + ['errorCode' => 'IllegalArgument.AppName', 'errorMessage' => 'The specified AppName is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.ControlBehavior', 'errorMessage' => 'The specified ControlBehavior is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Namespace', 'errorMessage' => 'The specified Namespace is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.RefResource', 'errorMessage' => 'The specified RefResource is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.RelationStrategy', 'errorMessage' => 'The specified RelationStrategy is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Resource', 'errorMessage' => 'The specified Resource is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.RuleId', 'errorMessage' => 'The specified RuleId is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Threshold', 'errorMessage' => 'The specified Threshold is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.WarmUpPeriodSec', 'errorMessage' => 'The specified WarmUpPeriodSec is invalid.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94E*****10\\",\\n \\"Data\\": {\\n \\"RefResource\\": \\"handleServiceB\\",\\n \\"ClusterFallbackThreshold\\": 0,\\n \\"Namespace\\": \\"default\\",\\n \\"LimitOrigin\\": \\"default\\",\\n \\"StatDurationMs\\": 0,\\n \\"ClusterThresholdType\\": 0,\\n \\"RuleId\\": 123,\\n \\"RelationStrategy\\": 0,\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"Resource\\": \\"handleServiceA\\",\\n \\"MaxQueueingTimeMs\\": 2000,\\n \\"ClusterEstimatedMaxQps\\": 0,\\n \\"ControlBehavior\\": 0,\\n \\"WarmUpPeriodSec\\": 30,\\n \\"ClusterFallbackStrategy\\": 0,\\n \\"Threshold\\": 50,\\n \\"ThresholdMode\\": 2,\\n \\"ClusterMode\\": false,\\n \\"Enable\\": true\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Modify a flow control rule', + 'summary' => 'Modifies a flow control rule by calling the ModifyFlowRule operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'ListHotParamRulesOfResource' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyFlowRule'], + ], ], + ], + 'ModifyHotParamRule' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ - 'name' => 'Namespace', + 'name' => 'MetricType', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'default', - ], + 'schema' => ['description' => 'The statistical dimension. Valid values:'."\n" + ."\n" + .'- 0: concurrency.'."\n" + .'- 1: passed requests.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''], ], [ - 'name' => 'AppName', + 'name' => 'Threshold', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'ahas-demo', - ], + 'schema' => ['description' => 'The threshold for each hot parameter in the hot parameter rule. The value must be an integer greater than or equal to 0.', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '20', 'title' => ''], ], [ - 'name' => 'Resource', + 'name' => 'Enable', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'handleService', - ], + 'schema' => ['description' => 'Specifies whether to enable the rule.', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''], ], [ - 'name' => 'PageIndex', + 'name' => 'RuleId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => 'The rule ID.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '123', 'title' => ''], ], [ - 'name' => 'PageSize', + 'name' => 'ParamIdx', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => 'The index of the parameter position, which is the index of the parameter passed in the instrumentation point. The index corresponds to the parameter index in `SphU.entry(xxx, args)`.'."\n" + ."\n" + .'For example, in `SphU.entry(resourceName, EntryType.IN, 1, paramA, paramB)`, the parameter index of `paramA` is 0 and the parameter index of `paramB` is 1.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''], + ], + [ + 'name' => 'StatDurationSec', + 'in' => 'query', + 'schema' => ['description' => 'The statistical period, in seconds.'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'title' => ''], + ], + [ + 'name' => 'ControlBehavior', + 'in' => 'query', + 'schema' => ['description' => 'The throttling behavior. Valid values:'."\n" + ."\n" + .'- 0: fast failure.'."\n" + .'- 2: queuing.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''], + ], + [ + 'name' => 'BurstCount', + 'in' => 'query', + 'schema' => ['description' => 'The number of burst requests. This parameter is required when the throttling behavior is set to fast failure.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2', 'title' => ''], + ], + [ + 'name' => 'MaxQueueingTimeMs', + 'in' => 'query', + 'schema' => ['description' => 'The timeout period, in seconds. This parameter is required when the throttling behavior is set to queuing.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3000', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -8039,193 +3984,87 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The returned data.', 'type' => 'object', 'properties' => [ - 'PageIndex' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Datas' => [ - 'description' => '', + 'ParamIdx' => ['description' => 'The index of the hot parameter.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'ParamFlowItemList' => [ + 'description' => 'The list of hot parameter exception items.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'ParamIdx' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Namespace' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'ParamFlowItemList' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'ItemValue' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'apple', - ], - 'ItemType' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'String', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '10', - ], - ], - ], - ], - 'StatDurationSec' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'BurstCount' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'Resource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleService', - ], - 'AppName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ahas-demo', - ], - 'MaxQueueingTimeMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3000', - ], - 'ControlBehavior' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'MetricType' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '10', - ], - 'Enable' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'ItemValue' => ['description' => 'The value of the exception item.', 'type' => 'string', 'example' => 'apple', 'title' => ''], + 'ItemType' => ['description' => 'The type of the exception item.', 'type' => 'string', 'example' => 'String', 'title' => ''], + 'Threshold' => ['description' => 'The threshold of the exception item.'."\n", 'type' => 'number', 'format' => 'float', 'example' => '20', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], - ], - 'TotalPage' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3', - ], - 'PageSize' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'TotalCount' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '23', - ], + 'title' => '', + 'example' => '', + ], + 'StatDurationSec' => ['description' => 'The statistical period, in seconds.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''], + 'BurstCount' => ['description' => 'The number of burst requests.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''], + 'RuleId' => ['description' => 'The ID of the hot parameter rule.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'Resource' => ['description' => 'The resource name.', 'type' => 'string', 'example' => 'handleService', 'title' => ''], + 'AppName' => ['description' => 'The application name. If the application is deployed in Enterprise Distributed Application Service (EDAS), the value of AppName is the application ID in EDAS. You can obtain the application ID on the Basic Information page of the application in the EDAS console.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'MaxQueueingTimeMs' => ['description' => 'The timeout period when the throttling behavior is set to queuing, in milliseconds.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '3000', 'title' => ''], + 'ControlBehavior' => ['description' => 'The throttling behavior. Valid values:'."\n" + ."\n" + .'- 0: fast failure.'."\n" + .'- 2: queuing.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'MetricType' => ['description' => 'The statistical dimension. Valid values:'."\n" + ."\n" + .'- 0: concurrency.'."\n" + .'- 1: passed requests.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Threshold' => ['description' => 'The threshold for a single machine.', 'type' => 'number', 'format' => 'float', 'example' => '20', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'false', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Code' => ['description' => 'The response code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.AppName', - 'errorMessage' => 'The specified AppName is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Resource', - 'errorMessage' => 'The specified Resource is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Namespace', - 'errorMessage' => 'The specified Namespace is invalid.', - ], + ['errorCode' => 'IllegalArgument.RuleId', 'errorMessage' => 'The specified RuleId is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.MetricType', 'errorMessage' => 'The specified MetricType is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Threshold', 'errorMessage' => 'The specified Threshold is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.ParamIdx', 'errorMessage' => 'The specified ParamIdx is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.ControlBehavior', 'errorMessage' => 'The specified ControlBehavior is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.MaxQueueingTimeM', 'errorMessage' => 'The specified MaxQueueingTimeMs is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.BurstCount', 'errorMessage' => 'The specified BurstCount is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"PageIndex\\": 1,\\n \\"Datas\\": [\\n {\\n \\"ParamIdx\\": 1,\\n \\"Namespace\\": \\"default\\",\\n \\"ParamFlowItemList\\": [\\n {\\n \\"ItemValue\\": \\"apple\\",\\n \\"ItemType\\": \\"String\\",\\n \\"Threshold\\": 10\\n }\\n ],\\n \\"StatDurationSec\\": 1,\\n \\"BurstCount\\": 2,\\n \\"RuleId\\": 123,\\n \\"Resource\\": \\"handleService\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"MaxQueueingTimeMs\\": 3000,\\n \\"ControlBehavior\\": 0,\\n \\"MetricType\\": 0,\\n \\"Threshold\\": 10,\\n \\"Enable\\": true\\n }\\n ],\\n \\"TotalPage\\": 3,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 23\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<ListHotParamRulesOfResourceResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <PageIndex>1</PageIndex>\\n <Datas>\\n <ParamIdx>1</ParamIdx>\\n <Namespace>default</Namespace>\\n <ParamFlowItemList>\\n <ItemValue>apple</ItemValue>\\n <ItemType>String</ItemType>\\n <Threshold>10</Threshold>\\n </ParamFlowItemList>\\n <StatDurationSec>1</StatDurationSec>\\n <BurstCount>2</BurstCount>\\n <RuleId>123</RuleId>\\n <Resource>handleService</Resource>\\n <AppName>ahas-demo</AppName>\\n <MaxQueueingTimeMs>3000</MaxQueueingTimeMs>\\n <ControlBehavior>0</ControlBehavior>\\n <MetricType>0</MetricType>\\n <Threshold>10</Threshold>\\n <Enable>true</Enable>\\n </Datas>\\n <TotalPage>3</TotalPage>\\n <PageSize>10</PageSize>\\n <TotalCount>23</TotalCount>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</ListHotParamRulesOfResourceResponse>","errorExample":""}]', - 'title' => 'ListHotParamRulesOfResource', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"ParamIdx\\": 1,\\n \\"Namespace\\": \\"default\\",\\n \\"ParamFlowItemList\\": [\\n {\\n \\"ItemValue\\": \\"apple\\",\\n \\"ItemType\\": \\"String\\",\\n \\"Threshold\\": 20\\n }\\n ],\\n \\"StatDurationSec\\": 1,\\n \\"BurstCount\\": 2,\\n \\"RuleId\\": 123,\\n \\"Resource\\": \\"handleService\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"MaxQueueingTimeMs\\": 3000,\\n \\"ControlBehavior\\": 0,\\n \\"MetricType\\": 1,\\n \\"Threshold\\": 20,\\n \\"Enable\\": false\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'ModifyHotParamRule', + 'summary' => 'Modifies a hot parameter rule.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'ModifyHotParamRule' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyHotParamRule'], + ], ], + ], + 'ModifyIsolationRule' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -8236,113 +4075,116 @@ 'systemTags' => [], 'parameters' => [ [ - 'name' => 'MetricType', + 'name' => 'RuleId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => 'The ID of the isolation rule.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '123', 'title' => ''], ], [ - 'name' => 'Threshold', + 'name' => 'RelationStrategy', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'required' => false, - 'example' => '20', - ], + 'schema' => ['description' => 'The statistical dimension. A value of 0 indicates the current interface, 1 indicates the associated interface, and 2 indicates the call chain entry.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => true, 'example' => '0', 'title' => ''], ], [ - 'name' => 'Enable', + 'name' => 'Threshold', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['description' => 'The concurrency threshold.', 'type' => 'number', 'format' => 'float', 'required' => false, 'docRequired' => true, 'example' => '10', 'title' => ''], ], [ - 'name' => 'RuleId', + 'name' => 'LimitOrigin', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '123', - ], + 'schema' => ['description' => 'The source application.', 'type' => 'string', 'required' => false, 'example' => 'default', 'title' => ''], ], [ - 'name' => 'ParamIdx', + 'name' => 'RefResource', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => 'The name of the associated interface or the call stack entry. This parameter is required when the statistical dimension is set to associated interface or call chain entry.', 'type' => 'string', 'required' => false, 'example' => 'handleServiceB', 'title' => ''], ], [ - 'name' => 'StatDurationSec', + 'name' => 'AhasRegionId', 'in' => 'query', + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], + 'Data' => [ + 'description' => 'The returned data.', + 'type' => 'object', + 'properties' => [ + 'RelationStrategy' => ['description' => 'The statistical dimension.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'Resource' => ['description' => 'The resource name.', 'type' => 'string', 'example' => 'handleServiceA', 'title' => ''], + 'AppName' => ['description' => 'The application name. If the application is an EDAS application, AppName is the App ID in EDAS.', 'type' => 'string', 'example' => 'ahas-demo', 'title' => ''], + 'RefResource' => ['description' => 'The name of the associated interface or the call stack entry.', 'type' => 'string', 'example' => 'handleServiceB', 'title' => ''], + 'Namespace' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'LimitOrigin' => ['description' => 'The source application.', 'type' => 'string', 'example' => 'default', 'title' => ''], + 'Threshold' => ['description' => 'The concurrency threshold.', 'type' => 'number', 'format' => 'float', 'example' => '10', 'title' => ''], + 'RuleId' => ['description' => 'The rule ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the call was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + ], 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', + 'title' => '', + 'example' => '', ], ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'IllegalArgument.RuleId', 'errorMessage' => 'The specified RuleId is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.RelationStrategy', 'errorMessage' => 'The specified RelationStrategy is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Threshold', 'errorMessage' => 'The specified Threshold is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.RefResource', 'errorMessage' => 'The specified RefResource is invalid.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"RelationStrategy\\": 0,\\n \\"Resource\\": \\"handleServiceA\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"RefResource\\": \\"handleServiceB\\",\\n \\"Namespace\\": \\"default\\",\\n \\"LimitOrigin\\": \\"default\\",\\n \\"Threshold\\": 10,\\n \\"RuleId\\": 123,\\n \\"Enable\\": true\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Modify an isolation rule', + 'summary' => 'Modifies an isolation rule by calling the ModifyIsolationRule operation.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyIsolationRule'], + ], + ], + ], + 'ModifySystemRule' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'ControlBehavior', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '0', - ], + 'AK' => [], ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ [ - 'name' => 'BurstCount', + 'name' => 'Threshold', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '2', - ], + 'schema' => ['description' => 'The CPU threshold. Valid values: 0 to 1.', 'type' => 'number', 'format' => 'float', 'required' => true, 'docRequired' => true, 'example' => '0.5', 'title' => ''], ], [ - 'name' => 'MaxQueueingTimeMs', + 'name' => 'RuleId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '3000', - ], + 'schema' => ['description' => 'The system rule ID.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '123', 'title' => ''], ], [ 'name' => 'AhasRegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], ], 'responses' => [ @@ -8350,200 +4192,186 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'null', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', - ], + 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The returned data.', 'type' => 'object', 'properties' => [ - 'ParamIdx' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Namespace' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'default', - ], - 'ParamFlowItemList' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'ItemValue' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'apple', - ], - 'ItemType' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'String', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '20', - ], - ], - ], - ], - 'StatDurationSec' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'BurstCount' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'RuleId' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'Resource' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'handleService', - ], - 'AppName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ahas-demo', - ], - 'MaxQueueingTimeMs' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3000', - ], - 'ControlBehavior' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'MetricType' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Threshold' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'float', - 'example' => '20', - ], - 'Enable' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'false', - ], + 'MetricType' => ['description' => 'The statistical dimension.', 'type' => 'integer', 'format' => 'int32', 'example' => '4', 'title' => ''], + 'Threshold' => ['description' => 'The threshold.', 'type' => 'number', 'format' => 'float', 'example' => '0.5', 'title' => ''], + 'RuleId' => ['description' => 'The system rule ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''], + 'Enable' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'Code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'Success' => ['description' => 'Indicates whether the call is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IllegalArgument.RuleId', - 'errorMessage' => 'The specified RuleId is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.MetricType', - 'errorMessage' => 'The specified MetricType is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.Threshold', - 'errorMessage' => 'The specified Threshold is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.ParamIdx', - 'errorMessage' => 'The specified ParamIdx is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.ControlBehavior', - 'errorMessage' => 'The specified ControlBehavior is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.MaxQueueingTimeM', - 'errorMessage' => 'The specified MaxQueueingTimeMs is invalid.', - ], - [ - 'errorCode' => 'IllegalArgument.BurstCount', - 'errorMessage' => 'The specified BurstCount is invalid.', - ], + ['errorCode' => 'IllegalArgument.RuleId', 'errorMessage' => 'The specified RuleId is invalid.', 'description' => ''], + ['errorCode' => 'IllegalArgument.Threshold', 'errorMessage' => 'The specified Threshold is invalid.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"ParamIdx\\": 1,\\n \\"Namespace\\": \\"default\\",\\n \\"ParamFlowItemList\\": [\\n {\\n \\"ItemValue\\": \\"apple\\",\\n \\"ItemType\\": \\"String\\",\\n \\"Threshold\\": 20\\n }\\n ],\\n \\"StatDurationSec\\": 1,\\n \\"BurstCount\\": 2,\\n \\"RuleId\\": 123,\\n \\"Resource\\": \\"handleService\\",\\n \\"AppName\\": \\"ahas-demo\\",\\n \\"MaxQueueingTimeMs\\": 3000,\\n \\"ControlBehavior\\": 0,\\n \\"MetricType\\": 1,\\n \\"Threshold\\": 20,\\n \\"Enable\\": false\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<ModifyHotParamRuleResponse>\\n <Message>null</Message>\\n <RequestId>3FEEAD12-CE22-4EDE-A729-CE94EC070610</RequestId>\\n <Data>\\n <ParamIdx>1</ParamIdx>\\n <Namespace>default</Namespace>\\n <ParamFlowItemList>\\n <ItemValue>apple</ItemValue>\\n <ItemType>String</ItemType>\\n <Threshold>20</Threshold>\\n </ParamFlowItemList>\\n <StatDurationSec>1</StatDurationSec>\\n <BurstCount>2</BurstCount>\\n <RuleId>123</RuleId>\\n <Resource>handleService</Resource>\\n <AppName>ahas-demo</AppName>\\n <MaxQueueingTimeMs>3000</MaxQueueingTimeMs>\\n <ControlBehavior>0</ControlBehavior>\\n <MetricType>1</MetricType>\\n <Threshold>20</Threshold>\\n <Enable>false</Enable>\\n </Data>\\n <Code>200</Code>\\n <Success>true</Success>\\n</ModifyHotParamRuleResponse>","errorExample":""}]', - 'title' => 'ModifyHotParamRule', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"Data\\": {\\n \\"MetricType\\": 4,\\n \\"Threshold\\": 0.5,\\n \\"RuleId\\": 123,\\n \\"Enable\\": true\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => 'Modify a system rule', + 'summary' => 'Modifies a system rule by calling the ModifySystemRule operation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifySystemRule'], + ], + ], ], - ], - 'endpoints' => [ - [ - 'regionId' => 'cn-beijing', - 'endpoint' => 'ahas.cn-beijing.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangjiakou', - 'endpoint' => 'ahas.cn-zhangjiakou.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'ahas.cn-hangzhou.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'ahas.cn-shanghai.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen', - 'endpoint' => 'ahas.cn-shenzhen.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-1', - 'endpoint' => 'ahas.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hongkong', - 'endpoint' => 'ahas.cn-hongkong.aliyuncs.com', + 'OpenAhasService' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'APP' => [], + ], + [ + 'PrivateKey' => [], + ], + [ + 'BearerToken' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FEEAD12-CE22-4EDE-A729-CE94EC070610', 'title' => ''], + 'OrderId' => ['description' => 'The order ID for the service activation.', 'type' => 'string', 'example' => '212307989980192', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + ], + 'errorCodes' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"3FEEAD12-CE22-4EDE-A729-CE94EC070610\\",\\n \\"OrderId\\": \\"212307989980192\\"\\n}","type":"json"}]', + 'title' => 'Activate AHAS', + 'summary' => 'Activates Application High Availability Service (AHAS).', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], ], - [ - 'regionId' => 'eu-central-1', - 'endpoint' => 'ahas.eu-central-1.aliyuncs.com', + ], + 'endpoints' => [], + 'errorCodes' => [ + ['code' => 'CreateRule.Failed', 'message' => 'Failed to create the rule.', 'http_code' => 403, 'description' => ''], + ['code' => 'DeleteRule.Failed', 'message' => 'Failed to delete the rule.', 'http_code' => 403, 'description' => ''], + ['code' => 'DisableRule.Failed', 'message' => 'Failed to disable the rule.', 'http_code' => 403, 'description' => ''], + ['code' => 'EnableRule.Failed', 'message' => 'Failed to enable the rule.', 'http_code' => 403, 'description' => ''], + ['code' => 'IllegalArgument.AppName', 'message' => 'The specified AppName is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.BurstCount', 'message' => 'The specified BurstCount is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.ClusterFallbackThreshold', 'message' => 'The specified ClusterFallbackThreshold is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.ClusterThresholdType', 'message' => 'The specified ClusterThresholdType is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.ControlBehavior', 'message' => 'The specified ControlBehavior is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.Count', 'message' => 'The specified Count is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.Count.ExceedMaxClusterQps', 'message' => 'The specified Count exceeds the cluster maximum QPS.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.DurationInSec', 'message' => 'The specified DurationInSec is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.HalfOpenBaseAmountPerStep', 'message' => 'The specified HalfOpenBaseAmountPerStep is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.HalfOpenRecoveryStepNum', 'message' => 'The specified HalfOpenRecoveryStepNum is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.MaxQueueingTimeM', 'message' => 'The specified MaxQueueingTimeMs is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.MetricType', 'message' => 'The specified MetricType is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.MinRequestAmount', 'message' => 'The specified MinRequestAmount is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.Namespace', 'message' => 'The specified Namespace is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.ParamIdx', 'message' => 'The specified ParamIdx is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.ParamItems', 'message' => 'The specified Items is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.RecoveryTimeoutMs', 'message' => 'The specified RecoveryTimeoutMs is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.RefResource', 'message' => 'The specified RefResource is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.RelationStrategy', 'message' => 'The specified RelationStrategy is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.Resource', 'message' => 'The specified Resource is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.RuleId', 'message' => 'The specified RuleId is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.SampleCount', 'message' => 'The specified SampleCount is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.SampleCount.DivideError', 'message' => 'The specified SampleCount is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.SlowRtMS', 'message' => 'The specified SlowRtMs is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.StatDurationMs', 'message' => 'The specified StatDurationMs is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.Strategy', 'message' => 'The specified Strategy is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.Threshold', 'message' => 'The specified Threshold is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.UserId', 'message' => 'The specified UserId is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.WarmUpPeriodSec', 'message' => 'The specified WarmUpPeriodSec is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'IllegalArgument.WindowIntervalMs', 'message' => 'The specified WindowIntervalMs is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => 'Insufficient.ClusterQuota', 'message' => 'The cluster QPS quota is insufficient.', 'http_code' => 400, 'description' => ''], + ['code' => 'InvalidApp.NotFound', 'message' => 'The specified App does not exist.', 'http_code' => 404, 'description' => ''], + ['code' => 'InvalidCluster.NotFound', 'message' => 'The specified cluster does not exist.', 'http_code' => 404, 'description' => ''], + ['code' => 'InvalidRule.NotFound', 'message' => 'The specified RuleId does not exist.', 'http_code' => 404, 'description' => ''], + ['code' => 'InvalidRule.UserNotMatch', 'message' => 'The speicified rule and user do not match.', 'http_code' => 400, 'description' => ''], + ['code' => 'PublishRule.Failed', 'message' => 'Failed to publish the rule.', 'http_code' => 403, 'description' => ''], + ['code' => 'RedirectToCommonBuy', 'message' => 'AHAS service is not activated.', 'http_code' => 200, 'description' => ''], + ['code' => 'RuleLimit.Exceed', 'message' => 'The maximum number of rules is exceeded.', 'http_code' => 400, 'description' => ''], + ['code' => 'system.error', 'message' => 'An internal server error occurred.', 'http_code' => 200, 'description' => ''], + ['code' => 'SystemRule.Duplicated', 'message' => 'The system rule is duplicated.', 'http_code' => 400, 'description' => ''], + ['code' => 'UpdateRule.Failed', 'message' => 'Failed to update the rule.', 'http_code' => 403, 'description' => ''], + ], + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateHotParamItems'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisableIsolationRule'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListSystemRules'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListHotParamRulesOfResource'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyHotParamRule'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateDegradeRule'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisableDegradeRule'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableDegradeRule'], + ['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetMetricsOfApp'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteDegradeRule'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableSystemRule'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListActiveApps'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyDegradeRule'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteHotParamRule'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteSystemRule'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDegradeRulesOfResource'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFlowRulesOfResource'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteIsolationRule'], + ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRegions'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDegradeRulesOfApp'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateHotParamRule'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyFlowRule'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateSystemRule'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListIsolationRulesOfApp'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifySystemRule'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFlowRulesOfApp'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteFlowRule'], + ['threshold' => '-1', 'countWindow' => 1, 'regionId' => '*'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableFlowRule'], + ['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetSentinelAppSumMetric'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyIsolationRule'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableIsolationRule'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisableFlowRule'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisableSystemRule'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisableHotParamRule'], + ['threshold' => '300', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetMetricsOfResource'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListHotParamRulesOfApp'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateIsolationRule'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableHotParamRule'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetLicenseKey'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateFlowRule'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListIsolationRulesOfResource'], ], ], ]; |
