edit-icon download-icon

InsertFlowControlRequest

Last Updated: Nov 16, 2018

Function

Adds a throttling configuration.

Request URL

/pop/v5/flowControl

Request method

POST

Request parameters

Parameter Type Required? Description
appId String Yes Application ID
consumerAppId String No ID of the application throttled. The value "default" indicates that all applications are throttled. This parameter is required for HSF throttling.
granularity String Yes Throttling granularity. This parameter can be set to 0 for thread throttling and 1 for QPS throttling.
methodName String No Throttling method, for example, dbCRUD(). The value ALL indicates all methods supported by the traffic-limited interface. This parameter is required for HSF throttling.
ruleType String Yes Rule type, which can be HSF for HSF throttling and URL for HTTP throttling
serviceName String No Interface that is throttled. This parameter is required for HSF throttling.
strategy String No (Reserved) Throttling policy
threshold Integer Yes Threshold
urlVar String No URL for HTTP throttling. This parameter is required for HTTP throttling.

Response parameters

Parameter Type Description
Code Integer Code
Message String Message
Thank you! We've received your feedback.