Class: TencentCloud::Dlc::V20210125::DescribeSparkSessionBatchSQLCostResponse

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

Overview

DescribeSparkSessionBatchSQLCost返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(costinfo = nil, requestid = nil) ⇒ DescribeSparkSessionBatchSQLCostResponse

Returns a new instance of DescribeSparkSessionBatchSQLCostResponse.



8470
8471
8472
8473
# File 'lib/v20210125/models.rb', line 8470

def initialize(costinfo=nil, requestid=nil)
  @CostInfo = costinfo
  @RequestId = requestid
end

Instance Attribute Details

#CostInfoObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • CostInfo:

    任务消耗

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



8468
8469
8470
# File 'lib/v20210125/models.rb', line 8468

def CostInfo
  @CostInfo
end

#RequestIdObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • CostInfo:

    任务消耗

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



8468
8469
8470
# File 'lib/v20210125/models.rb', line 8468

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
# File 'lib/v20210125/models.rb', line 8475

def deserialize(params)
  unless params['CostInfo'].nil?
    @CostInfo = []
    params['CostInfo'].each do |i|
      batchsqlcostinfo_tmp = BatchSQLCostInfo.new
      batchsqlcostinfo_tmp.deserialize(i)
      @CostInfo << batchsqlcostinfo_tmp
    end
  end
  @RequestId = params['RequestId']
end