Skip to content

feat: add Slack ops data checks#2258

Open
akshaymagapu wants to merge 13 commits intomainfrom
feat/slack-ops-status-commands
Open

feat: add Slack ops data checks#2258
akshaymagapu wants to merge 13 commits intomainfrom
feat/slack-ops-status-commands

Conversation

@akshaymagapu
Copy link
Copy Markdown
Contributor

@akshaymagapu akshaymagapu commented Apr 23, 2026

Summary

Adds Slack ops commands for checking and backfilling the LLMO agentic traffic data path.

Commands available in this PR

Check CDN aggregate inputs for a traffic date:

@spacecat-dev check cdn logs status [YYYY-MM-DD] [siteId=<siteId>|baseUrl=<url>]

Backfill daily DB import for one site:

@spacecat-dev backfill-llmo baseurl=<url> audit=cdn-logs-report mode=db date=YYYY-MM-DD

Backfill daily DB import for all enabled sites:

@spacecat-dev backfill-llmo baseurl=all audit=cdn-logs-report mode=db date=YYYY-MM-DD

Check agentic traffic DB readiness directly from DB tables:

@spacecat-dev check agentic traffic db status [YYYY-MM-DD] [siteId=<siteId>|baseUrl=<url>]

Omit siteId/baseUrl to check all enabled sites.

What the checks verify

  • check cdn logs status: S3 aggregate CDN log inputs are present for the date.
  • check agentic traffic db status: row and hit totals exist in agentic_traffic, agentic_traffic_daily, and the matching agentic_traffic_weekly week.

Testing

  • npx eslint src/support/slack/commands/status-command-helpers.js src/support/slack/commands/check-cdn-logs-status.js src/support/slack/commands/check-agentic-traffic-db-status.js test/support/slack/commands/status-command-helpers.test.js test/support/slack/commands/check-cdn-logs-status.test.js test/support/slack/commands/check-agentic-traffic-db-status.test.js
  • npx mocha test/support/slack/commands/status-command-helpers.test.js test/support/slack/commands/check-cdn-logs-status.test.js test/support/slack/commands/check-agentic-traffic-db-status.test.js
  • npx c8 --include=src/support/slack/commands/check-agentic-traffic-db-status.js --reporter=text mocha test/support/slack/commands/check-agentic-traffic-db-status.test.js
  • git diff --check

@github-actions
Copy link
Copy Markdown

This PR will trigger a minor release when merged.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@akshaymagapu akshaymagapu changed the title feat(slack): add check-agentic-traffic-db-status and check-cdn-logs-status commands feat(slack): add LLMO traffic ops monitoring and DB backfill Apr 28, 2026
@akshaymagapu akshaymagapu changed the title feat(slack): add LLMO traffic ops monitoring and DB backfill feat(slack): add actionable LLMO traffic ops monitoring Apr 28, 2026
@akshaymagapu akshaymagapu force-pushed the feat/slack-ops-status-commands branch from fc1861b to e01e9ce Compare May 4, 2026 10:17
@akshaymagapu akshaymagapu changed the title feat(slack): add actionable LLMO traffic ops monitoring Add Slack ops checks for LLMO traffic pipeline May 4, 2026
@akshaymagapu akshaymagapu force-pushed the feat/slack-ops-status-commands branch from e01e9ce to c0f5519 Compare May 4, 2026 10:34
@akshaymagapu akshaymagapu changed the title Add Slack ops checks for LLMO traffic pipeline feat: add Slack ops checks for LLMO traffic pipeline May 4, 2026
@akshaymagapu akshaymagapu changed the title feat: add Slack ops checks for LLMO traffic pipeline feat: add Slack ops checks for LLMO agentic traffic pipeline May 4, 2026
@akshaymagapu akshaymagapu force-pushed the feat/slack-ops-status-commands branch from c0f5519 to 63dd9ac Compare May 4, 2026 11:26
@akshaymagapu akshaymagapu changed the title feat: add Slack ops checks for LLMO agentic traffic pipeline feat: add Slack ops data checks May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant