etcd3ref/client.py
def create_alarm(self, member_id=0):
        """Create an alarm.

        If no member id is given, the alarm is activated for all the
        members of the cluster. Only the `no space` alarm can be raised.

        :param member_id: The cluster member id to create an alarm to.
                          If 0, the alarm is created for all the members
                          of the cluster.
        :returns: list of :class:`.Alarm`
        """
        try:
            alarm_response = self.__create_alarm(member_id)
        except _InactiveRpcError as e:
            print("Exception {} happened, try to reconnect \n".format(e))
            self.reconnect()
            alarm_response = self.__create_alarm(member_id)

        return [Alarm(alarm.alarm, alarm.memberID)
                for alarm in alarm_response.alarms]
Create an alarm.

        If no member id is given, the alarm is activated for all the
        members of the cluster. Only the `no space` alarm can be raised.

        :param member_id: The cluster member id to create an alarm to.
                          If 0, the alarm is created for all the members
                          of the cluster.
        :returns: list of :class:`.Alarm`
        
Create an alarm.
If no member id is given, the alarm is activated for all the
members of the cluster. Only the `no space` alarm can be raised.
Create an alarm . If no member id is given the alarm is activated for all the members of the cluster . Only the ` no space ` alarm can be raised .
def create_alarm(self, member_id=0):
        try:
            alarm_response = self.__create_alarm(member_id)
        except _InactiveRpcError as e:
            print("Exception {} happened, try to reconnect \n".format(e))
            self.reconnect()
            alarm_response = self.__create_alarm(member_id)
        return [Alarm(alarm.alarm, alarm.memberID)
                for alarm in alarm_response.alarms]
def create_alarm ( self , member_id = 0 ) : try : alarm_response = self . __create_alarm ( member_id ) except _InactiveRpcError as e : print ( "Exception {} happened, try to reconnect \n" . format ( e ) ) self . reconnect ( ) alarm_response = self . __create_alarm ( member_id ) return [ Alarm ( alarm . alarm , alarm . memberID ) for alarm in alarm_response . alarms ]
Create an alarm.
Create an alarm .
"""Create an alarm.

        If no member id is given, the alarm is activated for all the
        members of the cluster. Only the `no space` alarm can be raised.

        :param member_id: The cluster member id to create an alarm to.
                          If 0, the alarm is created for all the members
                          of the cluster.
        :returns: list of :class:`.Alarm`
        """
list of :class:`.Alarm`
list of : class : ` . Alarm `
self
member_id
The cluster member id to create an alarm to.
If 0, the alarm is created for all the members
of the cluster.
The cluster member id to create an alarm to . If 0 the alarm is created for all the members of the cluster .