from qiskit import IBMQ, assemble, transpile
from qiskit.circuit.random import random_circuit

provider = IBMQ.load_account()
backend = provider.backend.ibmq_vigo
qx = random_circuit(n_qubits=5, depth=4) #generate random ckt
transpiled = transpile(qx, backend=backend) 
job = backend.run(transpiled)
retrieved_job = backend.retrieve_job(job.job_id())

status = backend.status()
is_operational = status.operational
jobs_in_queue = status.pending_jobs

job_limit = backend.job_limit()

job_list = backend.jobs(limit=5, status=JobStatus.ERROR)

filter = {'hubInfo.hub.name': 'ibm-q'}
job_list = backend.jobs(limit=5, db_filter=filter)