API referenceConsole
product analytics
Polylane queries Amplitude event volume, funnels and retention during investigations to measure how many users an issue hits and when it started.

Connect

Connect Amplitude from the terminal. Pass --help for the flags Amplitude accepts.

Terminal
polylane integration connect --type amplitude

How it works

Daily event-volume check

Polylane checks the event volume of each project once a day for unusual changes. The check takes the five events with the most volume this week. It reads the hourly volume of each event and of their sum. A clear change opens an issue, and Polylane investigates it. On the integration page, you can turn the check off.

Amplitude's API cannot list saved charts or dashboards, so Polylane does not watch them. An agent can request a chart's data by its ID when you share the chart's link.

Time zones

Amplitude reports times in the project's time zone but does not say which zone. Polylane works out the project's current offset from UTC. When a clock change, such as the start or end of daylight saving time, falls inside the period Polylane checks, the hourly results before the change are marked unknown instead of placed an hour off. For a project set to UTC, this can affect up to a week after each clock change in Europe.

During an investigation

Query Amplitude events, segmentation, funnels, retention, and chart annotations through Polylane, and request other Amplitude API calls. Changes, such as new chart annotations, require safety review and your approval.

Polylane also explores the connection when you connect it and every 12 hours after that, and records what it finds as issues. It checks the keys every six hours.

Amplitude APIs

Polylane uses these Amplitude APIs. Amplitude explains its keys in its authentication guide.

Amplitude APIWhat it unlocks
GET /api/2/events/listChecks the keys, finds the data region, and lists event types with this week's volume.
GET /api/2/events/segmentationReads event volume, unique users, and averages over time, filtered and split by a property.
GET /api/2/funnelsComputes conversion between ordered events and the median time between steps.
GET /api/2/retentionMeasures how many users come back after a starting event.
GET /api/2/realtimeAligns the daily event-volume check with the project's time zone.
GET /api/3/annotations, POST /api/3/annotationsLists chart annotations and, with your approval, creates one.
amplitudeApiCalls any other Amplitude API path under /api/, such as saved chart results.

Disconnecting

Disconnecting deletes both keys from Polylane and leaves them in Amplitude. Chart annotations that you approved stay on your charts.

Disconnect

Disconnecting stops every sync and check and deletes the credentials Polylane held. Everything Polylane set up in Amplitude is removed as well; nothing is left behind.

Terminal
polylane integration disconnect <id>

Tools

6

Operations agents can perform in threads.

Api
Call the connected Amplitude REST API
Events
List the event types tracked in an Amplitude project with this week's volume
Segmentation
Query Amplitude event volume or unique users over time, optionally filtered and grouped
Funnels
Compute an Amplitude conversion funnel across ordered events
Retention
Measure Amplitude retention: how many users come back after a starting event
Annotations
List or create Amplitude chart annotations