Petals Memory icon

Petals Memory

Ingest content into your Petals assistant memory and chat with your assistant

Actions13

Metric → Get Series

AI-generated

Summary

Read metric observations for selected metric definitions within an inclusive time range, returning raw observations or points grouped into time buckets. Choose an aggregation for bucketed results, optionally overriding each metric’s aggregation hint.

Inputs

  • Metric Names or IDs (required) — One or more metric definition IDs to read; choose them from the list or provide IDs using an expression.
  • From (required) — ISO 8601 start of the time range, inclusive.
  • To (required) — ISO 8601 end of the time range, inclusive.
  • Bucket — Bucket size: day (default), hour, month, week, or none for raw observations.
  • Aggregation — How to aggregate each bucket: average (default), maximum, median (P50), minimum, P90, or sum. Overrides the metric definition’s aggregation hint.

Output shape

One or more n8n items containing the API response data.

The node sends a request for the selected metric IDs, date range, bucket, and optional aggregation. If the API response is an array, each element becomes a separate item; otherwise the response becomes one item. Each item contains the returned row as JSON.

Links

Discussion