You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::MarketplaceMetering::Types::BatchMeterUsageRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-marketplacemetering/lib/aws-sdk-marketplacemetering/types.rb

Overview

Note:

When making an API call, you may pass BatchMeterUsageRequest data as a hash:

{
  usage_records: [ # required
    {
      timestamp: Time.now, # required
      customer_identifier: "CustomerIdentifier", # required
      dimension: "UsageDimension", # required
      quantity: 1, # required
    },
  ],
  product_code: "ProductCode", # required
}

A BatchMeterUsageRequest contains UsageRecords, which indicate quantities of usage within your application.

Instance Attribute Summary collapse

Instance Attribute Details

#product_codeString

Product code is used to uniquely identify a product in AWS Marketplace. The product code should be the same as the one used during the publishing of a new product.

Returns:

  • (String)


42
43
44
45
46
# File 'gems/aws-sdk-marketplacemetering/lib/aws-sdk-marketplacemetering/types.rb', line 42

class BatchMeterUsageRequest < Struct.new(
  :usage_records,
  :product_code)
  include Aws::Structure
end

#usage_recordsArray<Types::UsageRecord>

The set of UsageRecords to submit. BatchMeterUsage accepts up to 25 UsageRecords at a time.

Returns:



42
43
44
45
46
# File 'gems/aws-sdk-marketplacemetering/lib/aws-sdk-marketplacemetering/types.rb', line 42

class BatchMeterUsageRequest < Struct.new(
  :usage_records,
  :product_code)
  include Aws::Structure
end