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.
|
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.
|
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.
|
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.
|
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, isStream, 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. It can be obtained through the API [DescribeLogsets](https://intl.cloud.tencent.com/document/api/614/58624?from_cn_redirect=1).public String getTopicId()
public void setTopicId(String TopicId)
TopicId
- ID of the shipped log topic. It can be obtained through the API [DescribeTopics](https://intl.cloud.tencent.com/document/api/614/56454?from_cn_redirect=1).public String getLogsetName()
public void setLogsetName(String LogsetName)
LogsetName
- Logset name. It is required when **LogsetId** is left blank. The system will create a logset with the value of LogsetName and ship logs.public String getTopicName()
public void setTopicName(String TopicName)
TopicName
- Log topic name. It is required when **TopicId** is left blank. The system will create a log topic with the value of TopicName and ship logs.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 © 2025. All rights reserved.