bisakhmondal commented on a change in pull request #5984:
URL: https://github.com/apache/apisix/pull/5984#discussion_r777443757
##########
File path: docs/en/latest/plugins/limit-count.md
##########
@@ -39,8 +39,8 @@ Limit request rate by a fixed number of requests in a given
time window.
| ------------------- | ------- | --------------------------------------- |
------------- |
-------------------------------------------------------------------------------------------------------
|
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
| count | integer | required |
| count > 0
| the specified number of requests
threshold.
|
| time_window | integer | required |
| time_window > 0
| the time window in seconds before the request count
is reset.
|
-| key_type | string | optional | "var" | ["var",
"var_combination"] | the type of key. |
-| key | string | optional | "remote_addr" | | the user
specified key to limit the rate. If the `key_type` is "var", the key will be
treated as a name of variable. If the `key_type` is "var_combination", the key
will be a combination of variables. For example, if we use "$remote_addr
$consumer_name" as keys, plugin will be restricted by two keys which are
"remote_addr" and "consumer_name". If the value of the key is empty,
`remote_addr` will be set as the default key.|
+| key_type | string | optional | "var" | ["var",
"var_combination", "constant"] | the type of key. |
+| key | string | optional | "remote_addr" | | the user
specified key to limit the rate. If the `key_type` is "var", the key will be
treated as a constant. If the `key_type` is "var", the key will be treated as a
name of variable. If the `key_type` is "var_combination", the key will be a
combination of variables. For example, if we use "$remote_addr $consumer_name"
as key, plugin will be restricted by two variables which are "remote_addr" and
"consumer_name". If the value of the key is empty, `remote_addr` will be set as
the default key.|
Review comment:
```suggestion
| key | string | optional | "remote_addr" | | the user
specified key to limit the rate. If the `key_type` is "constant", the key will
be treated as a constant. If the `key_type` is "var", the key will be treated
as a name of variable. If the `key_type` is "var_combination", the key will be
a combination of variables. For example, if we use "$remote_addr
$consumer_name" as key, plugin will be restricted by two variables which are
"remote_addr" and "consumer_name". If the value of the key is empty,
`remote_addr` will be set as the default key.|
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]