A single high sample and a sustained problem ask different questions. This local worksheet lets you compare a warning rule with a recovery rule using an invented series. The aim is to explain the state transitions before creating an alarm in somebody else's cloud account.

No cloud resource, alert subscription or paid service is created here. The numbers are fictional utilisation samples, not readings from a real customer system. The example is a teaching state machine, not an AWS alarm configuration or a recommended production threshold.

Write the sample contract

Assume one sample each minute at times 00 through 07, with values 42, 68, 81, 83, 79, 77, 61 and 60 percent. There are no missing samples in this first series. State that assumption beside the data instead of filling an unexplained gap with zero.

Our invented rule starts normal. Enter warning after two consecutive samples at or above 80. Remain in warning until two consecutive samples below 70. Values between those boundaries do not trigger a new state. This deliberate separation makes it possible to discuss recovery without repeatedly flipping around one number.

Predict the transitions before running anything

TimeSampleExpected state after sample
0042Normal.
0168Normal.
0281Normal; first high sample.
0383Warning; second consecutive high sample.
0479Warning.
0577Warning.
0661Warning; first recovery sample.
0760Normal; second consecutive recovery sample.

Two samples taken one minute apart span one minute between their timestamps. They do not by themselves demonstrate two full minutes continuously above the boundary. Keep sample-count rules separate from duration claims, and record the actual collection interval.

Explain what the rule leaves unknown

A warning is not proof that a business service failed. The sampled metric might be unrelated to the user's symptom, or its aggregation might hide a short incident. Identify which resource, unit, statistic and period a real signal would represent before selecting a threshold.

AWS's CloudWatch alarm reference describes metric thresholds over time periods. Its missing-data guidance explains configurable treatment of absent observations. Those platform semantics are separate from this invented consecutive-sample exercise. Do not copy the worksheet into a cloud console and assume it produces the same evaluation behaviour.

Change one assumption at a time

First replace 83 with 78. The two-consecutive-high entry condition is no longer met in the initial series. Then restore it and try a value exactly equal to 80; our stated “at or above” rule includes that value. A value exactly equal to 70 does not satisfy our strictly-below-70 recovery condition.

Keep the original series and each changed series separately. If you alter the data, threshold and recovery rule together, it becomes harder to explain why a state changed. A successful exercise should identify the condition responsible for the observed transition.

Give missing samples their own decision

Now remove a sample and mark it missing. Do not silently compress the timeline so the remaining points appear consecutive in time. Decide, for the exercise, whether a gap breaks the consecutive run and how the unknown period is shown. Write that additional rule before calculating a new result.

A real monitoring platform can have configurable missing-data behaviour and special cases for particular metrics. Read its current documentation and the resource's publication pattern. An absent observation is not automatically healthy or failing, and it is not permission to fabricate a value.

Separate notification from recovery action

The worksheet only calculates a state. It sends no message and changes no infrastructure. For a real system, establish who receives an alert, what they should inspect and which actions require approval. A warning should not automatically authorise a restart, scaling action or deletion.

Keep an incident's business acceptance check separate from the metric returning below a threshold. The graph may recover while a queued task is still incomplete. Record the observation, the business result and any remaining investigation in different fields.

Hand over a reproducible exercise

Save the sample series, timestamp interval, entry and recovery inequalities, missing-data rule, expected transitions and actual calculation. Note which real-world assumptions were intentionally excluded. Ask a reviewer to predict the boundary cases before seeing your output.

Explore AWS training, the Cloud Project Lab pathway or ask about a permitted practice environment. This independent worksheet does not promise a particular lab, free cloud usage or a production monitoring result.