Skip to content

MetricStat🔗

Constructor🔗

MetricStat()

Methods🔗

build🔗

Builds the object.

def build() -> cloudwatch.MetricStat

account_id🔗

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.

def account_id(account_id: str) -> typing.Self

dimensions🔗

The dimensions of the metric

def dimensions(dimensions: cloudwatch.Dimensions) -> typing.Self

match_exact🔗

Only show metrics that exactly match all defined dimension names.

def match_exact(match_exact: bool) -> typing.Self

metric_name🔗

Name of the metric

def metric_name(metric_name: str) -> typing.Self

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.

def namespace(namespace: str) -> typing.Self

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

def period(period: str) -> typing.Self

region🔗

AWS region to query for the metric

def region(region: str) -> typing.Self

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.

def statistic(statistic: str) -> typing.Self

statistics🔗

@deprecated use statistic

def statistics(statistics: list[str]) -> typing.Self

See also🔗