Garbage Collection
get_gc_schedule()
async
create_gc_schedule(schedule)
async
update_gc_schedule(schedule)
async
Update the Garbage Collection schedule.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
schedule |
Schedule
|
The new schedule to set |
required |
get_gc_jobs(query=None, sort=None, page=1, page_size=10, limit=None)
async
Get Garbage Collection history for all jobs, optionally filtered by query.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
query |
Optional[str]
|
A query string to filter the Garbage Collection results logs. Supported query patterns are:
The value of range and list can be:
All of these query patterns should be put in the query string
and separated by |
None
|
sort |
Optional[str]
|
The sort order of the logs. |
None
|
page |
int
|
The page of results to return |
1
|
page_size |
int
|
The number of results to return per page |
10
|
limit |
Optional[int]
|
The maximum number of results to return. |
None
|
Returns:
Type | Description |
---|---|
List[GCHistory]
|
List of Garbage Collection logs. |
get_gc_job(gc_id)
async
get_gc_log(gc_id, as_list=True)
async
Get log output for a specific Garbage Collection job.
Results are returned as a list of lines, or as a single string if
as_list
is False.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
gc_id |
int
|
The ID of the Garbage Collection job to get the log for |
required |
as_list |
bool
|
If |
True
|
Returns:
Type | Description |
---|---|
Union[List[str], str]
|
The log output for the Garbage Collection job. |