Class: TencentCloud::Sqlserver::V20180328::EventConfig

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180328/models.rb

Overview

设置实例扩展事件阈值

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(eventtype = nil, threshold = nil) ⇒ EventConfig

Returns a new instance of EventConfig.



7387
7388
7389
7390
# File 'lib/v20180328/models.rb', line 7387

def initialize(eventtype=nil, threshold=nil)
  @EventType = eventtype
  @Threshold = threshold
end

Instance Attribute Details

#EventTypeObject

Parameters:

  • EventType:

    事件类型,slow-设置慢SQL阈值,blocked-设置阻塞、死锁阈值

  • Threshold:

    阈值,单位毫秒。0表示关闭,大于0表示开启



7385
7386
7387
# File 'lib/v20180328/models.rb', line 7385

def EventType
  @EventType
end

#ThresholdObject

Parameters:

  • EventType:

    事件类型,slow-设置慢SQL阈值,blocked-设置阻塞、死锁阈值

  • Threshold:

    阈值,单位毫秒。0表示关闭,大于0表示开启



7385
7386
7387
# File 'lib/v20180328/models.rb', line 7385

def Threshold
  @Threshold
end

Instance Method Details

#deserialize(params) ⇒ Object



7392
7393
7394
7395
# File 'lib/v20180328/models.rb', line 7392

def deserialize(params)
  @EventType = params['EventType']
  @Threshold = params['Threshold']
end