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
- Struct
- Aws::MarketplaceMetering::Types::BatchMeterUsageRequest
- 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,
usage_allocations: [
{
allocated_usage_quantity: 1, # required
tags: [
{
key: "TagKey", # required
value: "TagValue", # required
},
],
},
],
},
],
product_code: "ProductCode", # required
}
A BatchMeterUsageRequest contains UsageRecords, which indicate quantities of usage within your application.
Instance Attribute Summary collapse
-
#product_code ⇒ String
Product code is used to uniquely identify a product in AWS Marketplace.
-
#usage_records ⇒ Array<Types::UsageRecord>
The set of UsageRecords to submit.
Instance Attribute Details
#product_code ⇒ String
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.
#usage_records ⇒ Array<Types::UsageRecord>
The set of UsageRecords to submit. BatchMeterUsage accepts up to 25 UsageRecords at a time.