We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f4b616 commit fc43cb6Copy full SHA for fc43cb6
src/utils/stats_processor.py
@@ -8,6 +8,23 @@
8
9
10
class StatsProcessor:
11
+ """
12
+ The class is used for storing of additional statistics, that need be stored on the local system.
13
+ For example, number of usages of OpenVino.
14
+ The class is used by main Telemetry class, for example:
15
+
16
+ stats_processor = StatsProcessor()
17
+ created = stats_processor.create_new_stats_file()
18
19
+ # store statistics
20
+ updated = stats_processor.update_stats({"usage_count": 1})
21
22
+ # read statistics
23
+ read_status, stats = stats_processor.get_stats()
24
25
+ # remove statistics file
26
+ stats_processor.remove_stats_file()
27
28
def __init__(self):
29
self.opt_in_checker = OptInChecker()
30
0 commit comments