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.

FieldTypeRequiredDefaultConstraintsExample
region
AWS region (overrides the connection).
stringNo———
namespace
Metric namespace.
stringYes———
metric_name
Name of the metric to act on, from cloudwatch.list_metrics.
stringYes———
start_time
ISO-8601 start.
stringYes———
end_time
ISO-8601 end.
stringYes———
period
Aggregation seconds (default 300).
numberNo—≥ 0—
statistic
Average | Sum | Minimum | Maximum | SampleCount.
stringNo———
dimensions
Metric dimensions.
objectNo———

Output

One shape.

result

FieldTypeExample
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.