public class Filter extends AbstractModel
header, skipSign| Constructor and Description |
|---|
Filter() |
Filter(Filter 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 |
|---|---|
String |
getLabelName()
Get 标签名,可选值包括:
1.
|
String |
getLabelValue()
Get 标签值:
1.
|
Long |
getOperator()
Get 等于:0,不等于:1
|
void |
setLabelName(String LabelName)
Set 标签名,可选值包括:
1.
|
void |
setLabelValue(String LabelValue)
Set 标签值:
1.
|
void |
setOperator(Long Operator)
Set 等于:0,不等于:1
|
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 Filter()
public Filter(Filter source)
public Long getOperator()
public void setOperator(Long Operator)
Operator - 等于:0,不等于:1public String getLabelName()
public void setLabelName(String LabelName)
LabelName - 标签名,可选值包括:
1. method,请求方法名;
2. proto:协议名;
3. service:服务名;
4. status:响应状态码;
5. result:响应详情;
6. check:检查名。public String getLabelValue()
public void setLabelValue(String LabelValue)
LabelValue - 标签值:
1. method:请求方法名,以 http 协议为例,method 为 GET、POST、PUT 等;
2. proto:协议名,以 http 协议为例,proto 为 HTTP/1.1、HTTP/2 等;
3. service:服务名,以 http 协议为例,service 为请求 url,如 http://httpbin.org/get 等;
4. status:响应状态码,以 http 协议为例,状态码包括 200、404、500 等;
5. result:响应详情,通过 result 判断请求成功或失败;请求正常,result 标签值为 ok;请求失败,result 标签携带错误码和描述;
6. check:检查名,标签值为用户设置的检查点名称。Copyright © 2024. All rights reserved.