View a markdown version of this page

MetricUsage - AWS App Monetization

MetricUsage

A single metric's raw usage over the window.

Contents

metricId

The metric this usage is for.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: [A-Za-z0-9_-]+

Required: Yes

quantity

The metric's usage over the window, as a plain decimal string (for example, "1500" or "12.5"). For a SUM or COUNT metric this is the total; for a MAX metric it is the largest value recorded. Within a fixed window the value can only grow, as late-arriving events are counted.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 22.

Pattern: (0|[1-9][0-9]{0,14})(\.[0-9]{1,6})?

Required: Yes

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: