def ttl_warn(self, check_id, notes=None):
                """
                Mark a ttl based check with warning. Optional notes can be
                attached to describe the warning. The status of the
                check will be set to warn and the ttl clock will be reset.
                """
                params = {}
                if notes:
                    params['note'] = notes

                return self.agent.http.get(
                    lambda x: x.code == 200,
                    '/v1/agent/check/warn/%s' % check_id,
                    params=params)
dataset/ETHPy150Open cablehead/python-consul/consul/base.py/Consul.Agent.Check.ttl_warn/original