Your Name %!s(int64=3) %!d(string=hai) anos
pai
achega
1e45832adc
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      hhh/aws-monitor/cl-test.py

+ 7 - 1
hhh/aws-monitor/cl-test.py

@@ -12,7 +12,13 @@ def proc_l(l):
     return l.replace(',','').replace('\n','').strip()
 
 for l in io.TextIOWrapper(cl.stdout, encoding="utf-8"):
-    print(l)
+#    print(l)
+    if '"EventId":' in l:
+        lst.append(proc_l(l))
+
+    if '"EventTime":' in l:
+        lst.append(proc_l(l))
+
     if '"AccessKeyId":' in l:
     
         lst.append(proc_l(l))