Skip to content

Commit

Permalink
SDK-339 : Added comments on how to use List command. (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
lordozb authored and msumit committed Mar 26, 2019
1 parent 9365023 commit 0458842
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions qds_sdk/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,20 @@ def is_success(status):
def list(cls, **kwargs):
"""
List a command by issuing a GET request to the /command endpoint
Args:
`**kwargs`: Various parameters can be used to filter the commands such as:
* command_type - HiveQuery, PrestoQuery, etc. The types should be in title case.
* status - failed, success, etc
* name
* command_id
* qbol_user_id
* command_source
* page
* cluster_label
* session_id, etc
For example - Command.list(command_type = "HiveQuery", status = "success")
"""
conn = Qubole.agent()
params = {}
Expand Down

0 comments on commit 0458842

Please sign in to comment.