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

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing BatchMeterUsageRequest as input to an Aws::Client method, you can use a vanilla 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)

    Product code is used to uniquely identify a product in AWS Marketplace.

#usage_recordsArray<Types::UsageRecord>

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

Returns: