logentries_api/special_alerts.py
def get(self, name_or_id):
        """
        Get alert by name or id

        :param name_or_id: The alert's name or id
        :type name_or_id: str

        :return: A list of matching tags. An empty list is returned if there are
            not any matches
        :rtype: list of dict

        :raises: This will raise a
            :class:`ServerException<logentries_api.exceptions.ServerException>`
            if there is an error from Logentries
        """
        return [
            tag
            for tag
            in self.list_tags()
            if name_or_id == tag.get('id')
            or name_or_id == tag.get('name')
        ]
def get(self, name_or_id):
        return [
            tag
            for tag
            in self.list_tags()
            if name_or_id == tag.get('id')
            or name_or_id == tag.get('name')
        ]
def get ( self , name_or_id ) : return [ tag for tag in self . list_tags ( ) if name_or_id == tag . get ( 'id' ) or name_or_id == tag . get ( 'name' ) ]
Get alert by name or id

        :param name_or_id: The alert's name or id
        :type name_or_id: str

        :return: A list of matching tags. An empty list is returned if there are
            not any matches
        :rtype: list of dict

        :raises: This will raise a
            :class:`ServerException<logentries_api.exceptions.ServerException>`
            if there is an error from Logentries
Get alert by name or id