Skip to content

feat(downdetector): add Downdetector outage-monitoring integration - #5228

Merged
waleedlatif1 merged 1 commit into
stagingfrom
worktree-downdetector-integration
Jun 27, 2026
Merged

feat(downdetector): add Downdetector outage-monitoring integration#5228
waleedlatif1 merged 1 commit into
stagingfrom
worktree-downdetector-integration

Conversation

@waleedlatif1

@waleedlatif1waleedlatif1 commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add a Downdetector integration (Downdetector Enterprise API v2) for outage/service-status monitoring
  • 15 tools: search companies, get company, company status, company baseline, company last-15-min reports, company indicators, get reports (slug time-series), company incidents, company attribution, company events, site companies, get provider, list incidents, list categories, list sites
  • API-key (Bearer) auth; block with operation dropdown, shared conditional inputs, advanced-mode filters, wand-assisted ISO date inputs; opaque page-token vs integer-page handled per endpoint
  • BlockMeta with 7 templates + 4 skills; generated docs/integrations entry; brand icon (white bg)

Type of Change

  • New feature

Testing

Tested manually — typecheck, biome lint, and check:api-validation all pass; every tool's inputs/outputs cross-referenced against the Downdetector OpenAPI spec.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@waleedlatif1

Copy link
Copy Markdown
CollaboratorAuthor

@greptile

@vercel

vercelBot commented Jun 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
docsReadyReadyPreview, CommentJun 27, 2026 1:19am

Request Review

@waleedlatif1

Copy link
Copy Markdown
CollaboratorAuthor

@cursor review

@cursor

cursorBot commented Jun 27, 2026

Copy link
Copy Markdown

PR Summary

Low Risk
Additive integration following existing block/tool patterns; Bearer API keys are user-supplied with no changes to core auth or data paths. Main risk is large surface area and untested automated coverage per the PR checklist.

Overview
Adds a Downdetector integration wired to the Enterprise API v2 so workflows can monitor third-party outages and service status.

Runtime: Fifteen new tools cover company search, status/baseline/last-15m metrics, indicators, slug-based report time series, incidents, attribution, events, site companies, providers, and global category/site/incident lists. Shared helpers handle Bearer auth, path encoding, error parsing, incident mapping, and X-Page-Next pagination. A workflow block exposes all operations via an operation dropdown with conditional inputs, API-key auth, and explicit handling so Get Site Companies uses an opaque page token while other paged calls use numeric pages (avoiding stale page values when switching operations).

Product surface:DowndetectorIcon and icon mappings; block + meta registration with seven starter templates and four agent skills; integrations.json catalog entry; and a new docs page (downdetector.mdx) plus integrations nav listing.

Reviewed by Cursor Bugbot for commit 5f16a3b. Configure here.

Comment threadapps/sim/blocks/blocks/downdetector.ts Outdated
@greptile-apps

greptile-appsBot commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds a Downdetector integration for outage monitoring. The main changes are:

  • New Downdetector block with API-key auth and operation-specific inputs.
  • Fifteen Downdetector tools for companies, reports, incidents, categories, sites, and providers.
  • Docs, integration catalog metadata, registry entries, and icons for the new integration.

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.

Important Files Changed

FilenameOverview
apps/sim/blocks/blocks/downdetector.tsAdds the Downdetector block, operation selector, conditional inputs, parameter normalization, metadata templates, and skills.
apps/sim/tools/downdetector/get_reports.tsAdds the reports tool with comma-delimited slug handling and date/interval filters.
apps/sim/tools/downdetector/get_site_companies.tsAdds the site companies tool with string page-token pagination.
apps/sim/tools/downdetector/types.tsAdds shared Downdetector request and response types for the new tools.

Reviews (9): Last reviewed commit: "feat(downdetector): add Downdetector out..." | Re-trigger Greptile

Comment threadapps/sim/blocks/blocks/downdetector.ts
Comment threadapps/sim/blocks/blocks/downdetector.ts Outdated
@greptile-apps

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds a Downdetector outage-monitoring integration. The main changes are:

  • New Downdetector block with API-key auth and operation-specific inputs.
  • Ten Downdetector tools for companies, status, reports, incidents, categories, and sites.
  • Docs, integration metadata, registry entries, and icons for the new integration.

Confidence Score: 4/5

The report and search paths can return incorrect results and should be fixed before merging.

  • Multi-slug report requests can hide the comma separator in the path.
  • Paginated search responses can be treated as empty results.
  • The new API-key field uses the expected user-only credential visibility.

