in AWSIoTDeviceDefenderAgentSDK/collector.py [0:0]
def __init__(self, short_metrics_names=False, use_custom_metrics=True):
"""
Parameters
----------
short_metrics_names : bool
Toggle short object tags in output metrics.
use_custom_metrics : bool
Toggle whether to collect custom metrics.
"""
# Keep a copy of the last metric, if there is one, so we can calculate change in some metrics.
self._last_metric = None
self._short_names = short_metrics_names
self._use_custom_metrics = use_custom_metrics