relational_database_metric_datas
Creates, updates, deletes, gets or lists a relational_database_metric_datas resource.
Overview
| Name | relational_database_metric_datas |
| Type | Resource |
| Id | aws.lightsail.relational_database_metric_datas |
Fields
The following fields are returned by SELECT queries:
- get_relational_database_metric_data
| Name | Datatype | Description |
|---|---|---|
metric_data | array | An array of objects that describe the metric data returned. |
metric_name | string | The name of the metric returned. (CPUUtilization, DatabaseConnections, DiskQueueDepth, FreeStorageSpace, NetworkReceiveThroughput, NetworkTransmitThroughput) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_relational_database_metric_data | select | region | Returns the data points of the specified metric for a database in Amazon Lightsail. Metrics report the utilization of your resources, and the error counts generated by them. Monitor and collect metric data regularly to maintain the reliability, availability, and performance of your resources. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_relational_database_metric_data
Returns the data points of the specified metric for a database in Amazon Lightsail. Metrics report the utilization of your resources, and the error counts generated by them. Monitor and collect metric data regularly to maintain the reliability, availability, and performance of your resources.
SELECT
metric_data,
metric_name
FROM aws.lightsail.relational_database_metric_datas
WHERE region = '{{ region }}' -- required
;