@@ -269,7 +269,7 @@ def get_runs(
269
269
metrics : bool = False ,
270
270
alerts : bool = False ,
271
271
metadata : bool = False ,
272
- format : typing .Literal ["dict" , "dataframe" ] = "dict" ,
272
+ output_format : typing .Literal ["dict" , "dataframe" ] = "dict" ,
273
273
count : int = 100 ,
274
274
start_index : int = 0 ,
275
275
) -> typing .Union [
@@ -291,7 +291,7 @@ def get_runs(
291
291
alerts : bool, optional
292
292
whether to include alert information in the response.
293
293
Default False.
294
- format : Literal['dict', 'dataframe'], optional
294
+ output_format : Literal['dict', 'dataframe'], optional
295
295
the structure of the response, either a dictionary or a dataframe.
296
296
Default is 'dict'. Pandas must be installed for 'dataframe'.
297
297
count : int, optional
@@ -329,7 +329,7 @@ def get_runs(
329
329
330
330
response .raise_for_status ()
331
331
332
- if format not in ("dict" , "dataframe" ):
332
+ if output_format not in ("dict" , "dataframe" ):
333
333
raise ValueError ("Invalid format specified" )
334
334
335
335
json_response = self ._get_json_from_response (
@@ -344,7 +344,7 @@ def get_runs(
344
344
345
345
if response_data := json_response .get ("data" ):
346
346
return response_data
347
- elif format == "dataframe" :
347
+ elif output_format == "dataframe" :
348
348
return to_dataframe (response .json ())
349
349
else :
350
350
raise RuntimeError ("Failed to retrieve runs data" )
0 commit comments