public static final class GetIndexResponseBody.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
GetIndexResponseBody |
build() |
GetIndexResponseBody.Builder |
indexMode(String indexMode)
The type of the index.
|
GetIndexResponseBody.Builder |
keys(Map<String,IndexKey> keys)
The configurations of field indexes.
|
GetIndexResponseBody.Builder |
lastModifyTime(Long lastModifyTime)
The time when the index configurations were last updated.
|
GetIndexResponseBody.Builder |
line(GetIndexResponseBody.Line line)
The configurations of full-text indexes.
|
GetIndexResponseBody.Builder |
logReduce(Boolean logReduce)
Indicates whether the log clustering feature is enabled.
|
GetIndexResponseBody.Builder |
logReduceBlackList(List<String> logReduceBlackList)
The fields in the blacklist that are used to cluster logs.
|
GetIndexResponseBody.Builder |
logReduceWhiteList(List<String> logReduceWhiteList)
The fields in the whitelist that are used to cluster logs.
|
GetIndexResponseBody.Builder |
maxTextLen(Integer maxTextLen)
The maximum length of a field value that can be retained.
|
GetIndexResponseBody.Builder |
storage(String storage)
The storage type.
|
GetIndexResponseBody.Builder |
ttl(Integer ttl)
The lifecycle of the index file.
|
public GetIndexResponseBody.Builder indexMode(String indexMode)
The type of the index.
example:v2
public GetIndexResponseBody.Builder keys(Map<String,IndexKey> keys)
The configurations of field indexes. A field index is in the key-value format in which the key specifies the name of the field and the value specifies the index configuration of the field.
public GetIndexResponseBody.Builder lastModifyTime(Long lastModifyTime)
The time when the index configurations were last updated. The value is a UNIX timestamp representing the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC.
example:1524155379
public GetIndexResponseBody.Builder line(GetIndexResponseBody.Line line)
The configurations of full-text indexes.
public GetIndexResponseBody.Builder logReduce(Boolean logReduce)
Indicates whether the log clustering feature is enabled.
example:false
public GetIndexResponseBody.Builder logReduceBlackList(List<String> logReduceBlackList)
The fields in the blacklist that are used to cluster logs. This parameter is valid only if the log clustering feature is enabled.
public GetIndexResponseBody.Builder logReduceWhiteList(List<String> logReduceWhiteList)
The fields in the whitelist that are used to cluster logs. This parameter is valid only if the log clustering feature is enabled.
public GetIndexResponseBody.Builder maxTextLen(Integer maxTextLen)
The maximum length of a field value that can be retained. Default value: 2048. Unit: bytes. The default value is equal to 2 KB. You can change the value of the max_text_len parameter. Valid values: 64 to 16384. Unit: bytes.
example:2048
public GetIndexResponseBody.Builder storage(String storage)
The storage type. The value is fixed as pg.
example:pg
public GetIndexResponseBody.Builder ttl(Integer ttl)
The lifecycle of the index file. Valid values: 7, 30, and 90. Unit: day.
This parameter is required.
example:30
public GetIndexResponseBody build()
Copyright © 2025. All rights reserved.