Skip to content

MetricStatBuilder🔗

Constructor🔗

func NewMetricStatBuilder() *MetricStatBuilder

Methods🔗

Build🔗

Builds the object.

func (builder *MetricStatBuilder) Build() (MetricStat, error)

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.

func (builder *MetricStatBuilder) AccountId(accountId string) *MetricStatBuilder

Dimensions🔗

The dimensions of the metric

func (builder *MetricStatBuilder) Dimensions(dimensions cloudwatch.Dimensions) *MetricStatBuilder

MatchExact🔗

Only show metrics that exactly match all defined dimension names.

func (builder *MetricStatBuilder) MatchExact(matchExact bool) *MetricStatBuilder

MetricName🔗

Name of the metric

func (builder *MetricStatBuilder) MetricName(metricName string) *MetricStatBuilder

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.

func (builder *MetricStatBuilder) Namespace(namespace string) *MetricStatBuilder

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

func (builder *MetricStatBuilder) Period(period string) *MetricStatBuilder

Region🔗

AWS region to query for the metric

func (builder *MetricStatBuilder) Region(region string) *MetricStatBuilder

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.

func (builder *MetricStatBuilder) Statistic(statistic string) *MetricStatBuilder

Statistics🔗

@deprecated use statistic

func (builder *MetricStatBuilder) Statistics(statistics []string) *MetricStatBuilder

See also🔗