def __init__(self, id, name, type):
        self._id = id
        self._name = name

        # Acceptable types
        types = ['number', 'percent', 'max', 'min']

        # If the type is not one of our expected values
        # then raise an error
        if type in types:
            self._type = type
        else:
            raise AttributeError("Type not one of: " + str(types))

    #
    # id
    #
dataset/ETHPy150Open boundary/pulse-api-cli/boundary/webhook_handler.py/WebHookMetric.__init__/original