API to emit metering records. For identical requests, the API is idempotent. It simply returns the metering record ID.
See https://www.paws-r-sdk.com/docs/marketplacemetering_meter_usage/ for full documentation.
marketplacemetering_meter_usage(
ProductCode,
Timestamp,
UsageDimension,
UsageQuantity = NULL,
DryRun = NULL,
UsageAllocations = NULL
)
[required] 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.
[required] Timestamp, 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.
[required] It will be one of the fcp dimension name provided during the publishing of the product.
Consumption value for the hour. Defaults to 0
if not specified.
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.
The set of UsageAllocations
to submit.
The sum of all UsageAllocation
quantities must equal the
UsageQuantity
of the meter_usage
request, and each UsageAllocation
must have a unique set of tags
(include no tags).