@staticmethod
    def _check_meters(meters):
        if type(meters) == dict:
            meters = [meters]
        for meter_dict in meters:
            if (set(meter_dict.keys())
                    != set(['metric', 'timestamp', 'value', 'tags'])):
                raise opentsdbclient.InvalidOpenTSDBFormat(
                    actual=meter_dict,
                    expected="{'metric': <meter_name>, 'timestamp': <ts>, "
                             "'value': <value>, 'tags': <at least one pair>}")
        return meters
Check that meters to be put are having nice format.
dataset/ETHPy150Open openstack/python-opentsdbclient/opentsdbclient/base.py/BaseOpenTSDBClient._check_meters