def check_state(self, session):
        url = utils.urljoin(self.base_path, self.id, 'state')
        resp = session.get(url, endpoint_filter=self.service)
        resp = resp.json()
        current_state = resp.replace('\"', '')
        return current_state
Retrieve the current state of an alarm from the service.
dataset/ETHPy150Open openstack/python-openstacksdk/openstack/telemetry/v2/alarm.py/Alarm.check_state