def delete(self): """Delete the current dashboard and all its data. See https://app.yuleak.com/apidoc#post-delete for endpoint details. Returns: (bool) True if the dashboard has been deleted """ return YuleakClient.delete_request('dashboard/{0}'.format(self.id))
def delete(self): """Delete the current resource and all data linked See https://app.yuleak.com/apidoc#delete-resources for endpoint details. Returns: (bool) True if the search has been launched """ return YuleakClient.delete_request('dashboard/{0}/resources'.format( self.dashboard.id), params={'value': self.value})
def delete(self): """Delete the current filter See https://app.yuleak.com/apidoc#delete-filters for endpoint details. Returns: (bool) True if the filter has been deleted """ return YuleakClient.delete_request('dashboard/{0}/filters'.format( self.dashboard.id), params={ 'value': self.value, 'category': self.category })
def del_bookmark(self): """Delete the bookmark of the current server. See https://app.yuleak.com/apidoc#delete-bookmark for endpoint details. Returns: (bool) True if the bookmark have been deleted """ if not self.bookmark: logger.warning('The server is not bookmarked.') if YuleakClient.delete_request( 'dashboard/{0}/server/{1}/bookmark'.format( self.dashboard.id, self.id)): self.bookmark = False return True else: return False