apps/sim/tools/downdetector/get_reports.ts and apps/sim/tools/downdetector/search_companies.ts

Important Files Changed

FilenameOverview
apps/sim/blocks/blocks/downdetector.tsAdds the Downdetector block, conditional inputs, operation routing, templates, and skills.
apps/sim/tools/downdetector/get_reports.tsAdds report retrieval, with a multi-slug URL construction issue.
apps/sim/tools/downdetector/search_companies.tsAdds company search, with a response-shape issue for paginated object bodies.
apps/sim/tools/downdetector/get_company_incidents.tsAdds company incident retrieval with the same bare-array response assumption.
apps/sim/tools/downdetector/list_incidents.tsAdds global incident listing with the same bare-array response assumption.
apps/sim/tools/downdetector/utils.tsAdds shared headers, error extraction, incident mapping, and incident output schema.

Reviews (2): Last reviewed commit: "feat(downdetector): add Downdetector out..." | Re-trigger Greptile

Comment threadapps/sim/tools/downdetector/get_reports.ts Outdated
Comment threadapps/sim/tools/downdetector/search_companies.ts
@waleedlatif1
waleedlatif1force-pushed the worktree-downdetector-integration branch from 99be3a8 to b6940b0CompareJune 27, 2026 00:18
@waleedlatif1

Copy link
Copy Markdown
CollaboratorAuthor

@greptile

@waleedlatif1

Copy link
Copy Markdown
CollaboratorAuthor

@cursor review

Comment threadapps/sim/blocks/blocks/downdetector.ts Outdated
Comment threadapps/sim/blocks/blocks/downdetector.ts
@waleedlatif1
waleedlatif1force-pushed the worktree-downdetector-integration branch 2 times, most recently from 1ed10a8 to ffec8d6CompareJune 27, 2026 00:26
@waleedlatif1

Copy link
Copy Markdown
CollaboratorAuthor

@greptile

@waleedlatif1

Copy link
Copy Markdown
CollaboratorAuthor

@cursor review

@cursorcursorBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit ffec8d6. Configure here.

@waleedlatif1

Copy link
Copy Markdown
CollaboratorAuthor

@greptile

@waleedlatif1

Copy link
Copy Markdown
CollaboratorAuthor

@cursor review

Comment threadapps/sim/tools/downdetector/get_site_companies.ts
@waleedlatif1
waleedlatif1force-pushed the worktree-downdetector-integration branch 2 times, most recently from 59e3095 to 8e3eb8dCompareJune 27, 2026 00:47
@waleedlatif1

Copy link
Copy Markdown
CollaboratorAuthor

@greptile

@waleedlatif1

Copy link
Copy Markdown
CollaboratorAuthor

@cursor review

@cursorcursorBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

1 issue from previous review remains unresolved.

Fix All in Cursor

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 8e3eb8d. Configure here.

Comment threadapps/sim/tools/downdetector/types.ts
@waleedlatif1

Copy link
Copy Markdown
CollaboratorAuthor

@greptile

@waleedlatif1

Copy link
Copy Markdown
CollaboratorAuthor

@cursor review

Comment threadapps/sim/tools/downdetector/get_reports.ts
@waleedlatif1

Copy link
Copy Markdown
CollaboratorAuthor

@cursor review

@waleedlatif1

Copy link
Copy Markdown
CollaboratorAuthor

@greptile

@waleedlatif1

Copy link
Copy Markdown
CollaboratorAuthor

@cursor review

@cursorcursorBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit dc4dc36. Configure here.

Comment threadapps/sim/blocks/blocks/downdetector.ts Outdated
Comment threadapps/sim/blocks/blocks/downdetector.ts

@cursorcursorBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit dc4dc36. Configure here.

@waleedlatif1
waleedlatif1force-pushed the worktree-downdetector-integration branch from dc4dc36 to 4192b09CompareJune 27, 2026 01:12
@waleedlatif1
waleedlatif1force-pushed the worktree-downdetector-integration branch from 4192b09 to 5f16a3bCompareJune 27, 2026 01:15
@waleedlatif1

Copy link
Copy Markdown
CollaboratorAuthor

@greptile

@waleedlatif1

Copy link
Copy Markdown
CollaboratorAuthor

@cursor review

@cursorcursorBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 5f16a3b. Configure here.

@waleedlatif1
waleedlatif1 merged commit 35acc42 into stagingJun 27, 2026
16 checks passed
@waleedlatif1
waleedlatif1 deleted the worktree-downdetector-integration branch June 27, 2026 01:25
Sign up for freeto 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

@waleedlatif1