ReferenceControlArcReferenceStandard Librarystatus

status

Arc standard library reference for the status module

The status module publishes status notifications (alarms, warnings, and operational states) to the Core.

set

Sets a status notification (an alarm, warning, or operational state) on the Core, addressing it by name or by key, and outputs the resolved status key.

status.set{key_or_name: str, message: str, variant: str} -> str

Parameters

  • key_or_name: An existing status key or name. If no status matches, a new one is created.
  • message: The message body shown on the status.
  • variant: One of success, info, warning, error, loading, or disabled.

Output

The resolved status key that was set.

If several statuses share a name, the first match is updated. If a status.set fails (for example, an empty key_or_name or a database error), it reports a warning and the automation keeps running.