/AWS1/CL_MPMUSAGERECORD¶
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.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
iv_timestamp TYPE /AWS1/MPMTIMESTAMP /AWS1/MPMTIMESTAMP¶
Timestamp, in UTC, for which the usage is being reported.
Your application can meter usage for up to six hours in the past. Make sure the
timestampvalue is not before the start of the software usage.
iv_dimension TYPE /AWS1/MPMUSAGEDIMENSION /AWS1/MPMUSAGEDIMENSION¶
During the process of registering a product on Amazon Web Services Marketplace, dimensions are specified. These represent different units of value in your application.
Optional arguments:¶
iv_customeridentifier TYPE /AWS1/MPMCUSTOMERIDENTIFIER /AWS1/MPMCUSTOMERIDENTIFIER¶
The
CustomerIdentifieris obtained through theResolveCustomeroperation and represents an individual buyer in your application.
iv_quantity TYPE /AWS1/MPMUSAGEQUANTITY /AWS1/MPMUSAGEQUANTITY¶
The quantity of usage consumed by the customer for the given dimension and time. Defaults to
0if not specified.
it_usageallocations TYPE /AWS1/CL_MPMUSAGEALLOCATION=>TT_USAGEALLOCATIONS TT_USAGEALLOCATIONS¶
The set of
UsageAllocationsto submit. The sum of allUsageAllocationquantities must equal the Quantity of theUsageRecord.
iv_customerawsaccountid TYPE /AWS1/MPMCUSTOMERAWSACCOUNTID /AWS1/MPMCUSTOMERAWSACCOUNTID¶
The
CustomerAWSAccountIDparameter specifies the AWS account ID of the buyer.
Queryable Attributes¶
Timestamp¶
Timestamp, in UTC, for which the usage is being reported.
Your application can meter usage for up to six hours in the past. Make sure the
timestampvalue is not before the start of the software usage.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_TIMESTAMP() |
Getter for TIMESTAMP, with configurable default |
ASK_TIMESTAMP() |
Getter for TIMESTAMP w/ exceptions if field has no value |
HAS_TIMESTAMP() |
Determine if TIMESTAMP has a value |
CustomerIdentifier¶
The
CustomerIdentifieris obtained through theResolveCustomeroperation and represents an individual buyer in your application.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_CUSTOMERIDENTIFIER() |
Getter for CUSTOMERIDENTIFIER, with configurable default |
ASK_CUSTOMERIDENTIFIER() |
Getter for CUSTOMERIDENTIFIER w/ exceptions if field has no |
HAS_CUSTOMERIDENTIFIER() |
Determine if CUSTOMERIDENTIFIER has a value |
Dimension¶
During the process of registering a product on Amazon Web Services Marketplace, dimensions are specified. These represent different units of value in your application.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_DIMENSION() |
Getter for DIMENSION, with configurable default |
ASK_DIMENSION() |
Getter for DIMENSION w/ exceptions if field has no value |
HAS_DIMENSION() |
Determine if DIMENSION has a value |
Quantity¶
The quantity of usage consumed by the customer for the given dimension and time. Defaults to
0if not specified.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_QUANTITY() |
Getter for QUANTITY, with configurable default |
ASK_QUANTITY() |
Getter for QUANTITY w/ exceptions if field has no value |
HAS_QUANTITY() |
Determine if QUANTITY has a value |
UsageAllocations¶
The set of
UsageAllocationsto submit. The sum of allUsageAllocationquantities must equal the Quantity of theUsageRecord.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_USAGEALLOCATIONS() |
Getter for USAGEALLOCATIONS, with configurable default |
ASK_USAGEALLOCATIONS() |
Getter for USAGEALLOCATIONS w/ exceptions if field has no va |
HAS_USAGEALLOCATIONS() |
Determine if USAGEALLOCATIONS has a value |
CustomerAWSAccountId¶
The
CustomerAWSAccountIDparameter specifies the AWS account ID of the buyer.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_CUSTOMERAWSACCOUNTID() |
Getter for CUSTOMERAWSACCOUNTID, with configurable default |
ASK_CUSTOMERAWSACCOUNTID() |
Getter for CUSTOMERAWSACCOUNTID w/ exceptions if field has n |
HAS_CUSTOMERAWSACCOUNTID() |
Determine if CUSTOMERAWSACCOUNTID has a value |
Public Local Types In This Class¶
Internal table types, representing arrays and maps of this class, are defined as local types:
TT_USAGERECORDLIST¶
TYPES TT_USAGERECORDLIST TYPE STANDARD TABLE OF REF TO /AWS1/CL_MPMUSAGERECORD WITH DEFAULT KEY
.