You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::MarketplaceMetering::Types::MeterUsageRequestWhen passing MeterUsageRequest as input to an Aws::Client method, you can use a vanilla Hash:
{
product_code: "ProductCode", timestamp: Time.now, usage_dimension: "UsageDimension", usage_quantity: 1,
dry_run: false,
usage_allocations: [
{
allocated_usage_quantity: 1, tags: [
{
key: "TagKey", value: "TagValue", },
],
},
],
}
Instance Attribute Summary collapse
Checks whether you have the permissions required for the action, but does not make the request.
Product code is used to uniquely identify a product in AWS Marketplace.
Timestamp, in UTC, for which the usage is being reported.
The set of UsageAllocations to submit.
It will be one of the fcp dimension name provided during the publishing of the product.
Consumption value for the hour.
Checks whether you have the permissions required for the action, but does not make the request. If you have the permissions, the request returns DryRunOperation; otherwise, it returns UnauthorizedException. Defaults to false
if not specified.
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.
#timestamp ⇒ TimeTimestamp, in UTC, for which the usage is being reported. Your application can meter usage for up to one hour in the past. Make sure the timestamp value is not before the start of the software usage.
#usage_allocations ⇒ Array<Types::UsageAllocation>The set of UsageAllocations to submit.
The sum of all UsageAllocation quantities must equal the UsageQuantity of the MeterUsage request, and each UsageAllocation must have a unique set of tags (include no tags).
#usage_dimension ⇒ StringIt will be one of the fcp dimension name provided during the publishing of the product.
#usage_quantity ⇒ IntegerConsumption value for the hour. Defaults to 0
if not specified.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4