public class SLARule extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| SLARule() | 
| SLARule(SLARule 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 | 
|---|---|
| Boolean | getAbortFlag()Get 是否停止压测任务 | 
| String | getAggregation()Get 压测指标聚合方法 | 
| String | getCondition()Get 压测指标条件判断符号 | 
| String | getFor()Get 持续时长 | 
| SLALabel[] | getLabelFilter()Get 标签
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getMetric()Get 压测指标 | 
| Float | getValue()Get 阈值 | 
| void | setAbortFlag(Boolean AbortFlag)Set 是否停止压测任务 | 
| void | setAggregation(String Aggregation)Set 压测指标聚合方法 | 
| void | setCondition(String Condition)Set 压测指标条件判断符号 | 
| void | setFor(String For)Set 持续时长 | 
| void | setLabelFilter(SLALabel[] LabelFilter)Set 标签
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setMetric(String Metric)Set 压测指标 | 
| void | setValue(Float Value)Set 阈值 | 
| 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, toJsonStringpublic SLARule()
public SLARule(SLARule source)
public String getMetric()
public void setMetric(String Metric)
Metric - 压测指标public String getAggregation()
public void setAggregation(String Aggregation)
Aggregation - 压测指标聚合方法public String getCondition()
public void setCondition(String Condition)
Condition - 压测指标条件判断符号public Float getValue()
public void setValue(Float Value)
Value - 阈值public SLALabel[] getLabelFilter()
public void setLabelFilter(SLALabel[] LabelFilter)
LabelFilter - 标签
注意:此字段可能返回 null,表示取不到有效值。public Boolean getAbortFlag()
public void setAbortFlag(Boolean AbortFlag)
AbortFlag - 是否停止压测任务public String getFor()
public void setFor(String For)
For - 持续时长Copyright © 2025. All rights reserved.