mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-12-01 01:52:30 +01:00
Retain backup execution outcomes and collection coverage in each organization's recovery store so provider inventory changes and restarts cannot erase report evidence. Keep missing and incomplete history distinct from an observed period with no attempts. Reuse existing report scopes, calendar schedules, branding and delivery recovery for client PDF and CSV reports. Register the paid renderer through the existing private runtime boundary. Pricing and grants are unchanged.
23 lines
659 B
Go
23 lines
659 B
Go
package api
|
|
|
|
import (
|
|
"encoding/json"
|
|
"net/http"
|
|
|
|
"github.com/rcourtman/pulse-go-rewrite/pkg/reporting"
|
|
)
|
|
|
|
// HandleGetReportingCatalog returns the canonical operator-facing reporting
|
|
// catalog for the admin settings surface.
|
|
func (h *ReportingHandlers) HandleGetReportingCatalog(w http.ResponseWriter, r *http.Request) {
|
|
if r.Method != http.MethodGet {
|
|
http.Error(w, "Method not allowed", http.StatusMethodNotAllowed)
|
|
return
|
|
}
|
|
|
|
w.Header().Set("Content-Type", "application/json")
|
|
catalog := reporting.DescribeReportingCatalog()
|
|
catalog.BackupHealthAvailable = resolveBackupHealthReportGenerator() != nil
|
|
_ = json.NewEncoder(w).Encode(catalog)
|
|
}
|