---
title: Online and Offline Percentage
slug: bhdo/online-and-offline-percentage
createdAt: 2022-10-21T14:40:55.000Z
---

The Online / Offline KPI is a raw number that tells you how long a sensor was functional and how long it was offline.

When creating an analytics flow, refer to details about this function processor by reviewing [Processor Flow Parameters](https://public-docs.litmus.io/bhdo/processor-flow-parameters#online-and-offline).&#x20;

The following information describes this KPI:

- Use **Online / Offline&#xA0;**&#x69;f you care how long the sensor was functional.
- Enable the **resetOnStatus&#xA0;**&#x70;arameter to reset every time the status changes from **On&#xA0;**&#x74;o **Off**.
- The **Timer interval&#xA0;**&#x70;arameter is useful if the connected input tag is offline but you still want this KPI to look for a value every few seconds, defined by the timer.
- The **timestamp&#xA0;**&#x66;or when the device was last offline is also given, along with the total time that has passed since the KPI was started.

::Image[]{src="https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/kQn7GGPCXEPOzRjAkpK5F_image.png" size="80" width="869" height="463" caption="Expected output fields" position="center" showCaption="true"}

::Image[]{src="https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/vj1BISINDhbFnu9_FsVxy_image.png" size="80" width="1304" height="392" caption="Online and Offline Percentage visualization" position="center" showCaption="true"}

