Class: TencentCloud::Dbbrain::V20210527::EventInfo

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

Overview

异常事件信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(eventid = nil, diagtype = nil, starttime = nil, endtime = nil, outline = nil, severity = nil, scorelost = nil, metric = nil, count = nil) ⇒ EventInfo

Returns a new instance of EventInfo.



5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
# File 'lib/v20210527/models.rb', line 5123

def initialize(eventid=nil, diagtype=nil, starttime=nil, endtime=nil, outline=nil, severity=nil, scorelost=nil, metric=nil, count=nil)
  @EventId = eventid
  @DiagType = diagtype
  @StartTime = starttime
  @EndTime = endtime
  @Outline = outline
  @Severity = severity
  @ScoreLost = scorelost
  @Metric = metric
  @Count = count
end

Instance Attribute Details

#CountObject

Parameters:

  • EventId:

    事件 ID 。

  • DiagType:

    诊断类型。

  • StartTime:

    开始时间。

  • EndTime:

    结束时间。

  • Outline:

    概要。

  • Severity:

    严重程度。严重程度分为5级,按影响程度从高至低分别为:1:致命,2:严重,3:告警,4:提示,5:健康。

  • ScoreLost:

    扣分。

  • Metric:

    保留字段。

  • Count:

    告警数目。



5121
5122
5123
# File 'lib/v20210527/models.rb', line 5121

def Count
  @Count
end

#DiagTypeObject

Parameters:

  • EventId:

    事件 ID 。

  • DiagType:

    诊断类型。

  • StartTime:

    开始时间。

  • EndTime:

    结束时间。

  • Outline:

    概要。

  • Severity:

    严重程度。严重程度分为5级,按影响程度从高至低分别为:1:致命,2:严重,3:告警,4:提示,5:健康。

  • ScoreLost:

    扣分。

  • Metric:

    保留字段。

  • Count:

    告警数目。



5121
5122
5123
# File 'lib/v20210527/models.rb', line 5121

def DiagType
  @DiagType
end

#EndTimeObject

Parameters:

  • EventId:

    事件 ID 。

  • DiagType:

    诊断类型。

  • StartTime:

    开始时间。

  • EndTime:

    结束时间。

  • Outline:

    概要。

  • Severity:

    严重程度。严重程度分为5级,按影响程度从高至低分别为:1:致命,2:严重,3:告警,4:提示,5:健康。

  • ScoreLost:

    扣分。

  • Metric:

    保留字段。

  • Count:

    告警数目。



5121
5122
5123
# File 'lib/v20210527/models.rb', line 5121

def EndTime
  @EndTime
end

#EventIdObject

Parameters:

  • EventId:

    事件 ID 。

  • DiagType:

    诊断类型。

  • StartTime:

    开始时间。

  • EndTime:

    结束时间。

  • Outline:

    概要。

  • Severity:

    严重程度。严重程度分为5级,按影响程度从高至低分别为:1:致命,2:严重,3:告警,4:提示,5:健康。

  • ScoreLost:

    扣分。

  • Metric:

    保留字段。

  • Count:

    告警数目。



5121
5122
5123
# File 'lib/v20210527/models.rb', line 5121

def EventId
  @EventId
end

#MetricObject

Parameters:

  • EventId:

    事件 ID 。

  • DiagType:

    诊断类型。

  • StartTime:

    开始时间。

  • EndTime:

    结束时间。

  • Outline:

    概要。

  • Severity:

    严重程度。严重程度分为5级,按影响程度从高至低分别为:1:致命,2:严重,3:告警,4:提示,5:健康。

  • ScoreLost:

    扣分。

  • Metric:

    保留字段。

  • Count:

    告警数目。



5121
5122
5123
# File 'lib/v20210527/models.rb', line 5121

def Metric
  @Metric
end

#OutlineObject

Parameters:

  • EventId:

    事件 ID 。

  • DiagType:

    诊断类型。

  • StartTime:

    开始时间。

  • EndTime:

    结束时间。

  • Outline:

    概要。

  • Severity:

    严重程度。严重程度分为5级,按影响程度从高至低分别为:1:致命,2:严重,3:告警,4:提示,5:健康。

  • ScoreLost:

    扣分。

  • Metric:

    保留字段。

  • Count:

    告警数目。



5121
5122
5123
# File 'lib/v20210527/models.rb', line 5121

def Outline
  @Outline
end

#ScoreLostObject

Parameters:

  • EventId:

    事件 ID 。

  • DiagType:

    诊断类型。

  • StartTime:

    开始时间。

  • EndTime:

    结束时间。

  • Outline:

    概要。

  • Severity:

    严重程度。严重程度分为5级,按影响程度从高至低分别为:1:致命,2:严重,3:告警,4:提示,5:健康。

  • ScoreLost:

    扣分。

  • Metric:

    保留字段。

  • Count:

    告警数目。



5121
5122
5123
# File 'lib/v20210527/models.rb', line 5121

def ScoreLost
  @ScoreLost
end

#SeverityObject

Parameters:

  • EventId:

    事件 ID 。

  • DiagType:

    诊断类型。

  • StartTime:

    开始时间。

  • EndTime:

    结束时间。

  • Outline:

    概要。

  • Severity:

    严重程度。严重程度分为5级,按影响程度从高至低分别为:1:致命,2:严重,3:告警,4:提示,5:健康。

  • ScoreLost:

    扣分。

  • Metric:

    保留字段。

  • Count:

    告警数目。



5121
5122
5123
# File 'lib/v20210527/models.rb', line 5121

def Severity
  @Severity
end

#StartTimeObject

Parameters:

  • EventId:

    事件 ID 。

  • DiagType:

    诊断类型。

  • StartTime:

    开始时间。

  • EndTime:

    结束时间。

  • Outline:

    概要。

  • Severity:

    严重程度。严重程度分为5级,按影响程度从高至低分别为:1:致命,2:严重,3:告警,4:提示,5:健康。

  • ScoreLost:

    扣分。

  • Metric:

    保留字段。

  • Count:

    告警数目。



5121
5122
5123
# File 'lib/v20210527/models.rb', line 5121

def StartTime
  @StartTime
end

Instance Method Details

#deserialize(params) ⇒ Object



5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
# File 'lib/v20210527/models.rb', line 5135

def deserialize(params)
  @EventId = params['EventId']
  @DiagType = params['DiagType']
  @StartTime = params['StartTime']
  @EndTime = params['EndTime']
  @Outline = params['Outline']
  @Severity = params['Severity']
  @ScoreLost = params['ScoreLost']
  @Metric = params['Metric']
  @Count = params['Count']
end