public class ModifyInstanceLogDeliveryRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
ModifyInstanceLogDeliveryRequest() |
ModifyInstanceLogDeliveryRequest(ModifyInstanceLogDeliveryRequest 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 |
getCreateIndex()
Get Whether to create an index when creating a log topic.
|
Boolean |
getEnabled()
Get Whether log shopping is enabled.
|
String |
getInstanceId()
Get Instance ID.
|
String |
getLogRegion()
Get Region where the logset is located.
|
String |
getLogsetId()
Get ID of the shipped logset, which can be obtained through the sub-parameter **LogsetId** of the response parameter **SlowLog** of the API [DescribeInstanceLogDelivery](https://intl.cloud.tencent.com/document/product/239/110878?from_cn_redirect=1).
|
String |
getLogsetName()
Get Logset name.
|
String |
getLogType()
Get Log type.
|
Long |
getPeriod()
Get Log storage duration.
|
String |
getTopicId()
Get ID of the shipped log topic, which can be obtained through the sub-parameter **TopicId** of the response parameter **SlowLog** of the API [DescribeInstanceLogDelivery](https://intl.cloud.tencent.com/document/product/239/110878?from_cn_redirect=1).
|
String |
getTopicName()
Get Log topic name.
|
void |
setCreateIndex(Boolean CreateIndex)
Set Whether to create an index when creating a log topic.
|
void |
setEnabled(Boolean Enabled)
Set Whether log shopping is enabled.
|
void |
setInstanceId(String InstanceId)
Set Instance ID.
|
void |
setLogRegion(String LogRegion)
Set Region where the logset is located.
|
void |
setLogsetId(String LogsetId)
Set ID of the shipped logset, which can be obtained through the sub-parameter **LogsetId** of the response parameter **SlowLog** of the API [DescribeInstanceLogDelivery](https://intl.cloud.tencent.com/document/product/239/110878?from_cn_redirect=1).
|
void |
setLogsetName(String LogsetName)
Set Logset name.
|
void |
setLogType(String LogType)
Set Log type.
|
void |
setPeriod(Long Period)
Set Log storage duration.
|
void |
setTopicId(String TopicId)
Set ID of the shipped log topic, which can be obtained through the sub-parameter **TopicId** of the response parameter **SlowLog** of the API [DescribeInstanceLogDelivery](https://intl.cloud.tencent.com/document/product/239/110878?from_cn_redirect=1).
|
void |
setTopicName(String TopicName)
Set Log topic name.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public ModifyInstanceLogDeliveryRequest()
public ModifyInstanceLogDeliveryRequest(ModifyInstanceLogDeliveryRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Instance ID. Log in to the [Redis console](https://console.tencentcloud.com/redis/instance) and copy it in the instance list.public String getLogType()
public void setLogType(String LogType)
LogType
- Log type. Currently, only slowlog is supported, indicating the slow query log.public Boolean getEnabled()
public void setEnabled(Boolean Enabled)
Enabled
- Whether log shopping is enabled.
- true: enabled.
- false: disabled.public String getLogsetId()
public void setLogsetId(String LogsetId)
LogsetId
- ID of the shipped logset, which can be obtained through the sub-parameter **LogsetId** of the response parameter **SlowLog** of the API [DescribeInstanceLogDelivery](https://intl.cloud.tencent.com/document/product/239/110878?from_cn_redirect=1).public String getTopicId()
public void setTopicId(String TopicId)
TopicId
- ID of the shipped log topic, which can be obtained through the sub-parameter **TopicId** of the response parameter **SlowLog** of the API [DescribeInstanceLogDelivery](https://intl.cloud.tencent.com/document/product/239/110878?from_cn_redirect=1).public String getLogsetName()
public void setLogsetName(String LogsetName)
LogsetName
- Logset name. If **LogsetId** is not specified, this parameter needs to be configured and the system will automatically create a logset with the specified name.public String getTopicName()
public void setTopicName(String TopicName)
TopicName
- Log topic name. This parameter is required when TopicId is empty, and the system will automatically create a log topic.public String getLogRegion()
public void setLogRegion(String LogRegion)
LogRegion
- Region where the logset is located. If it is not provided, the region where the instance is located will be used by default.public Long getPeriod()
public void setPeriod(Long Period)
Period
- Log storage duration. Default value: 30 days. Value range: 1 to 3600 days.public Boolean getCreateIndex()
public void setCreateIndex(Boolean CreateIndex)
CreateIndex
- Whether to create an index when creating a log topic.Copyright © 2024. All rights reserved.