KeyType - is a class that stores information about a MetricDatum. This is useful
to compare MetricDatums, aggregate similar MetricDatums or store information about a datum
that may be relevant to the user (i.e. MetricName, CustomerId, TimeStamp, etc).
Example:
Let SampleMetricKey be a KeyType that takes in the time in which the datum was created.
MetricDatumWithKeypublic class MetricDatumWithKey<KeyType> extends Object
| Modifier and Type | Field and Description |
|---|---|
com.amazonaws.services.cloudwatch.model.MetricDatum |
datum |
KeyType |
key |
| Constructor and Description |
|---|
MetricDatumWithKey(KeyType key,
com.amazonaws.services.cloudwatch.model.MetricDatum datum) |
public KeyType key
public com.amazonaws.services.cloudwatch.model.MetricDatum datum
public MetricDatumWithKey(KeyType key, com.amazonaws.services.cloudwatch.model.MetricDatum datum)
key - an object that stores relevant information about a MetricDatum (e.g. MetricName, accountId,
TimeStamp)datum - data pointCopyright © 2018. All rights reserved.