Skip to content
Snippets Groups Projects
Commit e91d829f authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

add remove_internal

parent 39e68363
No related branches found
No related tags found
No related merge requests found
# v2.16.6
# v2.16.7
* trace_exception can take None as an argument
* added option to specify a custom metric source for
* added `MetricDataCollection.remove_internals`
__version__ = '2.16.6'
__version__ = '2.16.7a1'
......@@ -69,6 +69,9 @@ class MetricData(JSONAble):
class MetricDataCollection(JSONAble):
"""
A bunch of metric datas
"""
__slots__ = ('values',)
def add_labels(self, labels: dict) -> None:
......@@ -187,3 +190,10 @@ class MetricDataCollection(JSONAble):
for child in self.values:
child.value = value
return self
def remove_internals(self):
"""
Remove entries marked as internal
"""
self.values = {value for value in self.values if not value.internal}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment