Constructs a builder (immutable) that collects all the necessary parameters as well as allows for a partial construction of CloudWatchMetricDataAggregator objects, with common groups of parameters shared by multiple aggregated metrics.
Constructs a builder (immutable) that collects all the necessary parameters as well as allows for a partial construction of CloudWatchMetricDataAggregator objects, with common groups of parameters shared by multiple aggregated metrics.
N.B. fully constructed CloudWatchMetricDataAggregator instances start to collect metrics immediately, so a global background task that dumps them to CW needs to be started first, please call start() somewhere early in your app startup sequence.
builder instance that you can start customizing
Completely shuts down, can not be restarted.
Starts a background task that periodically dumps aggregated metric data to CW.
Starts a background task that periodically dumps aggregated metric data to CW.
how frequently to dump data to CW. This is intentionally different from the metric aggregation interval. E.g. you may be aggregating metrics for 1min but dump them to CW every 5min, thus taking advantage of larger batch size in API calls and reducing costs.
Stops background tasks.