public class EventConfig extends AbstractModel
Constructor and Description |
---|
EventConfig() |
EventConfig(EventConfig 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 |
getEventType()
Get Event type.
|
Long |
getThreshold()
Get Threshold in milliseconds.
|
void |
setEventType(String EventType)
Set Event type.
|
void |
setThreshold(Long Threshold)
Set Threshold in milliseconds.
|
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 EventConfig()
public EventConfig(EventConfig source)
public String getEventType()
public void setEventType(String EventType)
EventType
- Event type. Valid values: `slow` (set threshold for slow SQL ), `blocked` (set threshold for the blocking and deadlock).public Long getThreshold()
public void setThreshold(Long Threshold)
Threshold
- Threshold in milliseconds. Valid values: `0`(disable), `non-zero` (enable)Copyright © 2023. All rights reserved.