lib/v20210622/models.rb in tencentcloud-sdk-apm-1.0.213 vs lib/v20210622/models.rb in tencentcloud-sdk-apm-1.0.214

- old
+ new

@@ -57,10 +57,137 @@ @InnerCollectorURL = params['InnerCollectorURL'] @PrivateLinkCollectorURL = params['PrivateLinkCollectorURL'] end end + # apm实例信息 + class ApmInstanceDetail < TencentCloud::Common::AbstractModel + # @param AmountOfUsedStorage: 存储使用量(MB) + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type AmountOfUsedStorage: Float + # @param Name: 实例名 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type Name: String + # @param Tags: 实例所属tag列表 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type Tags: Array + # @param InstanceId: 实例ID + # @type InstanceId: String + # @param CreateUin: 创建人Uin + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type CreateUin: String + # @param ServiceCount: 该实例已上报的服务数 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type ServiceCount: Integer + # @param CountOfReportSpanPerDay: 日均上报Span数 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type CountOfReportSpanPerDay: Integer + # @param AppId: AppId信息 + # @type AppId: Integer + # @param TraceDuration: Trace数据保存时长 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type TraceDuration: Integer + # @param Description: 实例描述信息 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type Description: String + # @param Status: 实例状态 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type Status: Integer + # @param Region: 实例所属地域 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type Region: String + # @param SpanDailyCounters: 实例上报额度 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type SpanDailyCounters: Integer + # @param BillingInstance: 实例是否开通计费 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type BillingInstance: Integer + # @param ErrRateThreshold: 错误率阈值 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type ErrRateThreshold: Integer + # @param SampleRate: 采样率阈值 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type SampleRate: Integer + # @param ErrorSample: 是否开启错误采样 0 关 1 开 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type ErrorSample: Integer + # @param SlowRequestSavedThreshold: 慢调用保存阈值 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type SlowRequestSavedThreshold: Integer + + attr_accessor :AmountOfUsedStorage, :Name, :Tags, :InstanceId, :CreateUin, :ServiceCount, :CountOfReportSpanPerDay, :AppId, :TraceDuration, :Description, :Status, :Region, :SpanDailyCounters, :BillingInstance, :ErrRateThreshold, :SampleRate, :ErrorSample, :SlowRequestSavedThreshold + + def initialize(amountofusedstorage=nil, name=nil, tags=nil, instanceid=nil, createuin=nil, servicecount=nil, countofreportspanperday=nil, appid=nil, traceduration=nil, description=nil, status=nil, region=nil, spandailycounters=nil, billinginstance=nil, errratethreshold=nil, samplerate=nil, errorsample=nil, slowrequestsavedthreshold=nil) + @AmountOfUsedStorage = amountofusedstorage + @Name = name + @Tags = tags + @InstanceId = instanceid + @CreateUin = createuin + @ServiceCount = servicecount + @CountOfReportSpanPerDay = countofreportspanperday + @AppId = appid + @TraceDuration = traceduration + @Description = description + @Status = status + @Region = region + @SpanDailyCounters = spandailycounters + @BillingInstance = billinginstance + @ErrRateThreshold = errratethreshold + @SampleRate = samplerate + @ErrorSample = errorsample + @SlowRequestSavedThreshold = slowrequestsavedthreshold + end + + def deserialize(params) + @AmountOfUsedStorage = params['AmountOfUsedStorage'] + @Name = params['Name'] + unless params['Tags'].nil? + @Tags = [] + params['Tags'].each do |i| + apmtag_tmp = ApmTag.new + apmtag_tmp.deserialize(i) + @Tags << apmtag_tmp + end + end + @InstanceId = params['InstanceId'] + @CreateUin = params['CreateUin'] + @ServiceCount = params['ServiceCount'] + @CountOfReportSpanPerDay = params['CountOfReportSpanPerDay'] + @AppId = params['AppId'] + @TraceDuration = params['TraceDuration'] + @Description = params['Description'] + @Status = params['Status'] + @Region = params['Region'] + @SpanDailyCounters = params['SpanDailyCounters'] + @BillingInstance = params['BillingInstance'] + @ErrRateThreshold = params['ErrRateThreshold'] + @SampleRate = params['SampleRate'] + @ErrorSample = params['ErrorSample'] + @SlowRequestSavedThreshold = params['SlowRequestSavedThreshold'] + end + end + + # 维度(标签)对象 + class ApmTag < TencentCloud::Common::AbstractModel + # @param Key: 维度Key(列名,标签Key) + # @type Key: String + # @param Value: 维度值(标签值) + # @type Value: String + + attr_accessor :Key, :Value + + def initialize(key=nil, value=nil) + @Key = key + @Value = value + end + + def deserialize(params) + @Key = params['Key'] + @Value = params['Value'] + end + end + # DescribeApmAgent请求参数结构体 class DescribeApmAgentRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例ID # @type InstanceId: String # @param AgentType: 接入方式 @@ -104,9 +231,68 @@ def deserialize(params) unless params['ApmAgent'].nil? @ApmAgent = ApmAgentInfo.new @ApmAgent.deserialize(params['ApmAgent']) + end + @RequestId = params['RequestId'] + end + end + + # DescribeApmInstances请求参数结构体 + class DescribeApmInstancesRequest < TencentCloud::Common::AbstractModel + # @param Tags: Tag列表 + # @type Tags: Array + # @param InstanceName: 搜索实例名 + # @type InstanceName: String + # @param InstanceIds: 过滤实例ID + # @type InstanceIds: Array + + attr_accessor :Tags, :InstanceName, :InstanceIds + + def initialize(tags=nil, instancename=nil, instanceids=nil) + @Tags = tags + @InstanceName = instancename + @InstanceIds = instanceids + end + + def deserialize(params) + unless params['Tags'].nil? + @Tags = [] + params['Tags'].each do |i| + apmtag_tmp = ApmTag.new + apmtag_tmp.deserialize(i) + @Tags << apmtag_tmp + end + end + @InstanceName = params['InstanceName'] + @InstanceIds = params['InstanceIds'] + end + end + + # DescribeApmInstances返回参数结构体 + class DescribeApmInstancesResponse < TencentCloud::Common::AbstractModel + # @param Instances: apm实例列表 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type Instances: Array + # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + # @type RequestId: String + + attr_accessor :Instances, :RequestId + + def initialize(instances=nil, requestid=nil) + @Instances = instances + @RequestId = requestid + end + + def deserialize(params) + unless params['Instances'].nil? + @Instances = [] + params['Instances'].each do |i| + apminstancedetail_tmp = ApmInstanceDetail.new + apminstancedetail_tmp.deserialize(i) + @Instances << apminstancedetail_tmp + end end @RequestId = params['RequestId'] end end