Class: TencentCloud::Monitor::V20230616::DescribeAlarmNotifyHistoriesRequest

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

Overview

DescribeAlarmNotifyHistories请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(monitortype = nil, querybasetime = nil, querybeforeseconds = nil, pageparams = nil, namespace = nil, modelname = nil, policyid = nil) ⇒ DescribeAlarmNotifyHistoriesRequest

Returns a new instance of DescribeAlarmNotifyHistoriesRequest.



39
40
41
42
43
44
45
46
47
# File 'lib/v20230616/models.rb', line 39

def initialize(monitortype=nil, querybasetime=nil, querybeforeseconds=nil, pageparams=nil, namespace=nil, modelname=nil, policyid=nil)
  @MonitorType = monitortype
  @QueryBaseTime = querybasetime
  @QueryBeforeSeconds = querybeforeseconds
  @PageParams = pageparams
  @Namespace = namespace
  @ModelName = modelname
  @PolicyId = policyid
end

Instance Attribute Details

#ModelNameObject

Parameters:

  • MonitorType:

    监控类型

  • QueryBaseTime:

    起始时间点,unix秒级时间戳

  • QueryBeforeSeconds:

    从 QueryBaseTime 开始,需要查询往前多久的时间,单位秒

  • PageParams:

    分页参数

  • Namespace:

    当监控类型为 MT_QCE 时候需要填写,归属的命名空间

  • ModelName:

    当监控类型为 MT_QCE 时候需要填写, 告警策略类型

  • PolicyId:

    查询某个策略的通知历史



37
38
39
# File 'lib/v20230616/models.rb', line 37

def ModelName
  @ModelName
end

#MonitorTypeObject

Parameters:

  • MonitorType:

    监控类型

  • QueryBaseTime:

    起始时间点,unix秒级时间戳

  • QueryBeforeSeconds:

    从 QueryBaseTime 开始,需要查询往前多久的时间,单位秒

  • PageParams:

    分页参数

  • Namespace:

    当监控类型为 MT_QCE 时候需要填写,归属的命名空间

  • ModelName:

    当监控类型为 MT_QCE 时候需要填写, 告警策略类型

  • PolicyId:

    查询某个策略的通知历史



37
38
39
# File 'lib/v20230616/models.rb', line 37

def MonitorType
  @MonitorType
end

#NamespaceObject

Parameters:

  • MonitorType:

    监控类型

  • QueryBaseTime:

    起始时间点,unix秒级时间戳

  • QueryBeforeSeconds:

    从 QueryBaseTime 开始,需要查询往前多久的时间,单位秒

  • PageParams:

    分页参数

  • Namespace:

    当监控类型为 MT_QCE 时候需要填写,归属的命名空间

  • ModelName:

    当监控类型为 MT_QCE 时候需要填写, 告警策略类型

  • PolicyId:

    查询某个策略的通知历史



37
38
39
# File 'lib/v20230616/models.rb', line 37

def Namespace
  @Namespace
end

#PageParamsObject

Parameters:

  • MonitorType:

    监控类型

  • QueryBaseTime:

    起始时间点,unix秒级时间戳

  • QueryBeforeSeconds:

    从 QueryBaseTime 开始,需要查询往前多久的时间,单位秒

  • PageParams:

    分页参数

  • Namespace:

    当监控类型为 MT_QCE 时候需要填写,归属的命名空间

  • ModelName:

    当监控类型为 MT_QCE 时候需要填写, 告警策略类型

  • PolicyId:

    查询某个策略的通知历史



37
38
39
# File 'lib/v20230616/models.rb', line 37

def PageParams
  @PageParams
end

#PolicyIdObject

Parameters:

  • MonitorType:

    监控类型

  • QueryBaseTime:

    起始时间点,unix秒级时间戳

  • QueryBeforeSeconds:

    从 QueryBaseTime 开始,需要查询往前多久的时间,单位秒

  • PageParams:

    分页参数

  • Namespace:

    当监控类型为 MT_QCE 时候需要填写,归属的命名空间

  • ModelName:

    当监控类型为 MT_QCE 时候需要填写, 告警策略类型

  • PolicyId:

    查询某个策略的通知历史



37
38
39
# File 'lib/v20230616/models.rb', line 37

def PolicyId
  @PolicyId
end

#QueryBaseTimeObject

Parameters:

  • MonitorType:

    监控类型

  • QueryBaseTime:

    起始时间点,unix秒级时间戳

  • QueryBeforeSeconds:

    从 QueryBaseTime 开始,需要查询往前多久的时间,单位秒

  • PageParams:

    分页参数

  • Namespace:

    当监控类型为 MT_QCE 时候需要填写,归属的命名空间

  • ModelName:

    当监控类型为 MT_QCE 时候需要填写, 告警策略类型

  • PolicyId:

    查询某个策略的通知历史



37
38
39
# File 'lib/v20230616/models.rb', line 37

def QueryBaseTime
  @QueryBaseTime
end

#QueryBeforeSecondsObject

Parameters:

  • MonitorType:

    监控类型

  • QueryBaseTime:

    起始时间点,unix秒级时间戳

  • QueryBeforeSeconds:

    从 QueryBaseTime 开始,需要查询往前多久的时间,单位秒

  • PageParams:

    分页参数

  • Namespace:

    当监控类型为 MT_QCE 时候需要填写,归属的命名空间

  • ModelName:

    当监控类型为 MT_QCE 时候需要填写, 告警策略类型

  • PolicyId:

    查询某个策略的通知历史



37
38
39
# File 'lib/v20230616/models.rb', line 37

def QueryBeforeSeconds
  @QueryBeforeSeconds
end

Instance Method Details

#deserialize(params) ⇒ Object



49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/v20230616/models.rb', line 49

def deserialize(params)
  @MonitorType = params['MonitorType']
  @QueryBaseTime = params['QueryBaseTime']
  @QueryBeforeSeconds = params['QueryBeforeSeconds']
  unless params['PageParams'].nil?
    @PageParams = PageByNoParams.new
    @PageParams.deserialize(params['PageParams'])
  end
  @Namespace = params['Namespace']
  @ModelName = params['ModelName']
  @PolicyId = params['PolicyId']
end