Get Statistics
cloudwatch.get_metric_statistics
ActionAmazon Web Servicesconnection required
Calls the AWS cloudwatch API (SigV4).
Read aggregated datapoints for a metric.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Amazon CloudWatch
- Secret shape
- {"access_key_id", "secret_access_key"}
- Config it needs
- region
- Resolved by
- config.connection_id, else node.connection_id
Configuration
8 fields, 4 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
region AWS region (overrides the connection). | string | No | — | — | — |
namespace Metric namespace. | string | Yes | — | — | — |
metric_name Name of the metric to act on, from cloudwatch.list_metrics. | string | Yes | — | — | — |
start_time ISO-8601 start. | string | Yes | — | — | — |
end_time ISO-8601 end. | string | Yes | — | — | — |
period Aggregation seconds (default 300). | number | No | — | ≥ 0 | — |
statistic Average | Sum | Minimum | Maximum | SampleCount. | string | No | — | — | — |
dimensions Metric dimensions. | object | No | — | — | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
datapoints | array | — |
count | number | — |
{
"count": 0,
"datapoints": []
}Related Amazon CloudWatch nodes
Solutions with Amazon CloudWatch
See Get Statistics run in a workflow.
In a technical demo we add the Amazon CloudWatch connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.