zerohertzLib.monitoring.storage ¶
Functions:
| Name | Description |
|---|---|
storage | 지정한 경로에 존재하는 file에 따른 용량을 pie graph로 시각화 |
_get_size ¶
File 또는 directory의 크기를 계산하는 helper function
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path | str | 크기를 계산할 file 또는 directory 경로 | required |
Returns:
| Type | Description |
|---|---|
int | 계산된 크기 |
Source code in zerohertzLib/monitoring/storage.py
storage ¶
지정한 경로에 존재하는 file에 따른 용량을 pie graph로 시각화
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path | str | 용량을 시각화할 경로 | '.' |
threshold | int | Etc.로 분류될 임계값 (단위: %) | 1 |
Returns:
| Type | Description |
|---|---|
str | 저장된 graph의 절대 경로 |
Examples:
