#NEWLINE# def check( self , instance ) : #NEWLINE# #INDENT# server = instance . get ( 'server' , None ) #NEWLINE# if ( instance is None ) : #NEWLINE# #INDENT# raise Exception ( 'A server must be specified' ) #NEWLINE# #UNINDENT# data = self . get_data ( server , instance ) #NEWLINE# self . _create_metric ( data , tags = [ ( 'instance:%s' % server ) ] )