Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

UsageRecord

import type { UsageRecord } from "https://aws-api.deno.dev/v0.4/services/marketplacemetering.ts?docs=full";

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.

interface UsageRecord {
CustomerIdentifier: string;
Dimension: string;
Quantity?: number | null;
Timestamp: Date | number;
UsageAllocations?: UsageAllocation[] | null;
}

§Properties

§
CustomerIdentifier: string
[src]

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

§
Dimension: string
[src]

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

§
Quantity?: number | null
[src]

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

§
Timestamp: Date | number
[src]

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.

§
UsageAllocations?: UsageAllocation[] | null
[src]

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