File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ available via the **GET**-only **/status** section of the
20
20
* - Option
21
21
- Description
22
22
23
+ * - **modules **
24
+ - Object;
25
+ list of currently loaded language modules.
26
+
23
27
* - **connections **
24
28
- Object;
25
29
lists per-instance connection statistics.
@@ -37,6 +41,19 @@ Example:
37
41
.. code-block :: json
38
42
39
43
{
44
+ "modules" : {
45
+ "python" : [
46
+ {
47
+ "version" : " 3.12.3" ,
48
+ "lib" : " /opt/unit/modules/python.unit.so"
49
+ },
50
+ {
51
+ "version" : " 3.12.1" ,
52
+ "lib" : " /opt/unit/modules/python-3.12.1.unit.so"
53
+ }
54
+ ],
55
+ },
56
+
40
57
"connections" : {
41
58
"accepted" : 1067 ,
42
59
"active" : 13 ,
@@ -63,6 +80,29 @@ Example:
63
80
}
64
81
}
65
82
83
+ Each item in the **modules ** object lists one of the currently loaded language
84
+ modules, the installed version (or versions) of the module, and the path to the
85
+ module file:
86
+
87
+ .. list-table ::
88
+ :header-rows: 1
89
+
90
+ * - Option
91
+ - Description
92
+
93
+ * - **name **
94
+ - String;
95
+ language module name.
96
+
97
+ * - **version **
98
+ - String;
99
+ language module version. If multiple versions are loaded,
100
+ the list contains multiple items.
101
+
102
+ * - **lib **
103
+ - String;
104
+ path to the language module file.
105
+
66
106
The **connections ** object offers the following Unit instance metrics:
67
107
68
108
.. list-table ::
You can’t perform that action at this time.
0 commit comments