public class KeyValueInfo extends AbstractModel
Constructor and Description |
---|
KeyValueInfo() |
KeyValueInfo(KeyValueInfo 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 |
getKey()
Get Name of the field for which you want to configure a key-value or metadata field index.
|
ValueInfo |
getValue()
Get Field index description information
|
void |
setKey(String Key)
Set Name of the field for which you want to configure a key-value or metadata field index.
|
void |
setValue(ValueInfo Value)
Set Field index description information
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public KeyValueInfo()
public KeyValueInfo(KeyValueInfo source)
public String getKey()
public void setKey(String Key)
Key
- Name of the field for which you want to configure a key-value or metadata field index. The name can contain letters, digits, underscores, and symbols -./@ and cannot start with an underscore.
Note:
For a metadata field, set its `Key` to be consistent with the one for log uploading, without prefixing it with `__TAG__.`. `__TAG__.` will be prefixed automatically for display in the console.
2. The total number of keys in key-value indexes (`KeyValue`) and metadata field indexes (`Tag`) cannot exceed 300.
3. The number of levels in `Key` cannot exceed 10. Example: a.b.c.d.e.f.g.h.j.k
4. JSON parent and child fields (such as “a” and “a.b”) cannot be contained at the same time.public ValueInfo getValue()
public void setValue(ValueInfo Value)
Value
- Field index description informationCopyright © 2023. All rights reserved.