<s> import logging <EOL> from cliff . show import ShowOne <EOL> from raxcli . apps . monitoring . utils import ( MonitoringEntityCommand , <EOL> get_client ) <EOL> from raxcli . apps . monitoring . resources import Check <EOL> class ShowCommand ( MonitoringEntityCommand , ShowOne ) : <EOL> """<STR_LIT>""" <EOL> log = logging . getLogger ( __name__ ) <EOL> def get_parser ( self , prog_name ) : <EOL> parser = super ( ShowCommand , self ) . get_parser ( prog_name = prog_name ) <EOL> parser . add_argument ( '<STR_LIT>' , dest = '<STR_LIT>' , required = True ) <EOL> return parser <EOL> def take_action ( self , parsed_args ) : <EOL> client = get_client ( parsed_args ) <EOL> check = Check ( client . get_check ( parsed_args . entity_id , <EOL> parsed_args . check_id ) ) <EOL> return check . generate_output ( ) </s>
