Class: TencentCloud::Tcm::V20210413::PrometheusStatus

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

Overview

Prometheus状态信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(prometheusid = nil, displayname = nil, instanceid = nil, vpcid = nil, state = nil, region = nil, grafana = nil, type = nil) ⇒ PrometheusStatus

Returns a new instance of PrometheusStatus.



1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
# File 'lib/v20210413/models.rb', line 1804

def initialize(prometheusid=nil, displayname=nil, instanceid=nil, vpcid=nil, state=nil, region=nil, grafana=nil, type=nil)
  @PrometheusId = prometheusid
  @DisplayName = displayname
  @InstanceId = instanceid
  @VpcId = vpcid
  @State = state
  @Region = region
  @Grafana = grafana
  @Type = type
end

Instance Attribute Details

#DisplayNameObject

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

Parameters:

  • PrometheusId:

    Prometheus Id

  • DisplayName:

    展示名称

  • InstanceId:

    实例Id

  • VpcId:

    虚拟网络Id

  • State:

    状态

  • Region:

    地区

  • Grafana:

    Grafana信息

  • Type:

    Prometheus 类型



1802
1803
1804
# File 'lib/v20210413/models.rb', line 1802

def DisplayName
  @DisplayName
end

#GrafanaObject

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

Parameters:

  • PrometheusId:

    Prometheus Id

  • DisplayName:

    展示名称

  • InstanceId:

    实例Id

  • VpcId:

    虚拟网络Id

  • State:

    状态

  • Region:

    地区

  • Grafana:

    Grafana信息

  • Type:

    Prometheus 类型



1802
1803
1804
# File 'lib/v20210413/models.rb', line 1802

def Grafana
  @Grafana
end

#InstanceIdObject

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

Parameters:

  • PrometheusId:

    Prometheus Id

  • DisplayName:

    展示名称

  • InstanceId:

    实例Id

  • VpcId:

    虚拟网络Id

  • State:

    状态

  • Region:

    地区

  • Grafana:

    Grafana信息

  • Type:

    Prometheus 类型



1802
1803
1804
# File 'lib/v20210413/models.rb', line 1802

def InstanceId
  @InstanceId
end

#PrometheusIdObject

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

Parameters:

  • PrometheusId:

    Prometheus Id

  • DisplayName:

    展示名称

  • InstanceId:

    实例Id

  • VpcId:

    虚拟网络Id

  • State:

    状态

  • Region:

    地区

  • Grafana:

    Grafana信息

  • Type:

    Prometheus 类型



1802
1803
1804
# File 'lib/v20210413/models.rb', line 1802

def PrometheusId
  @PrometheusId
end

#RegionObject

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

Parameters:

  • PrometheusId:

    Prometheus Id

  • DisplayName:

    展示名称

  • InstanceId:

    实例Id

  • VpcId:

    虚拟网络Id

  • State:

    状态

  • Region:

    地区

  • Grafana:

    Grafana信息

  • Type:

    Prometheus 类型



1802
1803
1804
# File 'lib/v20210413/models.rb', line 1802

def Region
  @Region
end

#StateObject

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

Parameters:

  • PrometheusId:

    Prometheus Id

  • DisplayName:

    展示名称

  • InstanceId:

    实例Id

  • VpcId:

    虚拟网络Id

  • State:

    状态

  • Region:

    地区

  • Grafana:

    Grafana信息

  • Type:

    Prometheus 类型



1802
1803
1804
# File 'lib/v20210413/models.rb', line 1802

def State
  @State
end

#TypeObject

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

Parameters:

  • PrometheusId:

    Prometheus Id

  • DisplayName:

    展示名称

  • InstanceId:

    实例Id

  • VpcId:

    虚拟网络Id

  • State:

    状态

  • Region:

    地区

  • Grafana:

    Grafana信息

  • Type:

    Prometheus 类型



1802
1803
1804
# File 'lib/v20210413/models.rb', line 1802

def Type
  @Type
end

#VpcIdObject

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

Parameters:

  • PrometheusId:

    Prometheus Id

  • DisplayName:

    展示名称

  • InstanceId:

    实例Id

  • VpcId:

    虚拟网络Id

  • State:

    状态

  • Region:

    地区

  • Grafana:

    Grafana信息

  • Type:

    Prometheus 类型



1802
1803
1804
# File 'lib/v20210413/models.rb', line 1802

def VpcId
  @VpcId
end

Instance Method Details

#deserialize(params) ⇒ Object



1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
# File 'lib/v20210413/models.rb', line 1815

def deserialize(params)
  @PrometheusId = params['PrometheusId']
  @DisplayName = params['DisplayName']
  @InstanceId = params['InstanceId']
  @VpcId = params['VpcId']
  @State = params['State']
  @Region = params['Region']
  unless params['Grafana'].nil?
    @Grafana = GrafanaInfo.new
    @Grafana.deserialize(params['Grafana'])
  end
  @Type = params['Type']
end