Skip to content

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).

// init — bind the operation to the SLO
const getBudgetReport =
yield* AWS.ApplicationSignals.BatchGetServiceLevelObjectiveBudgetReport(slo);
// runtime — the SLO's ARN is injected as SloIds
const result = yield* getBudgetReport({ Timestamp: new Date() });
const report = result.Reports[0];
yield* Effect.log(`${report?.BudgetStatus}: ${report?.Attainment}%`);