forked from eon01/DoMonit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdir.py
60 lines (45 loc) · 1.02 KB
/
dir.py
1
2
3
4
5
6
7
8
9
10
11
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
#!/usr/bin/env python
from __future__ import division
from domonit.containers import Containers
from domonit.ids import Ids
from domonit.inspect import Inspect
from domonit.logs import Logs
from domonit.process import Process
from domonit.changes import Changes
from domonit.stats import Stats
from domonit.events import Events
import json
c = Containers()
print("Containers()")
print dir(c)
print("\n")
i = Ids()
print("Ids()")
print dir(i)
print("\n")
if __name__ == "__main__":
for c_id in i.ids():
ins = Inspect(c_id)
print("Inspect()")
print dir(ins)
print("\n")
sta = Stats(c_id)
print("Stats()")
print dir(sta)
print("\n")
proc = Process(c_id, ps_args = "aux")
print("Process()")
print dir(proc)
print("\n")
log = Logs(c_id)
print("Logs()")
print dir(log)
print("\n")
cha = Changes(c_id)
print("Changes()")
print dir(cha)
print("\n")
eve = Events()
print("Events()")
print dir(eve)
print("\n")