Skip to content

GetServiceLevelObjective

Source: src/AWS/ApplicationSignals/GetServiceLevelObjective.ts

Runtime binding for application-signals:GetServiceLevelObjective, scoped to one ServiceLevelObjective.

Returns the bound SLO’s full configuration (SLI, goal, burn rates). Provide the implementation with Effect.provide(AWS.ApplicationSignals.GetServiceLevelObjectiveHttp).

// init — bind the operation to the SLO
const getSlo = yield* AWS.ApplicationSignals.GetServiceLevelObjective(slo);
// runtime — the SLO's ARN is injected automatically
const result = yield* getSlo();
yield* Effect.log(result.Slo.Goal.AttainmentGoal);