InspectStats¶
InspectStats.
InspectStats
¶
Bases: UtilsInspectStats
Class for inspection of statistics.
Source code in src/qtasks/stats/inspect/inspect.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | |
__init__(app)
¶
Initializing the statistics inspection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
app
|
QueueTasks
|
Application instance. |
required |
Source code in src/qtasks/stats/inspect/inspect.py
15 16 17 18 19 20 21 22 | |
app(json=False)
¶
Getting information about the application.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
json
|
bool
|
Flag to return in JSON format. Default: |
False
|
Returns:
| Name | Type | Description |
|---|---|---|
str |
Application information. |
Source code in src/qtasks/stats/inspect/inspect.py
24 25 26 27 28 29 30 31 32 33 34 | |
task(task_name, json=False)
¶
Obtaining information about a task.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task_name
|
str
|
The name of the task. |
required |
json
|
bool
|
Flag to return in JSON format. Default: |
False
|
Returns:
| Name | Type | Description |
|---|---|---|
TaskExecSchema |
Schema of the task function. |
Source code in src/qtasks/stats/inspect/inspect.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 | |
tasks(*tasks, json=False)
¶
Obtaining information about tasks.
Returns:
| Name | Type | Description |
|---|---|---|
|
List[TaskExecSchema]: Task function schemas. |
||
json |
(bool, optional)
|
Flag to return in JSON format. Default: |
Source code in src/qtasks/stats/inspect/inspect.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | |