Battery Level Monitoring
Feature
Germain UX RUM JS monitors battery level of end user’s machine and creates an event when:
battery charge goes below a configured threshold (default set to 15%)
charging status changes (e.g. from a plugged laptop to unplugged)
KPIs
KPIs for User Monitoring and Replay | Battery-Level-Monitoring-KPIs
Example
![Battery Status Change on Analysis Portlet](../__attachments/3684990977/image-20230327-085559.png?inst-v=baad7441-1094-48da-b263-fa99f8ae5725)
Battery Status Change on Analysis Portlet
![RCA of a Battery Status Change](../__attachments/3684990977/image-20230327-085756.png?inst-v=baad7441-1094-48da-b263-fa99f8ae5725)
RCA of a Battery Status Change
Configuration
Threshold
The following code sample how to create battery level events when the battery charge is equal or goes below 30%.
const settings = germainApm.getDefaultSettings();
...
settings.plugins.battery.levelThreshold = 30;
...
germainApm.start(settings);
Component: RUM JS
Feature Availability: 2022.3 or later
Browser Support: only latest Chrome, Edge and Opera