lib/v20210728/models.rb in tencentcloud-sdk-pts-3.0.411 vs lib/v20210728/models.rb in tencentcloud-sdk-pts-3.0.412
- old
+ new
@@ -197,29 +197,44 @@
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CreatedAt: String
# @param UpdatedAt: 更新时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UpdatedAt: String
+ # @param AppId: App ID
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type AppId: Integer
+ # @param Uin: 主账号
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type Uin: String
+ # @param SubAccountUin: 子账号
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type SubAccountUin: String
- attr_accessor :NoticeId, :AMPConsumerId, :ProjectId, :Status, :CreatedAt, :UpdatedAt
+ attr_accessor :NoticeId, :AMPConsumerId, :ProjectId, :Status, :CreatedAt, :UpdatedAt, :AppId, :Uin, :SubAccountUin
- def initialize(noticeid=nil, ampconsumerid=nil, projectid=nil, status=nil, createdat=nil, updatedat=nil)
+ def initialize(noticeid=nil, ampconsumerid=nil, projectid=nil, status=nil, createdat=nil, updatedat=nil, appid=nil, uin=nil, subaccountuin=nil)
@NoticeId = noticeid
@AMPConsumerId = ampconsumerid
@ProjectId = projectid
@Status = status
@CreatedAt = createdat
@UpdatedAt = updatedat
+ @AppId = appid
+ @Uin = uin
+ @SubAccountUin = subaccountuin
end
def deserialize(params)
@NoticeId = params['NoticeId']
@AMPConsumerId = params['AMPConsumerId']
@ProjectId = params['ProjectId']
@Status = params['Status']
@CreatedAt = params['CreatedAt']
@UpdatedAt = params['UpdatedAt']
+ @AppId = params['AppId']
+ @Uin = params['Uin']
+ @SubAccountUin = params['SubAccountUin']
end
end
# 告警历史记录项
class AlertRecord < TencentCloud::Common::AbstractModel
@@ -242,21 +257,49 @@
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UpdatedAt: String
# @param JobId: 任务 ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type JobId: String
+ # @param AppId: App ID
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type AppId: Integer
+ # @param Uin: 主账号
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type Uin: String
+ # @param SubAccountUin: 子账号
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type SubAccountUin: String
+ # @param ScenarioName: 场景名称
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type ScenarioName: String
+ # @param Target: 告警对象
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type Target: String
+ # @param JobSLAId: 告警规则 ID
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type JobSLAId: String
+ # @param JobSLADescription: 告警规则描述
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type JobSLADescription: String
- attr_accessor :AlertRecordId, :ProjectId, :ScenarioId, :Status, :CreatedAt, :UpdatedAt, :JobId
+ attr_accessor :AlertRecordId, :ProjectId, :ScenarioId, :Status, :CreatedAt, :UpdatedAt, :JobId, :AppId, :Uin, :SubAccountUin, :ScenarioName, :Target, :JobSLAId, :JobSLADescription
- def initialize(alertrecordid=nil, projectid=nil, scenarioid=nil, status=nil, createdat=nil, updatedat=nil, jobid=nil)
+ def initialize(alertrecordid=nil, projectid=nil, scenarioid=nil, status=nil, createdat=nil, updatedat=nil, jobid=nil, appid=nil, uin=nil, subaccountuin=nil, scenarioname=nil, target=nil, jobslaid=nil, jobsladescription=nil)
@AlertRecordId = alertrecordid
@ProjectId = projectid
@ScenarioId = scenarioid
@Status = status
@CreatedAt = createdat
@UpdatedAt = updatedat
@JobId = jobid
+ @AppId = appid
+ @Uin = uin
+ @SubAccountUin = subaccountuin
+ @ScenarioName = scenarioname
+ @Target = target
+ @JobSLAId = jobslaid
+ @JobSLADescription = jobsladescription
end
def deserialize(params)
@AlertRecordId = params['AlertRecordId']
@ProjectId = params['ProjectId']
@@ -266,10 +309,17 @@
@Status.deserialize(params['Status'])
end
@CreatedAt = params['CreatedAt']
@UpdatedAt = params['UpdatedAt']
@JobId = params['JobId']
+ @AppId = params['AppId']
+ @Uin = params['Uin']
+ @SubAccountUin = params['SubAccountUin']
+ @ScenarioName = params['ScenarioName']
+ @Target = params['Target']
+ @JobSLAId = params['JobSLAId']
+ @JobSLADescription = params['JobSLADescription']
end
end
# 告警历史项的状态
class AlertRecordStatus < TencentCloud::Common::AbstractModel
@@ -895,14 +945,23 @@
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Note: String
# @param JobOwner: tom
# 注意:此字段可能返回 null,表示取不到有效值。
# @type JobOwner: String
+ # @param AppId: App ID
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type AppId: Integer
+ # @param Uin: 主账号
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type Uin: String
+ # @param SubAccountUin: 子账号
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type SubAccountUin: String
- attr_accessor :CronJobId, :Name, :ProjectId, :ScenarioId, :ScenarioName, :CronExpression, :EndTime, :AbortReason, :Status, :NoticeId, :CreatedAt, :UpdatedAt, :FrequencyType, :Note, :JobOwner
+ attr_accessor :CronJobId, :Name, :ProjectId, :ScenarioId, :ScenarioName, :CronExpression, :EndTime, :AbortReason, :Status, :NoticeId, :CreatedAt, :UpdatedAt, :FrequencyType, :Note, :JobOwner, :AppId, :Uin, :SubAccountUin
- def initialize(cronjobid=nil, name=nil, projectid=nil, scenarioid=nil, scenarioname=nil, cronexpression=nil, endtime=nil, abortreason=nil, status=nil, noticeid=nil, createdat=nil, updatedat=nil, frequencytype=nil, note=nil, jobowner=nil)
+ def initialize(cronjobid=nil, name=nil, projectid=nil, scenarioid=nil, scenarioname=nil, cronexpression=nil, endtime=nil, abortreason=nil, status=nil, noticeid=nil, createdat=nil, updatedat=nil, frequencytype=nil, note=nil, jobowner=nil, appid=nil, uin=nil, subaccountuin=nil)
@CronJobId = cronjobid
@Name = name
@ProjectId = projectid
@ScenarioId = scenarioid
@ScenarioName = scenarioname
@@ -914,10 +973,13 @@
@CreatedAt = createdat
@UpdatedAt = updatedat
@FrequencyType = frequencytype
@Note = note
@JobOwner = jobowner
+ @AppId = appid
+ @Uin = uin
+ @SubAccountUin = subaccountuin
end
def deserialize(params)
@CronJobId = params['CronJobId']
@Name = params['Name']
@@ -932,10 +994,13 @@
@CreatedAt = params['CreatedAt']
@UpdatedAt = params['UpdatedAt']
@FrequencyType = params['FrequencyType']
@Note = params['Note']
@JobOwner = params['JobOwner']
+ @AppId = params['AppId']
+ @Uin = params['Uin']
+ @SubAccountUin = params['SubAccountUin']
end
end
# sample附带原始查询语句中的metric, aggregation
class CustomSample < TencentCloud::Common::AbstractModel
@@ -1812,10 +1877,11 @@
end
# DescribeMetricLabelWithValues返回参数结构体
class DescribeMetricLabelWithValuesResponse < TencentCloud::Common::AbstractModel
# @param MetricLabelWithValuesSet: 指标所有的label和values数组
+ # 注意:此字段可能返回 null,表示取不到有效值。
# @type MetricLabelWithValuesSet: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :MetricLabelWithValuesSet, :RequestId
@@ -2716,14 +2782,20 @@
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ScenarioSet: Array
# @param Status: 文件状态
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Status: Integer
+ # @param CreatedAt: 创建时间
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type CreatedAt: String
+ # @param ProjectId: 项目 ID
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type ProjectId: String
- attr_accessor :FileId, :Kind, :Name, :Size, :Type, :UpdatedAt, :LineCount, :HeadLines, :TailLines, :HeaderInFile, :HeaderColumns, :FileInfos, :ScenarioSet, :Status
+ attr_accessor :FileId, :Kind, :Name, :Size, :Type, :UpdatedAt, :LineCount, :HeadLines, :TailLines, :HeaderInFile, :HeaderColumns, :FileInfos, :ScenarioSet, :Status, :CreatedAt, :ProjectId
- def initialize(fileid=nil, kind=nil, name=nil, size=nil, type=nil, updatedat=nil, linecount=nil, headlines=nil, taillines=nil, headerinfile=nil, headercolumns=nil, fileinfos=nil, scenarioset=nil, status=nil)
+ def initialize(fileid=nil, kind=nil, name=nil, size=nil, type=nil, updatedat=nil, linecount=nil, headlines=nil, taillines=nil, headerinfile=nil, headercolumns=nil, fileinfos=nil, scenarioset=nil, status=nil, createdat=nil, projectid=nil)
@FileId = fileid
@Kind = kind
@Name = name
@Size = size
@Type = type
@@ -2734,10 +2806,12 @@
@HeaderInFile = headerinfile
@HeaderColumns = headercolumns
@FileInfos = fileinfos
@ScenarioSet = scenarioset
@Status = status
+ @CreatedAt = createdat
+ @ProjectId = projectid
end
def deserialize(params)
@FileId = params['FileId']
@Kind = params['Kind']
@@ -2765,10 +2839,12 @@
scenario_tmp.deserialize(i)
@ScenarioSet << scenario_tmp
end
end
@Status = params['Status']
+ @CreatedAt = params['CreatedAt']
+ @ProjectId = params['ProjectId']
end
end
# 文件基本信息
class FileInfo < TencentCloud::Common::AbstractModel
@@ -3069,14 +3145,35 @@
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Plugins: Array
# @param CronId: 定时任务ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CronId: String
+ # @param Type: 场景类型
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type Type: String
+ # @param DomainNameConfig: 域名绑定配置
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type DomainNameConfig: :class:`Tencentcloud::Pts.v20210728.models.DomainNameConfig`
+ # @param Debug: false
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type Debug: Boolean
+ # @param AbortReason: 中断原因
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type AbortReason: Integer
+ # @param CreatedAt: 任务的创建时间
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type CreatedAt: String
+ # @param ProjectId: 项目ID
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type ProjectId: String
+ # @param NotificationHooks: 通知事件回调
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type NotificationHooks: Array
- attr_accessor :JobId, :ScenarioId, :Load, :Configs, :Datasets, :Extensions, :Status, :StartTime, :EndTime, :MaxVirtualUserCount, :Note, :ErrorRate, :JobOwner, :LoadSources, :Duration, :MaxRequestsPerSecond, :RequestTotal, :RequestsPerSecond, :ResponseTimeAverage, :ResponseTimeP99, :ResponseTimeP95, :ResponseTimeP90, :Scripts, :ResponseTimeMax, :ResponseTimeMin, :LoadSourceInfos, :TestScripts, :Protocols, :RequestFiles, :Plugins, :CronId
+ attr_accessor :JobId, :ScenarioId, :Load, :Configs, :Datasets, :Extensions, :Status, :StartTime, :EndTime, :MaxVirtualUserCount, :Note, :ErrorRate, :JobOwner, :LoadSources, :Duration, :MaxRequestsPerSecond, :RequestTotal, :RequestsPerSecond, :ResponseTimeAverage, :ResponseTimeP99, :ResponseTimeP95, :ResponseTimeP90, :Scripts, :ResponseTimeMax, :ResponseTimeMin, :LoadSourceInfos, :TestScripts, :Protocols, :RequestFiles, :Plugins, :CronId, :Type, :DomainNameConfig, :Debug, :AbortReason, :CreatedAt, :ProjectId, :NotificationHooks
- def initialize(jobid=nil, scenarioid=nil, load=nil, configs=nil, datasets=nil, extensions=nil, status=nil, starttime=nil, endtime=nil, maxvirtualusercount=nil, note=nil, errorrate=nil, jobowner=nil, loadsources=nil, duration=nil, maxrequestspersecond=nil, requesttotal=nil, requestspersecond=nil, responsetimeaverage=nil, responsetimep99=nil, responsetimep95=nil, responsetimep90=nil, scripts=nil, responsetimemax=nil, responsetimemin=nil, loadsourceinfos=nil, testscripts=nil, protocols=nil, requestfiles=nil, plugins=nil, cronid=nil)
+ def initialize(jobid=nil, scenarioid=nil, load=nil, configs=nil, datasets=nil, extensions=nil, status=nil, starttime=nil, endtime=nil, maxvirtualusercount=nil, note=nil, errorrate=nil, jobowner=nil, loadsources=nil, duration=nil, maxrequestspersecond=nil, requesttotal=nil, requestspersecond=nil, responsetimeaverage=nil, responsetimep99=nil, responsetimep95=nil, responsetimep90=nil, scripts=nil, responsetimemax=nil, responsetimemin=nil, loadsourceinfos=nil, testscripts=nil, protocols=nil, requestfiles=nil, plugins=nil, cronid=nil, type=nil, domainnameconfig=nil, debug=nil, abortreason=nil, createdat=nil, projectid=nil, notificationhooks=nil)
@JobId = jobid
@ScenarioId = scenarioid
@Load = load
@Configs = configs
@Datasets = datasets
@@ -3104,10 +3201,17 @@
@TestScripts = testscripts
@Protocols = protocols
@RequestFiles = requestfiles
@Plugins = plugins
@CronId = cronid
+ @Type = type
+ @DomainNameConfig = domainnameconfig
+ @Debug = debug
+ @AbortReason = abortreason
+ @CreatedAt = createdat
+ @ProjectId = projectid
+ @NotificationHooks = notificationhooks
end
def deserialize(params)
@JobId = params['JobId']
@ScenarioId = params['ScenarioId']
@@ -3186,10 +3290,27 @@
fileinfo_tmp.deserialize(i)
@Plugins << fileinfo_tmp
end
end
@CronId = params['CronId']
+ @Type = params['Type']
+ unless params['DomainNameConfig'].nil?
+ @DomainNameConfig = DomainNameConfig.new
+ @DomainNameConfig.deserialize(params['DomainNameConfig'])
+ end
+ @Debug = params['Debug']
+ @AbortReason = params['AbortReason']
+ @CreatedAt = params['CreatedAt']
+ @ProjectId = params['ProjectId']
+ unless params['NotificationHooks'].nil?
+ @NotificationHooks = []
+ params['NotificationHooks'].each do |i|
+ notificationhook_tmp = NotificationHook.new
+ notificationhook_tmp.deserialize(i)
+ @NotificationHooks << notificationhook_tmp
+ end
+ end
end
end
# 包含labelName 和labelValue
class Label < TencentCloud::Common::AbstractModel
@@ -3454,10 +3575,32 @@
@Events = params['Events']
@URL = params['URL']
end
end
+ # 事件通知回调
+ class NotificationHook < TencentCloud::Common::AbstractModel
+ # @param Events: 通知事件
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type Events: Array
+ # @param URL: 回调 URL
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type URL: String
+
+ attr_accessor :Events, :URL
+
+ def initialize(events=nil, url=nil)
+ @Events = events
+ @URL = url
+ end
+
+ def deserialize(params)
+ @Events = params['Events']
+ @URL = params['URL']
+ end
+ end
+
# 项目
class Project < TencentCloud::Common::AbstractModel
# @param ProjectId: 项目ID
# @type ProjectId: String
# @param Name: 项目名
@@ -3636,23 +3779,32 @@
# @type Min: Float
# @param Max: 请求最大耗时,单位秒
# @type Max: Float
# @param ErrorPercentage: 请求错误率
# @type ErrorPercentage: Float
+ # @param P99: 请求p99耗时,单位秒
+ # @type P99: Float
+ # @param Status: 响应状态码
+ # @type Status: String
+ # @param Result: 响应详情
+ # @type Result: String
- attr_accessor :Service, :Method, :Count, :Average, :P90, :P95, :Min, :Max, :ErrorPercentage
+ attr_accessor :Service, :Method, :Count, :Average, :P90, :P95, :Min, :Max, :ErrorPercentage, :P99, :Status, :Result
- def initialize(service=nil, method=nil, count=nil, average=nil, p90=nil, p95=nil, min=nil, max=nil, errorpercentage=nil)
+ def initialize(service=nil, method=nil, count=nil, average=nil, p90=nil, p95=nil, min=nil, max=nil, errorpercentage=nil, p99=nil, status=nil, result=nil)
@Service = service
@Method = method
@Count = count
@Average = average
@P90 = p90
@P95 = p95
@Min = min
@Max = max
@ErrorPercentage = errorpercentage
+ @P99 = p99
+ @Status = status
+ @Result = result
end
def deserialize(params)
@Service = params['Service']
@Method = params['Method']
@@ -3661,10 +3813,13 @@
@P90 = params['P90']
@P95 = params['P95']
@Min = params['Min']
@Max = params['Max']
@ErrorPercentage = params['ErrorPercentage']
+ @P99 = params['P99']
+ @Status = params['Status']
+ @Result = params['Result']
end
end
# RPS模式的施压配置
class RequestsPerSecond < TencentCloud::Common::AbstractModel
@@ -4010,14 +4165,17 @@
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Plugins: Array
# @param DomainNameConfig: 域名解析配置
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DomainNameConfig: :class:`Tencentcloud::Pts.v20210728.models.DomainNameConfig`
+ # @param NotificationHooks: 通知事件回调
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type NotificationHooks: Array
- attr_accessor :ScenarioId, :Name, :Description, :Type, :Status, :Load, :EncodedScripts, :Configs, :Extensions, :Datasets, :SLAId, :CronId, :CreatedAt, :UpdatedAt, :ProjectId, :AppId, :Uin, :SubAccountUin, :TestScripts, :Protocols, :RequestFiles, :SLAPolicy, :Plugins, :DomainNameConfig
+ attr_accessor :ScenarioId, :Name, :Description, :Type, :Status, :Load, :EncodedScripts, :Configs, :Extensions, :Datasets, :SLAId, :CronId, :CreatedAt, :UpdatedAt, :ProjectId, :AppId, :Uin, :SubAccountUin, :TestScripts, :Protocols, :RequestFiles, :SLAPolicy, :Plugins, :DomainNameConfig, :NotificationHooks
- def initialize(scenarioid=nil, name=nil, description=nil, type=nil, status=nil, load=nil, encodedscripts=nil, configs=nil, extensions=nil, datasets=nil, slaid=nil, cronid=nil, createdat=nil, updatedat=nil, projectid=nil, appid=nil, uin=nil, subaccountuin=nil, testscripts=nil, protocols=nil, requestfiles=nil, slapolicy=nil, plugins=nil, domainnameconfig=nil)
+ def initialize(scenarioid=nil, name=nil, description=nil, type=nil, status=nil, load=nil, encodedscripts=nil, configs=nil, extensions=nil, datasets=nil, slaid=nil, cronid=nil, createdat=nil, updatedat=nil, projectid=nil, appid=nil, uin=nil, subaccountuin=nil, testscripts=nil, protocols=nil, requestfiles=nil, slapolicy=nil, plugins=nil, domainnameconfig=nil, notificationhooks=nil)
@ScenarioId = scenarioid
@Name = name
@Description = description
@Type = type
@Status = status
@@ -4038,10 +4196,11 @@
@Protocols = protocols
@RequestFiles = requestfiles
@SLAPolicy = slapolicy
@Plugins = plugins
@DomainNameConfig = domainnameconfig
+ @NotificationHooks = notificationhooks
end
def deserialize(params)
@ScenarioId = params['ScenarioId']
@Name = params['Name']
@@ -4108,9 +4267,17 @@
end
end
unless params['DomainNameConfig'].nil?
@DomainNameConfig = DomainNameConfig.new
@DomainNameConfig.deserialize(params['DomainNameConfig'])
+ end
+ unless params['NotificationHooks'].nil?
+ @NotificationHooks = []
+ params['NotificationHooks'].each do |i|
+ notificationhook_tmp = NotificationHook.new
+ notificationhook_tmp.deserialize(i)
+ @NotificationHooks << notificationhook_tmp
+ end
end
end
end
# 查询与特定scenario关联的job的参数