Skip to content

Update Bot State from Telemetry and Status Events #66

@DakotaCondos

Description

@DakotaCondos

As an admin or system user,
I want bot location, power, temperature, status, and availability to be updated from robot-output events,
so that the system can display the latest known operating state of each bot.

Acceptance Criteria

  • Given a RobotTelemetryUpdated event is received
    When the event is processed
    Then the Function App updates the bot document with location, power level, temperature values, last telemetry timestamp, and updated timestamp.

  • Given a RobotStatusUpdated event is received
    When the event is processed
    Then the Function App updates the bot document with status, availability, active order ID, queued order count, last status changed timestamp, and updated timestamp.

  • Given a bot is actively delivering
    When telemetry events are received
    Then the readable bot state reflects movement toward the delivery destination.

  • Given a bot is idle or available
    When telemetry events are received
    Then the readable bot state reflects the bot’s latest known idle location and operating values.

  • Given an older telemetry or status event arrives after a newer event
    When the Function App compares timestamps
    Then the older event does not overwrite newer bot state.

Metadata

Metadata

Assignees

Labels

No labels
No labels
No fields configured for User Story.

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions