AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

A UsageRecord indicates a quantity of usage for a given product, customer, dimension and time.

Multiple requests with the same UsageRecords as input will be de-duplicated to prevent double charges.

Inheritance Hierarchy

System.Object
  Amazon.AWSMarketplaceMetering.Model.UsageRecord

Namespace: Amazon.AWSMarketplaceMetering.Model
Assembly: AWSSDK.AWSMarketplaceMetering.dll
Version: 3.x.y.z

Syntax

C#
public class UsageRecord

The UsageRecord type exposes the following members

Constructors

NameDescription
Public Method UsageRecord()

Properties

NameTypeDescription
Public Property CustomerIdentifier System.String

Gets and sets the property CustomerIdentifier.

The CustomerIdentifier is obtained through the ResolveCustomer operation and represents an individual buyer in your application.

Public Property Dimension System.String

Gets and sets the property Dimension.

During the process of registering a product on AWS Marketplace, dimensions are specified. These represent different units of value in your application.

Public Property Quantity System.Int32

Gets and sets the property Quantity.

The quantity of usage consumed by the customer for the given dimension and time. Defaults to 0 if not specified.

Public Property Timestamp System.DateTime

Gets and sets the property Timestamp.

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.

Public Property UsageAllocations System.Collections.Generic.List<Amazon.AWSMarketplaceMetering.Model.UsageAllocation>

Gets and sets the property UsageAllocations.

The set of UsageAllocations to submit. The sum of all UsageAllocation quantities must equal the Quantity of the UsageRecord.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5