Bc monitoring create new report

From breatheco-de/apiv2 · View interactive version

Bc monitoring create new report is an AI agent skill from the GitHub repository breatheco-de/apiv2. Use when adding a new monitoring report type end-to-end (generation + read API registry metadata); do NOT use for only reading report data or debugging existing report rows.

How to use this skill

Skill file

Skill: Create Monitoring Report

When to Use

Workflow

  1. Define the report data model under breathecode/monitoring/reports/<report_type>/models.py.
  2. Implement a generator class in breathecode/monitoring/reports/<report_type>/actions.py extending BaseReport.
  3. Register command generation by adding the new class in breathecode/monitoring/management/commands/generate_report.py REPORT_REGISTRY.
  4. Add list/detail serializers in breathecode/monitoring/serializers.py for the new report model.
  5. Register API metadata in breathecode/monitoring/reports/api_registry.py:
  1. Validate list/detail/summary behavior through existing generic monitoring report endpoints in breathecode/monitoring/views.py and breathecode/monitoring/urls.py (no new endpoint path required).
  2. Add tests for report generation command and report API behavior.
  3. Run focused tests for new report files plus current monitoring report URL tests.

Endpoints

Response fields to verify

{
  "slug": "new-report-slug",
  "filters": ["academy", "date"],
  "sort_fields": ["created_at", "-created_at"],
  "supports_detail": true,
  "supports_summary": true
}

Edge Cases

Checklist

  1. [ ] Added report model + migrations under monitoring/reports/<report_type>.
  2. [ ] Implemented BaseReport subclass with fetch/process/save flow.
  3. [ ] Registered report in generate_report.py REPORT_REGISTRY.
  4. [ ] Added serializers and API registry config for the report type.
  5. [ ] Verified discovery/list/detail/summary endpoints with the new report_type.
  6. [ ] Added automated tests for command and API behavior.
  7. [ ] Ran focused tests successfully before finishing.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.