def METHOD_NAME(self):
    # Even though this call retrieves the last 3 alarms,
    # the last minor alarm won't be included as it's already cleared
    alarms = self.cumulocity.get_last_n_alarms_from_device(self.project.deviceid, 3)
    # Validate the last 3 measurements of thin-edge-child device
    self.validate_alarm(
        alarms[0],
        "temperature_dangerous",
        "CRITICAL",
        "temperature is dangerously high",
    )
    self.validate_alarm(
        alarms[1], "temperature_very_high", "MAJOR", "temperature is very high"
    )
    self.validate_alarm(
        alarms[2],
        "temperature_high",
        "WARNING",
        "temperature is high",
        "2021-12-15T15:22:06.464247777+00:30",
    )