Skip to content

MetricStatBuilder🔗

Constructor🔗

new MetricStatBuilder()

Methods🔗

build🔗

Builds the object.

public MetricStat build()

accountId🔗

The ID of the AWS account to query for the metric, specifying all will query all accounts that the monitoring account is permitted to query.

public MetricStatBuilder accountId(String accountId)

dimensions🔗

The dimensions of the metric

public MetricStatBuilder dimensions(Map<String, StringOrArrayOfString> dimensions)

matchExact🔗

Only show metrics that exactly match all defined dimension names.

public MetricStatBuilder matchExact(Boolean matchExact)

metricName🔗

Name of the metric

public MetricStatBuilder metricName(String metricName)

namespace🔗

A namespace is a container for CloudWatch metrics. Metrics in different namespaces are isolated from each other, so that metrics from different applications are not mistakenly aggregated into the same statistics. For example, Amazon EC2 uses the AWS/EC2 namespace.

public MetricStatBuilder namespace(String namespace)

period🔗

The length of time associated with a specific Amazon CloudWatch statistic. Can be specified by a number of seconds, 'auto', or as a duration string e.g. '15m' being 15 minutes

public MetricStatBuilder period(String period)

region🔗

AWS region to query for the metric

public MetricStatBuilder region(String region)

statistic🔗

Metric data aggregations over specified periods of time. For detailed definitions of the statistics supported by CloudWatch, see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.

public MetricStatBuilder statistic(String statistic)

statistics🔗

@deprecated use statistic

public MetricStatBuilder statistics(List<String> statistics)

See also🔗