Skip to main content

metrics

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

Overview

Namemetrics
TypeResource
Idaws.resiliencehub.metrics

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
rowarraySpecifies all the list of metric values for each row of metrics.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_metricsselectregionLists the metrics that can be exported.
start_metrics_exportexecregionInitiates the export task of metrics.

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

Lists the metrics that can be exported.

SELECT
row
FROM aws.resiliencehub.metrics
WHERE region = '{{ region }}' -- required
;

Lifecycle Methods

Initiates the export task of metrics.

EXEC aws.resiliencehub.metrics.start_metrics_export
@region='{{ region }}' --required
@@json=
'{
"bucketName": "{{ bucketName }}",
"clientToken": "{{ clientToken }}"
}'
;