Skip to main content

bucket_metric_datas

Creates, updates, deletes, gets or lists a bucket_metric_datas resource.

Overview

Namebucket_metric_datas
TypeResource
Idaws.lightsail.bucket_metric_datas

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
metric_dataarrayAn array of objects that describe the metric data returned.
metric_namestringThe name of the metric returned. (BucketSizeBytes, NumberOfObjects)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_bucket_metric_dataselectregionReturns the data points of a specific metric for an Amazon Lightsail bucket. Metrics report the utilization of a bucket. View and collect metric data regularly to monitor the number of objects stored in a bucket (including object versions) and the storage space used by those objects.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns the data points of a specific metric for an Amazon Lightsail bucket. Metrics report the utilization of a bucket. View and collect metric data regularly to monitor the number of objects stored in a bucket (including object versions) and the storage space used by those objects.

SELECT
metric_data,
metric_name
FROM aws.lightsail.bucket_metric_datas
WHERE region = '{{ region }}' -- required
;