@@ -64,6 +64,13 @@ def __init__(self, sum_data):
6464 super (SumAggregationDataFloat , self ).__init__ (sum_data )
6565 self ._sum_data = sum_data
6666
67+ def __repr__ (self ):
68+ return ("{}({})"
69+ .format (
70+ type (self ).__name__ ,
71+ self .sum_data ,
72+ ))
73+
6774 def add_sample (self , value , timestamp = None , attachments = None ):
6875 """Allows the user to add a sample to the Sum Aggregation Data
6976 The value of the sample is then added to the current sum data
@@ -100,6 +107,13 @@ def __init__(self, count_data):
100107 super (CountAggregationData , self ).__init__ (count_data )
101108 self ._count_data = count_data
102109
110+ def __repr__ (self ):
111+ return ("{}({})"
112+ .format (
113+ type (self ).__name__ ,
114+ self .count_data ,
115+ ))
116+
103117 def add_sample (self , value , timestamp = None , attachments = None ):
104118 """Adds a sample to the current Count Aggregation Data and adds 1 to
105119 the count data"""
@@ -194,6 +208,13 @@ def __init__(self,
194208 assert len (counts_per_bucket ) == len (bounds ) + 1
195209 self ._counts_per_bucket = counts_per_bucket
196210
211+ def __repr__ (self ):
212+ return ("{}({})"
213+ .format (
214+ type (self ).__name__ ,
215+ self .count_data ,
216+ ))
217+
197218 @property
198219 def mean_data (self ):
199220 """The current mean data"""
@@ -340,6 +361,13 @@ def __init__(self, value):
340361 super (LastValueAggregationData , self ).__init__ (value )
341362 self ._value = value
342363
364+ def __repr__ (self ):
365+ return ("{}({})"
366+ .format (
367+ type (self ).__name__ ,
368+ self .value ,
369+ ))
370+
343371 def add_sample (self , value , timestamp = None , attachments = None ):
344372 """Adds a sample to the current
345373 LastValue Aggregation Data and overwrite
0 commit comments