@classmethod
    def _from_dict(cls, info):
        return cls(
            type=info['type'],
            labels=info.get('labels', {}),
        )
Construct a metric object from the parsed JSON representation.
dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/monitoring/metric.py/Metric._from_dict