# Reset count stats

**URL:** <https://forums.losant.com/t/reset-count-stats/4574>\
**Category:** Feature Request\
**Tags:** workflow\
**Created:** [June 6, 2022, 9:53am UTC](https://forums.losant.com/t/reset-count-stats/4574 "2022-06-06T09:53:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paolo\_Proxy](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@Paolo\_Proxy](https://forums.losant.com/u/Paolo_Proxy)\
**Post date:** [June 6, 2022, 9:53am UTC](https://forums.losant.com/t/reset-count-stats/4574/1 "2022-06-06T09:53:22Z")

</div>

Hi there,  
would be nice to have a button to reset the count stats for a specific version.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/9/90ed8e98c27215cef10962bd8391556379181041.png)

I totally get it, I can create a new version and then the stats will refresh but it would be handy to manually decide which version I want to reset.  
Cheers.

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [June 6, 2022, 12:08pm UTC](https://forums.losant.com/t/reset-count-stats/4574/2 "2022-06-06T12:08:02Z")

</div>

Thanks for the suggestion. What is the use case for wanting to reset the stats?

---

<div class="post-metadata">

**Author:** ![Paolo\_Proxy](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@Paolo\_Proxy](https://forums.losant.com/u/Paolo_Proxy)\
**Post date:** [June 7, 2022, 1:39pm UTC](https://forums.losant.com/t/reset-count-stats/4574/3 "2022-06-07T13:39:03Z")

</div>

Yes one most common case is when the input source from an external system has changed then I want to see how the algorithm performs in terms of error processing.

---

<div class="post-metadata">

**Author:** ![Paolo\_Proxy](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@Paolo\_Proxy](https://forums.losant.com/u/Paolo_Proxy)\
**Post date:** [June 7, 2022, 1:39pm UTC](https://forums.losant.com/t/reset-count-stats/4574/4 "2022-06-07T13:39:45Z")

</div>

Also is there a way to setup email alerts when errors are above a threshold?

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [June 7, 2022, 2:25pm UTC](https://forums.losant.com/t/reset-count-stats/4574/5 "2022-06-07T14:25:36Z")

</div>

In the user interface, we only expose endpoint stats for the past 24 hours, 7 days, or 30 days, but the [API endpoint backing that](https://docs.losant.com/rest-api/experience-endpoints/#stats) exposes a period start and end (along with many other options), which would allow you to target a certain time range (for example, the timestamp at which you made the switch in your external system to the current time). Note that these stats are aggregated every 15 minutes, so it will be slightly fuzzy at the start of the time frame.

As for error tracking, you could use the [Workflow Error Trigger](https://docs.losant.com/workflows/triggers/flow-error/) to fire whenever an uncaught exception is hit, and send an email in that case.

You could also use a [Timer Trigger](https://docs.losant.com/workflows/triggers/timer/) and a [Losant API Node](https://docs.losant.com/workflows/data/losant-api/) (using the Experience Endpoints: Stats action) in an [application workflow](https://docs.losant.com/workflows/application-workflows/) to fetch the response codes of your requests on a periodic basis and take some sort of action based on conditions you define.
