會延遲設定範圍中隨機毫秒數的回應。
外掛程式實例定義
{
"name": "LatencyPlugin",
"enabled": true,
"pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll",
"configSection": "latencyPlugin"
}
組態範例
{
"latencyPlugin": {
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/latencyplugin.schema.json",
"minMs": 200,
"maxMs": 10000
}
}
組態屬性
| 財產 | 描述 | 違約 |
|---|---|---|
minMs |
以毫秒為單位新增至要求的最低延遲量。 | 0 |
maxMs |
以毫秒為單位新增至要求的最大延遲量。 | 五千 |
命令行選項
沒有