cobweb-launcher 1.2.32__py3-none-any.whl → 1.2.33__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of cobweb-launcher might be problematic. Click here for more details.
- cobweb/utils/dotting.py +5 -3
- {cobweb_launcher-1.2.32.dist-info → cobweb_launcher-1.2.33.dist-info}/METADATA +1 -1
- {cobweb_launcher-1.2.32.dist-info → cobweb_launcher-1.2.33.dist-info}/RECORD +6 -6
- {cobweb_launcher-1.2.32.dist-info → cobweb_launcher-1.2.33.dist-info}/LICENSE +0 -0
- {cobweb_launcher-1.2.32.dist-info → cobweb_launcher-1.2.33.dist-info}/WHEEL +0 -0
- {cobweb_launcher-1.2.32.dist-info → cobweb_launcher-1.2.33.dist-info}/top_level.txt +0 -0
cobweb/utils/dotting.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import json
|
|
2
2
|
|
|
3
|
-
from aliyun.log import LogClient,
|
|
3
|
+
from aliyun.log import LogClient, LogItem, PutLogsRequest
|
|
4
4
|
from cobweb import setting
|
|
5
5
|
|
|
6
6
|
|
|
@@ -10,19 +10,21 @@ class LoghubDot:
|
|
|
10
10
|
self.client = LogClient(**setting.LOGHUB_CONFIG)
|
|
11
11
|
|
|
12
12
|
def build(self, topic, **kwargs):
|
|
13
|
+
|
|
13
14
|
temp = {}
|
|
15
|
+
log_items = []
|
|
14
16
|
log_item = LogItem()
|
|
15
17
|
for key, value in kwargs.items():
|
|
16
18
|
if not isinstance(value, str):
|
|
17
19
|
temp[key] = json.dumps(value, ensure_ascii=False)
|
|
18
20
|
contents = sorted(temp.items())
|
|
19
21
|
log_item.set_contents(contents)
|
|
20
|
-
|
|
22
|
+
log_items.append(log_item)
|
|
21
23
|
request = PutLogsRequest(
|
|
22
24
|
project="databee-download-log",
|
|
23
25
|
logstore="cobweb_log",
|
|
24
26
|
topic=topic,
|
|
25
|
-
logitems=
|
|
27
|
+
logitems=log_items,
|
|
26
28
|
compress=True
|
|
27
29
|
)
|
|
28
30
|
self.client.put_logs(request=request)
|
|
@@ -31,7 +31,7 @@ cobweb/pipelines/pipeline_console.py,sha256=NEh-4zhuVAQOqwXLsqeb-rcNZ9_KXFUpL3ot
|
|
|
31
31
|
cobweb/pipelines/pipeline_loghub.py,sha256=xZ6D55BGdiM71WUv83jyLGbEyUwhBHLJRZoXthBxxTs,1019
|
|
32
32
|
cobweb/utils/__init__.py,sha256=Ev2LZZ1-S56iQYDqFZrqadizEv4Gk8Of-DraH-_WnKY,109
|
|
33
33
|
cobweb/utils/bloom.py,sha256=vng-YbKgh9HbtpAWYf_nkUSbfVTOj40aqUUejRYlsCU,1752
|
|
34
|
-
cobweb/utils/dotting.py,sha256=
|
|
34
|
+
cobweb/utils/dotting.py,sha256=RnZulCKvhbFFpVznnCBAGCTRNbpoFD7xvWw2LGnGW54,827
|
|
35
35
|
cobweb/utils/oss.py,sha256=gyt8-UB07tVphZLQXMOf-JTJwU-mWq8KZkOXKkAf3uk,3513
|
|
36
36
|
cobweb/utils/tools.py,sha256=5JEaaAwYoV9Sdla2UBIJn6faUBuXmxUMagm9ck6FVqs,1253
|
|
37
37
|
cobweb_new/__init__.py,sha256=CBd2oByCfc5EmH2dCZYVHkxXYZG-oWrLyTtZU5sEoP0,96
|
|
@@ -67,8 +67,8 @@ cobweb_new/utils/__init__.py,sha256=c9macpjc15hrCUCdzO5RR_sgK_B9kvJKreSGprZ1ld4,
|
|
|
67
67
|
cobweb_new/utils/bloom.py,sha256=vng-YbKgh9HbtpAWYf_nkUSbfVTOj40aqUUejRYlsCU,1752
|
|
68
68
|
cobweb_new/utils/oss.py,sha256=gyt8-UB07tVphZLQXMOf-JTJwU-mWq8KZkOXKkAf3uk,3513
|
|
69
69
|
cobweb_new/utils/tools.py,sha256=5JEaaAwYoV9Sdla2UBIJn6faUBuXmxUMagm9ck6FVqs,1253
|
|
70
|
-
cobweb_launcher-1.2.
|
|
71
|
-
cobweb_launcher-1.2.
|
|
72
|
-
cobweb_launcher-1.2.
|
|
73
|
-
cobweb_launcher-1.2.
|
|
74
|
-
cobweb_launcher-1.2.
|
|
70
|
+
cobweb_launcher-1.2.33.dist-info/LICENSE,sha256=z1rxSIGOyzcSb3orZxFPxzx-0C1vTocmswqBNxpKfEk,1063
|
|
71
|
+
cobweb_launcher-1.2.33.dist-info/METADATA,sha256=RyPhTb94O0OQ4DT8ZMc_7T-2EkReXuHuD2a0lxfV0lM,6510
|
|
72
|
+
cobweb_launcher-1.2.33.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
|
|
73
|
+
cobweb_launcher-1.2.33.dist-info/top_level.txt,sha256=UKwd478nkspJ6_fos3jtuc7SKXfmU42bJa_Ek5n2zsE,18
|
|
74
|
+
cobweb_launcher-1.2.33.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|