Class: TencentCloud::Monitor::V20180724::PrometheusAgent

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

Overview

prometheus agent

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, agentid = nil, instanceid = nil, ipv4 = nil, heartbeattime = nil, lasterror = nil, agentversion = nil, status = nil) ⇒ PrometheusAgent

Returns a new instance of PrometheusAgent.



12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
# File 'lib/v20180724/models.rb', line 12738

def initialize(name=nil, agentid=nil, instanceid=nil, ipv4=nil, heartbeattime=nil, lasterror=nil, agentversion=nil, status=nil)
  @Name = name
  @AgentId = agentid
  @InstanceId = instanceid
  @Ipv4 = ipv4
  @HeartbeatTime = heartbeattime
  @LastError = lasterror
  @AgentVersion = agentversion
  @Status = status
end

Instance Attribute Details

#AgentIdObject

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

Parameters:

  • Name:

    Agent 名

  • AgentId:

    Agent ID

  • InstanceId:

    实例 ID

  • Ipv4:

    Agent IP

  • HeartbeatTime:

    心跳时间

  • LastError:

    最近一次错误

  • AgentVersion:

    Agent 版本

  • Status:

    Agent 状态



12736
12737
12738
# File 'lib/v20180724/models.rb', line 12736

def AgentId
  @AgentId
end

#AgentVersionObject

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

Parameters:

  • Name:

    Agent 名

  • AgentId:

    Agent ID

  • InstanceId:

    实例 ID

  • Ipv4:

    Agent IP

  • HeartbeatTime:

    心跳时间

  • LastError:

    最近一次错误

  • AgentVersion:

    Agent 版本

  • Status:

    Agent 状态



12736
12737
12738
# File 'lib/v20180724/models.rb', line 12736

def AgentVersion
  @AgentVersion
end

#HeartbeatTimeObject

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

Parameters:

  • Name:

    Agent 名

  • AgentId:

    Agent ID

  • InstanceId:

    实例 ID

  • Ipv4:

    Agent IP

  • HeartbeatTime:

    心跳时间

  • LastError:

    最近一次错误

  • AgentVersion:

    Agent 版本

  • Status:

    Agent 状态



12736
12737
12738
# File 'lib/v20180724/models.rb', line 12736

def HeartbeatTime
  @HeartbeatTime
end

#InstanceIdObject

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

Parameters:

  • Name:

    Agent 名

  • AgentId:

    Agent ID

  • InstanceId:

    实例 ID

  • Ipv4:

    Agent IP

  • HeartbeatTime:

    心跳时间

  • LastError:

    最近一次错误

  • AgentVersion:

    Agent 版本

  • Status:

    Agent 状态



12736
12737
12738
# File 'lib/v20180724/models.rb', line 12736

def InstanceId
  @InstanceId
end

#Ipv4Object

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

Parameters:

  • Name:

    Agent 名

  • AgentId:

    Agent ID

  • InstanceId:

    实例 ID

  • Ipv4:

    Agent IP

  • HeartbeatTime:

    心跳时间

  • LastError:

    最近一次错误

  • AgentVersion:

    Agent 版本

  • Status:

    Agent 状态



12736
12737
12738
# File 'lib/v20180724/models.rb', line 12736

def Ipv4
  @Ipv4
end

#LastErrorObject

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

Parameters:

  • Name:

    Agent 名

  • AgentId:

    Agent ID

  • InstanceId:

    实例 ID

  • Ipv4:

    Agent IP

  • HeartbeatTime:

    心跳时间

  • LastError:

    最近一次错误

  • AgentVersion:

    Agent 版本

  • Status:

    Agent 状态



12736
12737
12738
# File 'lib/v20180724/models.rb', line 12736

def LastError
  @LastError
end

#NameObject

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

Parameters:

  • Name:

    Agent 名

  • AgentId:

    Agent ID

  • InstanceId:

    实例 ID

  • Ipv4:

    Agent IP

  • HeartbeatTime:

    心跳时间

  • LastError:

    最近一次错误

  • AgentVersion:

    Agent 版本

  • Status:

    Agent 状态



12736
12737
12738
# File 'lib/v20180724/models.rb', line 12736

def Name
  @Name
end

#StatusObject

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

Parameters:

  • Name:

    Agent 名

  • AgentId:

    Agent ID

  • InstanceId:

    实例 ID

  • Ipv4:

    Agent IP

  • HeartbeatTime:

    心跳时间

  • LastError:

    最近一次错误

  • AgentVersion:

    Agent 版本

  • Status:

    Agent 状态



12736
12737
12738
# File 'lib/v20180724/models.rb', line 12736

def Status
  @Status
end

Instance Method Details

#deserialize(params) ⇒ Object



12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
# File 'lib/v20180724/models.rb', line 12749

def deserialize(params)
  @Name = params['Name']
  @AgentId = params['AgentId']
  @InstanceId = params['InstanceId']
  @Ipv4 = params['Ipv4']
  @HeartbeatTime = params['HeartbeatTime']
  @LastError = params['LastError']
  @AgentVersion = params['AgentVersion']
  @Status = params['Status']
end