def as_dict()

in shumway/__init__.py [0:0]


    def as_dict(self):
        """Create a map of data"""
        return {
            'key': self.key,
            'attributes': self._attributes,
            'value': self.value,
            'type': 'metric',
            'tags': self._tags,
            'resources': self._resources
        }