Skip to main content
A regression starts at a point in time, and a deploy is often the change at that point. This recipe reads when an issue started, lists the deployments of its service, and reads the deployments that Squasher attaches to an anomaly finding. Reading needs errors:read, deployments:read, and findings:read. Deployment records exist when a connected provider sends them or when your pipeline records them with deployments.create. See Deployments API. Without records, the list is empty.

Read when the issue started

Read the issue, and note first_seen and service_name.

List the deployments of the service

Filter by the service and the environment of the issue. The result is a list of deployment records. Compare started_at and finished_at with first_seen: the deploy that finished right before the issue started is the first suspect.
The command prints a table with the provider, service, version, environment, status, and deployment ID. It has no times and no commit. It ignores --json. To read started_at and commit_sha, use the MCP or REST API tab.
The response is an array. Each record has this shape:
The filters are service_name, version, environment, provider, status, and limit (1 to 250).

Read the deployments near an anomaly

When an anomaly finding opens for the service, the finding carries the deployments from 6 hours before the first breach to 1 hour after the last one. List the findings for the service, then read one.
findings get returns finding, evaluations, series, and evidence. evidence.deployments holds up to 10 deployments, and evidence.error_groups holds up to 5 top issues of the service in that time. Both lists are empty when nothing matches.
A deploy that finished before the issue started is a suspect, not proof. Check that the version in the first events of the issue matches the deploy, for example with the release of a log from the logs query.

Next steps

Query the logs of a trace

Read the logs around one failing request.

Anomalies and findings

How Squasher finds services that leave their normal band.