BatchGetServiceLevelObjectiveBudgetReport
Source:
src/AWS/ApplicationSignals/BatchGetServiceLevelObjectiveBudgetReport.ts
Runtime binding for
application-signals:BatchGetServiceLevelObjectiveBudgetReport, scoped
to one ServiceLevelObjective.
Retrieves the bound SLO’s error-budget report — health indicator,
attainment, and remaining budget — at the requested timestamp. Provide
the implementation with
Effect.provide(AWS.ApplicationSignals.BatchGetServiceLevelObjectiveBudgetReportHttp).
Reading SLOs
Section titled “Reading SLOs”// init — bind the operation to the SLOconst getBudgetReport = yield* AWS.ApplicationSignals.BatchGetServiceLevelObjectiveBudgetReport(slo);
// runtime — the SLO's ARN is injected as SloIdsconst result = yield* getBudgetReport({ Timestamp: new Date() });const report = result.Reports[0];yield* Effect.log(`${report?.BudgetStatus}: ${report?.Attainment}%`);