Class: TencentCloud::Monitor::V20180724::RemoteWrite

Inherits:
Common::AbstractModel
  • Object
show all
Extended by:
Gem::Deprecate
Defined in:
lib/v20180724/models.rb

Overview

多写配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url = nil, urlrelabelconfig = nil, basicauth = nil, maxblocksize = nil, label = nil, headers = nil) ⇒ RemoteWrite

Returns a new instance of RemoteWrite.



14697
14698
14699
14700
14701
14702
14703
14704
# File 'lib/v20180724/models.rb', line 14697

def initialize(url=nil, urlrelabelconfig=nil, basicauth=nil, maxblocksize=nil, label=nil, headers=nil)
  @URL = url
  @URLRelabelConfig = urlrelabelconfig
  @BasicAuth = basicauth
  @MaxBlockSize = maxblocksize
  @Label = label
  @Headers = headers
end

Instance Attribute Details

#BasicAuthObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • URL:

    多写url

  • URLRelabelConfig:

    RelabelConfig

  • BasicAuth:

    鉴权

  • MaxBlockSize:

    最大block

  • Label:

    Label

  • Headers:

    HTTP 额外添加的头



14690
14691
14692
# File 'lib/v20180724/models.rb', line 14690

def BasicAuth
  @BasicAuth
end

#HeadersObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • URL:

    多写url

  • URLRelabelConfig:

    RelabelConfig

  • BasicAuth:

    鉴权

  • MaxBlockSize:

    最大block

  • Label:

    Label

  • Headers:

    HTTP 额外添加的头



14690
14691
14692
# File 'lib/v20180724/models.rb', line 14690

def Headers
  @Headers
end

#LabelObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • URL:

    多写url

  • URLRelabelConfig:

    RelabelConfig

  • BasicAuth:

    鉴权

  • MaxBlockSize:

    最大block

  • Label:

    Label

  • Headers:

    HTTP 额外添加的头



14690
14691
14692
# File 'lib/v20180724/models.rb', line 14690

def Label
  @Label
end

#MaxBlockSizeObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • URL:

    多写url

  • URLRelabelConfig:

    RelabelConfig

  • BasicAuth:

    鉴权

  • MaxBlockSize:

    最大block

  • Label:

    Label

  • Headers:

    HTTP 额外添加的头



14690
14691
14692
# File 'lib/v20180724/models.rb', line 14690

def MaxBlockSize
  @MaxBlockSize
end

#URLObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • URL:

    多写url

  • URLRelabelConfig:

    RelabelConfig

  • BasicAuth:

    鉴权

  • MaxBlockSize:

    最大block

  • Label:

    Label

  • Headers:

    HTTP 额外添加的头



14690
14691
14692
# File 'lib/v20180724/models.rb', line 14690

def URL
  @URL
end

#URLRelabelConfigObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • URL:

    多写url

  • URLRelabelConfig:

    RelabelConfig

  • BasicAuth:

    鉴权

  • MaxBlockSize:

    最大block

  • Label:

    Label

  • Headers:

    HTTP 额外添加的头



14690
14691
14692
# File 'lib/v20180724/models.rb', line 14690

def URLRelabelConfig
  @URLRelabelConfig
end

Instance Method Details

#deserialize(params) ⇒ Object



14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
# File 'lib/v20180724/models.rb', line 14706

def deserialize(params)
  @URL = params['URL']
  @URLRelabelConfig = params['URLRelabelConfig']
  unless params['BasicAuth'].nil?
    @BasicAuth = BasicAuth.new
    @BasicAuth.deserialize(params['BasicAuth'])
  end
  @MaxBlockSize = params['MaxBlockSize']
  @Label = params['Label']
  unless params['Headers'].nil?
    @Headers = []
    params['Headers'].each do |i|
      remotewriteheader_tmp = RemoteWriteHeader.new
      remotewriteheader_tmp.deserialize(i)
      @Headers << remotewriteheader_tmp
    end
  end
end