#NEWLINE# def get_instance_diagnostics( self , instance ) : #NEWLINE# #INDENT# diags = diagnostics . Diagnostics ( state = 'running' , driver = 'fake' , hypervisor_os = 'fake-os' , uptime = 46664 , config_drive = True ) #NEWLINE# diags . add_cpu ( time = 17300000000 ) #NEWLINE# diags . add_nic ( mac_address = '01:23:45:67:89:ab' , rx_packets = 26701 , rx_octets = 2070139 , tx_octets = 140208 , tx_packets = 662 ) #NEWLINE# diags . add_disk ( id = 'fake-disk-id' , read_bytes = 262144 , read_requests = 112 , write_bytes = 5778432 , write_requests = 488 ) #NEWLINE# diags . memory_details . maximum = 524288 #NEWLINE# return self