Class: TencentCloud::Ckafka::V20190819::FailureParam

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

Overview

数据处理规则失败处理

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, kafkaparam = nil, retryinterval = nil, maxretryattempts = nil, topicparam = nil, dlqtype = nil) ⇒ FailureParam

Returns a new instance of FailureParam.



6850
6851
6852
6853
6854
6855
6856
6857
# File 'lib/v20190819/models.rb', line 6850

def initialize(type=nil, kafkaparam=nil, retryinterval=nil, maxretryattempts=nil, topicparam=nil, dlqtype=nil)
  @Type = type
  @KafkaParam = kafkaparam
  @RetryInterval = retryinterval
  @MaxRetryAttempts = maxretryattempts
  @TopicParam = topicparam
  @DlqType = dlqtype
end

Instance Attribute Details

#DlqTypeObject

Parameters:

  • Type:

    类型,DLQ死信队列,IGNORE_ERROR保留,DROP丢弃

  • KafkaParam:

    Ckafka类型死信队列

  • RetryInterval:

    重试间隔

  • MaxRetryAttempts:

    重试次数

  • TopicParam:

    DIP Topic类型死信队列

  • DlqType:

    死信队列类型,CKAFKA,TOPIC



6848
6849
6850
# File 'lib/v20190819/models.rb', line 6848

def DlqType
  @DlqType
end

#KafkaParamObject

Parameters:

  • Type:

    类型,DLQ死信队列,IGNORE_ERROR保留,DROP丢弃

  • KafkaParam:

    Ckafka类型死信队列

  • RetryInterval:

    重试间隔

  • MaxRetryAttempts:

    重试次数

  • TopicParam:

    DIP Topic类型死信队列

  • DlqType:

    死信队列类型,CKAFKA,TOPIC



6848
6849
6850
# File 'lib/v20190819/models.rb', line 6848

def KafkaParam
  @KafkaParam
end

#MaxRetryAttemptsObject

Parameters:

  • Type:

    类型,DLQ死信队列,IGNORE_ERROR保留,DROP丢弃

  • KafkaParam:

    Ckafka类型死信队列

  • RetryInterval:

    重试间隔

  • MaxRetryAttempts:

    重试次数

  • TopicParam:

    DIP Topic类型死信队列

  • DlqType:

    死信队列类型,CKAFKA,TOPIC



6848
6849
6850
# File 'lib/v20190819/models.rb', line 6848

def MaxRetryAttempts
  @MaxRetryAttempts
end

#RetryIntervalObject

Parameters:

  • Type:

    类型,DLQ死信队列,IGNORE_ERROR保留,DROP丢弃

  • KafkaParam:

    Ckafka类型死信队列

  • RetryInterval:

    重试间隔

  • MaxRetryAttempts:

    重试次数

  • TopicParam:

    DIP Topic类型死信队列

  • DlqType:

    死信队列类型,CKAFKA,TOPIC



6848
6849
6850
# File 'lib/v20190819/models.rb', line 6848

def RetryInterval
  @RetryInterval
end

#TopicParamObject

Parameters:

  • Type:

    类型,DLQ死信队列,IGNORE_ERROR保留,DROP丢弃

  • KafkaParam:

    Ckafka类型死信队列

  • RetryInterval:

    重试间隔

  • MaxRetryAttempts:

    重试次数

  • TopicParam:

    DIP Topic类型死信队列

  • DlqType:

    死信队列类型,CKAFKA,TOPIC



6848
6849
6850
# File 'lib/v20190819/models.rb', line 6848

def TopicParam
  @TopicParam
end

#TypeObject

Parameters:

  • Type:

    类型,DLQ死信队列,IGNORE_ERROR保留,DROP丢弃

  • KafkaParam:

    Ckafka类型死信队列

  • RetryInterval:

    重试间隔

  • MaxRetryAttempts:

    重试次数

  • TopicParam:

    DIP Topic类型死信队列

  • DlqType:

    死信队列类型,CKAFKA,TOPIC



6848
6849
6850
# File 'lib/v20190819/models.rb', line 6848

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
# File 'lib/v20190819/models.rb', line 6859

def deserialize(params)
  @Type = params['Type']
  unless params['KafkaParam'].nil?
    @KafkaParam = KafkaParam.new
    @KafkaParam.deserialize(params['KafkaParam'])
  end
  @RetryInterval = params['RetryInterval']
  @MaxRetryAttempts = params['MaxRetryAttempts']
  unless params['TopicParam'].nil?
    @TopicParam = TopicParam.new
    @TopicParam.deserialize(params['TopicParam'])
  end
  @DlqType = params['DlqType']
end