SDK reference / Models

Models.Canary namespace

Types

TypeKindDescription
CanaryGateclassOne gate. `kind` is `alert` (needs `alertRule`: must not be firing), `threshold` (needs `metric`, optional `aggregation` avg|p95|max|min|sum|rate,`comparison` gt|lt, `threshold`, `windowSeconds`, `minSamples`), `comparison` (needs `metric` and `maxRelativeIncreasePercent` and/or`maxAbsoluteIncrease`; optional `worse` higher|lower, `aggregation`, `windowSeconds`, `minSamples`) or `probe` (needs `probePath`; optional`probeCount`, `minSuccessRatio`, `expectStatusMin`, `expectStatusMax`). All kinds take `failureThreshold` (consecutive failing evaluations, default 2)and `severe` (one failing evaluation fails the step).
CanaryGateResultclassWhat a gate found at the latest evaluation. Every figure is measured, none typed in.
CanaryIssueclass
CanaryPlanclassThe dry run: what a release would do, with nothing written and nothing moved.
CanaryPlanStepclass
CanaryPolicyDecisionclassWhat the deploy policy (CI-15) said of the candidate.
CanaryReasonRequestclass
CanaryReleaseclassA canary release.
CanaryReleaseEventclassOne entry of a release's audit trail.
CanaryReleaseEvent_dataclassFor `GATES`: `{step, results: [{name, outcome, reason, candidate, baseline}]}`, the figures the charts draw.
CanaryReleaseStateenumWhere a canary release is in its life.
CanaryStepclassOne step of a canary: the candidate's share, how long it is held and whether a person approves it first.
CreateCanaryReleaseRequestclass