public class RequestsPerSecond extends AbstractModel
header, skipSign
Constructor and Description |
---|
RequestsPerSecond() |
RequestsPerSecond(RequestsPerSecond source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Long |
getDurationSeconds()
Get 施压时间
|
Long |
getGracefulStopSeconds()
Get 优雅关停的等待时间
|
Long |
getMaxRequestsPerSecond()
Get 最大RPS
|
Long |
getResources()
Get 资源数
|
Long |
getStartRequestsPerSecond()
Get 起始RPS
|
Long |
getTargetRequestsPerSecond()
Get 目标RPS,入参无效
|
Long |
getTargetVirtualUsers()
Get deprecated
|
void |
setDurationSeconds(Long DurationSeconds)
Set 施压时间
|
void |
setGracefulStopSeconds(Long GracefulStopSeconds)
Set 优雅关停的等待时间
|
void |
setMaxRequestsPerSecond(Long MaxRequestsPerSecond)
Set 最大RPS
|
void |
setResources(Long Resources)
Set 资源数
|
void |
setStartRequestsPerSecond(Long StartRequestsPerSecond)
Set 起始RPS
|
void |
setTargetRequestsPerSecond(Long TargetRequestsPerSecond)
Set 目标RPS,入参无效
|
void |
setTargetVirtualUsers(Long TargetVirtualUsers)
Set deprecated
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public RequestsPerSecond()
public RequestsPerSecond(RequestsPerSecond source)
public Long getMaxRequestsPerSecond()
public void setMaxRequestsPerSecond(Long MaxRequestsPerSecond)
MaxRequestsPerSecond
- 最大RPSpublic Long getDurationSeconds()
public void setDurationSeconds(Long DurationSeconds)
DurationSeconds
- 施压时间public Long getTargetVirtualUsers()
public void setTargetVirtualUsers(Long TargetVirtualUsers)
TargetVirtualUsers
- deprecatedpublic Long getResources()
public void setResources(Long Resources)
Resources
- 资源数public Long getStartRequestsPerSecond()
public void setStartRequestsPerSecond(Long StartRequestsPerSecond)
StartRequestsPerSecond
- 起始RPSpublic Long getTargetRequestsPerSecond()
public void setTargetRequestsPerSecond(Long TargetRequestsPerSecond)
TargetRequestsPerSecond
- 目标RPS,入参无效public Long getGracefulStopSeconds()
public void setGracefulStopSeconds(Long GracefulStopSeconds)
GracefulStopSeconds
- 优雅关停的等待时间Copyright © 2025. All rights reserved.