Fulfillment
Monitor unfulfilled orders older than two days
Count older unfulfilled orders in BigQuery and alert the fulfillment team when the queue grows.
From a BigQuery result to a Slack message
Check every 12 or 24 hours
An order queue can hide a few records that have waited much longer than the rest. Count orders still awaiting fulfillment after 48 hours and review the queue when it exceeds your team's tolerance.
Prepare the data and define the metric
Use one current row per order with a TIMESTAMP created_at and a fulfillment_status. Remove canceled orders from the prepared data or include an explicit cancellation filter. Ensure the snapshot updates when an order is fulfilled.
The table and column names below are examples, not a built-in integration. Your existing process must make the data available in BigQuery and keep it current. Check permissions and remove sensitive details before sharing results. Google bills BigQuery usage separately; use partition filters where appropriate and check estimated bytes before running a query.
Run the example query
SELECT COUNT(*) AS metric
FROM `your-project.analytics.orders`
WHERE fulfillment_status = 'unfulfilled'
AND created_at < TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 48 HOUR)Replace the project, dataset, table, columns, and status values with your own. This read-only SELECT returns one numeric row named metric. Run it against a representative test dataset and compare the result with your source system. The example uses a fixed threshold; it does not automatically compare against a previous period.
Set up the scheduled Slack check
- Connect BigQuery in Configuration using an account that can run jobs and read the table. An active Kisu subscription is required.
- Add a Slack destination and send a test. The Slack webhook guide explains how to create the webhook.
- Create an alert, paste the query, and load its columns. Select metric, choose Sum, and set the condition to greater than 5. Adjust the threshold to fit your team.
- Test the query, choose the tested destination, set a 12- or 24-hour schedule, and save. Schedule after the data is expected to arrive.
Use Sum, not Count, for this query. SQL has already calculated the number in the single returned row; counting that row would produce 1 rather than the metric. Testing the query and testing Slack delivery are separate steps.
Test the boundary and investigate a match
Try values on both sides of 5 and exactly 5 in a test dataset. The example uses a strict comparison, so the boundary itself does not match. Do not change production records just to test the alert.
Review the oldest orders for stock shortages, holds, or address problems. Decide who will contact the customer if the delay is real.
The example measures elapsed hours, not business days or promised ship dates. Split preorders and backorders into a separate rule if their expected wait differs.
Check delivery and data health
Kisu checks every 12 or 24 hours, not in real time. A matching check queues a notification, but delivery can fail. Review the result and delivery status in History. New alerts notify when an issue starts; choose the persistent option if you need a reminder on each matching check.
A failed check or no-data result does not send a threshold notification or resolve an open incident. A numeric zero is different from no data. A successful query can still read stale or incomplete source data, so review the pipeline separately. See the daily import freshness guide and alert conditions guide for more checks.


3. Notify Slack if it matches