Class: TencentCloud::Monitor::V20180724::PrometheusTag

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

Overview

Prometheus 托管服务标签

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key = nil, value = nil) ⇒ PrometheusTag

Returns a new instance of PrometheusTag.



14210
14211
14212
14213
# File 'lib/v20180724/models.rb', line 14210

def initialize(key=nil, value=nil)
  @Key = key
  @Value = value
end

Instance Attribute Details

#KeyObject

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

Parameters:

  • Key:

    标签的健值

  • Value:

    标签对应的值



14208
14209
14210
# File 'lib/v20180724/models.rb', line 14208

def Key
  @Key
end

#ValueObject

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

Parameters:

  • Key:

    标签的健值

  • Value:

    标签对应的值



14208
14209
14210
# File 'lib/v20180724/models.rb', line 14208

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



14215
14216
14217
14218
# File 'lib/v20180724/models.rb', line 14215

def deserialize(params)
  @Key = params['Key']
  @Value = params['Value']
end