Count tickets per day and find the spikes
Read the full prompt
Use only this Datapipe project’s authorized data. Discover the connected accounts, datasets and compatible fields first. Confirm dates, timezones, currencies and data coverage. Keep missing or unmatched rows visible; never substitute sample data. Compare the sources explicitly and explain every match. Do not change source records or send messages. From the connected Statuspage account, read Status pages and tell me the page name and time_zone. From the connected Zendesk account, read tickets_expanded with id, subject, type, status, problem_id, has_incidents, created_at and tags. Convert created_at, which Zendesk returns in UTC, to the status page’s time zone and count tickets per local day for the last 28 complete days. Report the median day and mark spike days that are at least 1.5 times the median and at least 10 tickets above it, unless I give you another rule. Say how many tickets fell outside the window. If the Zendesk read stops at its row limit, tell me instead of treating the counts as complete.