lib/v20180416/models.rb in tencentcloud-sdk-es-3.0.901 vs lib/v20180416/models.rb in tencentcloud-sdk-es-3.0.902

- old
+ new

@@ -2109,25 +2109,29 @@ # @type IndexId: String # @param MetricType: 指标类型,暂时只支持Storage(存储大小),AllMetric(所有存储指标:索引流量、存储大小、文档数量、读请求和写请求) # @type MetricType: Array # @param DurationType: 时间长度类型DurationType(1: 3小时, 2: 昨天1天,3: 今日0点到现在) # @type DurationType: Integer + # @param BatchIndexList: 索引数据 + # @type BatchIndexList: Array - attr_accessor :SpaceId, :IndexId, :MetricType, :DurationType + attr_accessor :SpaceId, :IndexId, :MetricType, :DurationType, :BatchIndexList - def initialize(spaceid=nil, indexid=nil, metrictype=nil, durationtype=nil) + def initialize(spaceid=nil, indexid=nil, metrictype=nil, durationtype=nil, batchindexlist=nil) @SpaceId = spaceid @IndexId = indexid @MetricType = metrictype @DurationType = durationtype + @BatchIndexList = batchindexlist end def deserialize(params) @SpaceId = params['SpaceId'] @IndexId = params['IndexId'] @MetricType = params['MetricType'] @DurationType = params['DurationType'] + @BatchIndexList = params['BatchIndexList'] end end # DescribeServerlessMetrics返回参数结构体 class DescribeServerlessMetricsResponse < TencentCloud::Common::AbstractModel @@ -2139,30 +2143,42 @@ # @type ReadReqTimes: Integer # @param WriteReqTimes: 写请求数,单位次数 # @type WriteReqTimes: Integer # @param DocCount: 文档数量,单位个数 # @type DocCount: Integer + # @param MetricMapList: 指标数据数据 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type MetricMapList: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String - attr_accessor :Storage, :IndexTraffic, :ReadReqTimes, :WriteReqTimes, :DocCount, :RequestId + attr_accessor :Storage, :IndexTraffic, :ReadReqTimes, :WriteReqTimes, :DocCount, :MetricMapList, :RequestId - def initialize(storage=nil, indextraffic=nil, readreqtimes=nil, writereqtimes=nil, doccount=nil, requestid=nil) + def initialize(storage=nil, indextraffic=nil, readreqtimes=nil, writereqtimes=nil, doccount=nil, metricmaplist=nil, requestid=nil) @Storage = storage @IndexTraffic = indextraffic @ReadReqTimes = readreqtimes @WriteReqTimes = writereqtimes @DocCount = doccount + @MetricMapList = metricmaplist @RequestId = requestid end def deserialize(params) @Storage = params['Storage'] @IndexTraffic = params['IndexTraffic'] @ReadReqTimes = params['ReadReqTimes'] @WriteReqTimes = params['WriteReqTimes'] @DocCount = params['DocCount'] + unless params['MetricMapList'].nil? + @MetricMapList = [] + params['MetricMapList'].each do |i| + metricmapbyindexid_tmp = MetricMapByIndexId.new + metricmapbyindexid_tmp.deserialize(i) + @MetricMapList << metricmapbyindexid_tmp + end + end @RequestId = params['RequestId'] end end # DescribeServerlessSpaceUser请求参数结构体 @@ -4664,10 +4680,42 @@ end @Value = params['Value'] end end + # 全部指标数据 + class MetricAllData < TencentCloud::Common::AbstractModel + # @param IndexTraffic: 索引流量 + # @type IndexTraffic: Float + # @param Storage: 存储大小 + # @type Storage: Float + # @param ReadReqTimes: 读请求次数 + # @type ReadReqTimes: Integer + # @param WriteReqTimes: 写请求次数 + # @type WriteReqTimes: Integer + # @param DocCount: 文档数量 + # @type DocCount: Integer + + attr_accessor :IndexTraffic, :Storage, :ReadReqTimes, :WriteReqTimes, :DocCount + + def initialize(indextraffic=nil, storage=nil, readreqtimes=nil, writereqtimes=nil, doccount=nil) + @IndexTraffic = indextraffic + @Storage = storage + @ReadReqTimes = readreqtimes + @WriteReqTimes = writereqtimes + @DocCount = doccount + end + + def deserialize(params) + @IndexTraffic = params['IndexTraffic'] + @Storage = params['Storage'] + @ReadReqTimes = params['ReadReqTimes'] + @WriteReqTimes = params['WriteReqTimes'] + @DocCount = params['DocCount'] + end + end + # 智能运维指标详情 class MetricDetail < TencentCloud::Common::AbstractModel # @param Key: 指标详情名 # @type Key: String # @param Metrics: 指标详情值 @@ -4687,9 +4735,32 @@ params['Metrics'].each do |i| metric_tmp = Metric.new metric_tmp.deserialize(i) @Metrics << metric_tmp end + end + end + end + + # 指标数据map + class MetricMapByIndexId < TencentCloud::Common::AbstractModel + # @param IndexId: 实例id + # @type IndexId: String + # @param MetricAllData: 指标数据 + # @type MetricAllData: :class:`Tencentcloud::Es.v20180416.models.MetricAllData` + + attr_accessor :IndexId, :MetricAllData + + def initialize(indexid=nil, metricalldata=nil) + @IndexId = indexid + @MetricAllData = metricalldata + end + + def deserialize(params) + @IndexId = params['IndexId'] + unless params['MetricAllData'].nil? + @MetricAllData = MetricAllData.new + @MetricAllData.deserialize(params['MetricAllData']) end end end # ModifyEsVipSecurityGroup请求参数结构体