aliyun-log-python-sdk 0.8.14__tar.gz → 0.8.15__tar.gz

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.
Files changed (120) hide show
  1. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/PKG-INFO +2 -2
  2. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/__init__.py +2 -2
  3. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/acl_response.py +2 -2
  4. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/common_response.py +0 -1
  5. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/consumer/checkpoint_tracker.py +0 -1
  6. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/cursor_response.py +1 -1
  7. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/cursor_time_response.py +1 -1
  8. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/etl_core/config_parser.py +0 -1
  9. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/etl_core/etl_util.py +0 -1
  10. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/etl_core/exceptions.py +0 -1
  11. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/etl_core/restrict_config_parser.py +0 -1
  12. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/etl_core/runner.py +0 -1
  13. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/etl_core/trans_comp/__init__.py +1 -1
  14. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/etl_core/trans_comp/trans_base.py +0 -1
  15. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/etl_core/transform/condition_transform.py +0 -2
  16. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/ext/jupyter_magic.py +4 -4
  17. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/external_store_config.py +0 -2
  18. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/external_store_config_response.py +5 -5
  19. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/gethistogramsrequest.py +16 -16
  20. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/gethistogramsresponse.py +4 -4
  21. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/getlogsrequest.py +24 -24
  22. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/getlogsresponse.py +5 -5
  23. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/histogram.py +9 -9
  24. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/index_config.py +6 -6
  25. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/index_config_response.py +4 -4
  26. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/ingestion_response.py +1 -1
  27. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/listlogstoresrequest.py +1 -1
  28. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/listlogstoresresponse.py +4 -4
  29. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/listtopicsrequest.py +11 -11
  30. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/listtopicsresponse.py +4 -4
  31. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/logclient.py +115 -115
  32. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/logclient_core.py +0 -1
  33. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/logexception.py +7 -7
  34. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/logger_hanlder.py +2 -3
  35. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/logitem.py +9 -9
  36. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/logrequest.py +4 -4
  37. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/logresponse.py +5 -5
  38. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/logstore_config_response.py +5 -5
  39. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/logtail_config_detail.py +3 -4
  40. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/logtail_config_response.py +5 -5
  41. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/machine_group_detail.py +1 -1
  42. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/machinegroup_response.py +10 -10
  43. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/project_response.py +2 -1
  44. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/pulllog_response.py +1 -1
  45. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/putlogsrequest.py +15 -15
  46. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/putlogsresponse.py +1 -1
  47. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/queriedlog.py +5 -5
  48. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/shard_response.py +2 -2
  49. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/sql_instance_response.py +1 -1
  50. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/substore_config_response.py +5 -5
  51. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/tag_response.py +1 -1
  52. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/topostore_response.py +1 -2
  53. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/version.py +1 -1
  54. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun_log_python_sdk.egg-info/PKG-INFO +2 -2
  55. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/setup.py +1 -1
  56. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/README.md +0 -0
  57. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/__init__.py +0 -0
  58. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/acl_config.py +0 -0
  59. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/auth.py +0 -0
  60. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/consumer/__init__.py +0 -0
  61. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/consumer/config.py +0 -0
  62. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/consumer/consumer_client.py +0 -0
  63. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/consumer/exceptions.py +0 -0
  64. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/consumer/fetched_log_group.py +0 -0
  65. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/consumer/heart_beat.py +0 -0
  66. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/consumer/shard_worker.py +0 -0
  67. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/consumer/tasks.py +0 -0
  68. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/consumer/worker.py +0 -0
  69. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/consumer_group_request.py +0 -0
  70. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/consumer_group_response.py +0 -0
  71. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/es_migration/__init__.py +0 -0
  72. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/es_migration/doc_logitem_converter.py +0 -0
  73. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/es_migration/index_logstore_mappings.py +0 -0
  74. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/es_migration/mapping_index_converter.py +0 -0
  75. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/es_migration/migration_log.py +0 -0
  76. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/es_migration/migration_manager.py +0 -0
  77. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/es_migration/migration_response.py +0 -0
  78. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/es_migration/migration_task.py +0 -0
  79. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/es_migration/util.py +0 -0
  80. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/etl_config_response.py +0 -0
  81. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/etl_core/__init__.py +0 -0
  82. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/etl_core/settings.py +0 -0
  83. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/etl_core/trans_comp/trans_csv.py +0 -0
  84. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/etl_core/trans_comp/trans_json.py +0 -0
  85. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/etl_core/trans_comp/trans_kv.py +0 -0
  86. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/etl_core/trans_comp/trans_lookup.py +0 -0
  87. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/etl_core/trans_comp/trans_mv.py +0 -0
  88. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/etl_core/trans_comp/trans_regex.py +0 -0
  89. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/etl_core/trans_comp/trans_set_field.py +0 -0
  90. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/etl_core/transform/__init__.py +0 -0
  91. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/etl_core/transform/condition_list.py +0 -0
  92. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/etl_core/transform/condition_util.py +0 -0
  93. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/etl_core/transform/transform_base.py +0 -0
  94. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/etl_core/transform/transform_list.py +0 -0
  95. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/etl_core/transform/transform_meta.py +0 -0
  96. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/export_response.py +0 -0
  97. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/ext/__init__.py +0 -0
  98. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/ext/syslogclient.py +0 -0
  99. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/getcontextlogsresponse.py +0 -0
  100. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/job.py +0 -0
  101. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/log_logs_pb2.py +0 -0
  102. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/log_logs_raw_pb2.py +0 -0
  103. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/logclient_operator.py +0 -0
  104. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/odps_sink.py +0 -0
  105. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/oss_sink.py +0 -0
  106. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/pluralize.py +0 -0
  107. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/resource_params.py +0 -0
  108. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/resource_response.py +0 -0
  109. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/scheduled_sql.py +0 -0
  110. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/scheduled_sql_response.py +0 -0
  111. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/shipper_config.py +0 -0
  112. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/shipper_response.py +0 -0
  113. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/sink.py +0 -0
  114. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/topostore_params.py +0 -0
  115. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun/log/util.py +0 -0
  116. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun_log_python_sdk.egg-info/SOURCES.txt +0 -0
  117. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun_log_python_sdk.egg-info/dependency_links.txt +0 -0
  118. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun_log_python_sdk.egg-info/requires.txt +0 -0
  119. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/aliyun_log_python_sdk.egg-info/top_level.txt +0 -0
  120. {aliyun-log-python-sdk-0.8.14 → aliyun-log-python-sdk-0.8.15}/setup.cfg +0 -0
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: aliyun-log-python-sdk
3
- Version: 0.8.14
3
+ Version: 0.8.15
4
4
  Summary: Aliyun log service Python client SDK
5
5
  Home-page: https://github.com/aliyun/aliyun-log-python-sdk
6
6
  Author: Aliyun
7
7
  Author-email: UNKNOWN
8
8
  License: UNKNOWN
9
9
  Description:
10
- Python SDK for Alicloud Log Service
10
+ Python SDK for Alicloud Log Service
11
11
  http://aliyun-log-python-sdk.readthedocs.io
12
12
 
13
13
  Platform: UNKNOWN
@@ -13,7 +13,7 @@ from .shipper_config import ShipperTask, OssShipperConfig, OdpsShipperConfig
13
13
  from .version import __version__
14
14
  from .logitem import LogItem
15
15
  from .consumer_group_request import *
16
- from .external_store_config import *
16
+ from .external_store_config import *
17
17
 
18
18
  # response class
19
19
  from .consumer_group_response import *
@@ -32,7 +32,7 @@ from .pulllog_response import PullLogResponse
32
32
  from .shard_response import *
33
33
  from .shipper_response import *
34
34
  from .common_response import *
35
- from .external_store_config_response import *
35
+ from .external_store_config_response import *
36
36
  from .log_logs_raw_pb2 import LogGroupRaw as LogGroup
37
37
 
38
38
  # logging handler
@@ -12,7 +12,7 @@ from .logresponse import LogResponse
12
12
 
13
13
  class UpdateAclResponse(LogResponse):
14
14
  """ The response of the update_projecta_acl/update_logstore_acl API from log.
15
-
15
+
16
16
  :type header: dict
17
17
  :param header: UpdateAclResponse HTTP response header
18
18
  """
@@ -27,7 +27,7 @@ class UpdateAclResponse(LogResponse):
27
27
 
28
28
  class ListAclResponse(LogResponse):
29
29
  """ The response of the get_project_acl/get_logstore_acl API from log.
30
-
30
+
31
31
  :type header: dict
32
32
  :param header: GetAclResponse HTTP response header
33
33
  """
@@ -102,4 +102,3 @@ class ListEntityResponse(LogResponse):
102
102
  }
103
103
 
104
104
  return self
105
-
@@ -62,4 +62,3 @@ class ConsumerCheckpointTracker(object):
62
62
 
63
63
  def get_check_point(self):
64
64
  return self.temp_check_point
65
-
@@ -10,7 +10,7 @@ from .logresponse import LogResponse
10
10
 
11
11
  class GetCursorResponse(LogResponse):
12
12
  """ The response of the get_cursor API from log.
13
-
13
+
14
14
  :type header: dict
15
15
  :param header: ListShardResponse HTTP response header
16
16
 
@@ -9,7 +9,7 @@ from .logresponse import LogResponse
9
9
 
10
10
  class GetCursorTimeResponse(LogResponse):
11
11
  """ The response of the get_cursor_time API from log.
12
-
12
+
13
13
  :type header: dict
14
14
  :param header: GetCursorTimeResponse HTTP response header
15
15
 
@@ -74,4 +74,3 @@ class ConfigParser(ast.NodeVisitor):
74
74
 
75
75
  self.visit(ast.parse(code))
76
76
  return sorted(self.name_list + self.fn_list, key=lambda x: x[0])
77
-
@@ -204,4 +204,3 @@ def get_set_mode_if_skip_fn(skip_if_src_exist, skip_if_src_not_empty, skip_if_va
204
204
 
205
205
  return False
206
206
  return if_skip
207
-
@@ -10,4 +10,3 @@ class SettingError(LogException):
10
10
 
11
11
  super(SettingError, self).__init__('InvalidConfig', u'{0}\nDetail: {1}'.format(msg, ex))
12
12
  self.settings = settings
13
-
@@ -79,4 +79,3 @@ class RestrictConfigParser(ast.NodeVisitor):
79
79
 
80
80
  def parse(self, code):
81
81
  self.visit(ast.parse(code))
82
-
@@ -37,4 +37,3 @@ class Runner(object):
37
37
 
38
38
  def __call__(self, event):
39
39
  return process_event(event, self.fn_list)
40
-
@@ -17,4 +17,4 @@ PSV = trans_comp_psv
17
17
  JSON = trans_comp_json
18
18
  KV = trans_comp_kv
19
19
  SPLIT = trans_comp_split_event
20
- ZIP = trans_set_field_zip
20
+ ZIP = trans_set_field_zip
@@ -77,4 +77,3 @@ class trans_comp_check_mdoe_base(trans_comp_base):
77
77
  has_update = self.set(e, k, v, check_kw_name=check_kw_name) or has_update
78
78
 
79
79
  return has_update
80
-
@@ -73,5 +73,3 @@ class keep_event(transform_base):
73
73
  return event
74
74
  logger.info(u"keep_event: drop event: {0}".format(event))
75
75
  return None
76
-
77
-
@@ -307,14 +307,14 @@ class MyMagics(Magics):
307
307
  progress.value = 100
308
308
  progress.description = u"完成" if result else u"失败"
309
309
  break
310
-
310
+
311
311
  def on_button_clicked(b):
312
312
  global result, detail
313
313
  progress.layout = show_layout
314
314
  progress.description = u"连接中..."
315
315
  progress.value = 0
316
316
  w_result.value = ""
317
-
317
+
318
318
  result = None
319
319
  detail = ""
320
320
  thread = threading.Thread(target=work, args=(progress,))
@@ -332,9 +332,9 @@ class MyMagics(Magics):
332
332
  w_confirm.on_click(on_button_clicked)
333
333
 
334
334
  p = widgets.VBox(children=[w_1, w_endpoint, w_key_id, w_key_val, w_project, w_logstore, w_confirm, progress, w_result])
335
-
335
+
336
336
  return p
337
-
337
+
338
338
 
339
339
  def df_html(df1):
340
340
  if not __CAN_USE_WIDGET__:
@@ -210,5 +210,3 @@ class ExternalStoreCsvConfig(ExternalStoreConfigBase):
210
210
  print("storeType", self.storeType)
211
211
  print("columns", self.columns)
212
212
  #print("objects", self.objects)
213
-
214
-
@@ -13,7 +13,7 @@ from .external_store_config import ExternalStoreConfigBase
13
13
 
14
14
  class CreateExternalStoreResponse(LogResponse):
15
15
  """ The response of the create_logstore API from log.
16
-
16
+
17
17
  :type header: dict
18
18
  :param header: CreateExternalStoreResponse HTTP response header
19
19
  """
@@ -28,7 +28,7 @@ class CreateExternalStoreResponse(LogResponse):
28
28
 
29
29
  class DeleteExternalStoreResponse(LogResponse):
30
30
  """ The response of the delete_logstore API from log.
31
-
31
+
32
32
  :type header: dict
33
33
  :param header: DeleteExternalStoreResponse HTTP response header
34
34
  """
@@ -43,7 +43,7 @@ class DeleteExternalStoreResponse(LogResponse):
43
43
 
44
44
  class GetExternalStoreResponse(LogResponse):
45
45
  """ The response of the get_logstore API from log.
46
-
46
+
47
47
  :type header: dict
48
48
  :param header: GetExternalStoreResponse HTTP response header
49
49
 
@@ -74,7 +74,7 @@ class GetExternalStoreResponse(LogResponse):
74
74
 
75
75
  class UpdateExternalStoreResponse(LogResponse):
76
76
  """ The response of the update_logstore API from log.
77
-
77
+
78
78
  :type header: dict
79
79
  :param header: UpdateExternalStoreResponse HTTP response header
80
80
  """
@@ -90,7 +90,7 @@ class UpdateExternalStoreResponse(LogResponse):
90
90
 
91
91
  class ListExternalStoreResponse(LogResponse):
92
92
  """ The response of the list_logstore API from log.
93
-
93
+
94
94
  :type header: dict
95
95
  :param header: ListExternalStoreResponse HTTP response header
96
96
 
@@ -9,22 +9,22 @@ from .util import parse_timestamp
9
9
 
10
10
  class GetHistogramsRequest(LogRequest):
11
11
  """ The request used to get histograms of a query from log.
12
-
12
+
13
13
  :type project: string
14
14
  :param project: project name
15
-
15
+
16
16
  :type logstore: string
17
17
  :param logstore: logstore name
18
-
18
+
19
19
  :type fromTime: int/string
20
20
  :param fromTime: the begin time or format of time in readable time like "%Y-%m-%d %H:%M:%S<time_zone>" e.g. "2018-01-02 12:12:10+8:00" e.g. "2018-01-02 12:12:10", also support human readable string, e.g. "1 hour ago", "now", "yesterday 0:0:0", refer to https://aliyun-log-cli.readthedocs.io/en/latest/tutorials/tutorial_human_readable_datetime.html
21
-
21
+
22
22
  :type toTime: int/string
23
23
  :param toTime: the end time or format of time in readable time like "%Y-%m-%d %H:%M:%S<time_zone>" e.g. "2018-01-02 12:12:10+8:00" e.g. "2018-01-02 12:12:10", also support human readable string, e.g. "1 hour ago", "now", "yesterday 0:0:0", refer to https://aliyun-log-cli.readthedocs.io/en/latest/tutorials/tutorial_human_readable_datetime.html
24
24
 
25
25
  :type topic: string
26
26
  :param topic: topic name of logs
27
-
27
+
28
28
  :type query: string
29
29
  :param query: user defined query
30
30
 
@@ -48,14 +48,14 @@ class GetHistogramsRequest(LogRequest):
48
48
 
49
49
  def get_logstore(self):
50
50
  """ Get logstore name
51
-
51
+
52
52
  :return: string, logstore name.
53
53
  """
54
54
  return self.logstore if self.logstore else ''
55
55
 
56
56
  def set_logstore(self, logstore):
57
57
  """ Set logstore name
58
-
58
+
59
59
  :type logstore: string
60
60
  :param logstore: logstore name
61
61
  """
@@ -63,14 +63,14 @@ class GetHistogramsRequest(LogRequest):
63
63
 
64
64
  def get_topic(self):
65
65
  """ Get topic name
66
-
66
+
67
67
  :return: string, topic name
68
68
  """
69
69
  return self.topic if self.topic else ''
70
70
 
71
71
  def set_topic(self, topic):
72
72
  """ Set topic name
73
-
73
+
74
74
  :type topic: string
75
75
  :param topic: topic name
76
76
  """
@@ -78,14 +78,14 @@ class GetHistogramsRequest(LogRequest):
78
78
 
79
79
  def get_from(self):
80
80
  """ Get begin time
81
-
81
+
82
82
  :return: int, begin time
83
83
  """
84
84
  return self.fromTime
85
85
 
86
86
  def set_from(self, fromTime):
87
87
  """ Set begin time
88
-
88
+
89
89
  :type fromTime: int
90
90
  :param fromTime: begin time
91
91
  """
@@ -93,14 +93,14 @@ class GetHistogramsRequest(LogRequest):
93
93
 
94
94
  def get_to(self):
95
95
  """ Get end time
96
-
96
+
97
97
  :return: int, end time
98
98
  """
99
99
  return self.toTime
100
100
 
101
101
  def set_to(self, toTime):
102
102
  """ Set end time
103
-
103
+
104
104
  :type toTime: int
105
105
  :param toTime: end time
106
106
  """
@@ -108,14 +108,14 @@ class GetHistogramsRequest(LogRequest):
108
108
 
109
109
  def get_query(self):
110
110
  """ Get user defined query
111
-
111
+
112
112
  :return: string, user defined query
113
113
  """
114
114
  return self.query
115
115
 
116
116
  def set_query(self, query):
117
117
  """ Set user defined query
118
-
118
+
119
119
  :type query: string
120
120
  :param query: user defined query
121
121
  """
@@ -162,4 +162,4 @@ class GetHistogramsRequest(LogRequest):
162
162
  :type to_time_nano_part: int
163
163
  :param to_time_nano_part: to_time_nano_part part of query end time
164
164
  """
165
- self.to_time_nano_part = to_time_nano_part
165
+ self.to_time_nano_part = to_time_nano_part
@@ -14,7 +14,7 @@ class GetHistogramsResponse(LogResponse):
14
14
 
15
15
  :type resp: dict
16
16
  :param resp: GetHistogramsResponse HTTP response body
17
-
17
+
18
18
  :type header: dict
19
19
  :param header: GetHistogramsResponse HTTP response header
20
20
  """
@@ -32,21 +32,21 @@ class GetHistogramsResponse(LogResponse):
32
32
 
33
33
  def is_completed(self):
34
34
  """ Check if the histogram is completed
35
-
35
+
36
36
  :return: bool, true if this histogram is completed
37
37
  """
38
38
  return self.progress == 'Complete'
39
39
 
40
40
  def get_total_count(self):
41
41
  """ Get total logs' count that current query hits
42
-
42
+
43
43
  :return: int, total logs' count that current query hits
44
44
  """
45
45
  return self.count
46
46
 
47
47
  def get_histograms(self):
48
48
  """ Get histograms on the requested time range: [from, to)
49
-
49
+
50
50
  :return: Histogram list, histograms on the requested time range: [from, to)
51
51
  """
52
52
  return self.histograms
@@ -9,31 +9,31 @@ from .logrequest import LogRequest
9
9
 
10
10
  class GetLogsRequest(LogRequest):
11
11
  """ The request used to get logs by a query from log.
12
-
12
+
13
13
  :type project: string
14
14
  :param project: project name
15
-
15
+
16
16
  :type logstore: string
17
17
  :param logstore: logstore name
18
-
18
+
19
19
  :type fromTime: int/string
20
20
  :param fromTime: the begin time, or format of time in format "%Y-%m-%d %H:%M:%S" e.g. "2018-01-02 12:12:10"
21
-
21
+
22
22
  :type toTime: int/string
23
23
  :param toTime: the end time, or format of time in format "%Y-%m-%d %H:%M:%S" e.g. "2018-01-02 12:12:10"
24
24
 
25
25
  :type topic: string
26
26
  :param topic: topic name of logs
27
-
27
+
28
28
  :type query: string
29
29
  :param query: user defined query
30
-
30
+
31
31
  :type line: int
32
32
  :param line: max line number of return logs
33
-
33
+
34
34
  :type offset: int
35
35
  :param offset: line offset of return logs
36
-
36
+
37
37
  :type reverse: bool
38
38
  :param reverse: if reverse is set to true, the query will return the latest logs first
39
39
 
@@ -76,14 +76,14 @@ class GetLogsRequest(LogRequest):
76
76
 
77
77
  def get_logstore(self):
78
78
  """ Get logstore name
79
-
79
+
80
80
  :return: string, logstore name
81
81
  """
82
82
  return self.logstore if self.logstore else ''
83
83
 
84
84
  def set_logstore(self, logstore):
85
85
  """ Set logstore name
86
-
86
+
87
87
  :type logstore: string
88
88
  :param logstore: logstore name
89
89
  """
@@ -91,14 +91,14 @@ class GetLogsRequest(LogRequest):
91
91
 
92
92
  def get_topic(self):
93
93
  """ Get topic name
94
-
94
+
95
95
  :return: string, topic name
96
96
  """
97
97
  return self.topic if self.topic else ''
98
98
 
99
99
  def set_topic(self, topic):
100
100
  """ Set topic name
101
-
101
+
102
102
  :type topic: string
103
103
  :param topic: topic name
104
104
  """
@@ -106,14 +106,14 @@ class GetLogsRequest(LogRequest):
106
106
 
107
107
  def get_from(self):
108
108
  """ Get begin time
109
-
109
+
110
110
  :return: int, begin time
111
111
  """
112
112
  return self.fromTime
113
113
 
114
114
  def set_from(self, fromTime):
115
115
  """ Set begin time
116
-
116
+
117
117
  :type fromTime: int
118
118
  :param fromTime: begin time
119
119
  """
@@ -121,14 +121,14 @@ class GetLogsRequest(LogRequest):
121
121
 
122
122
  def get_to(self):
123
123
  """ Get end time
124
-
124
+
125
125
  :return: int, end time
126
126
  """
127
127
  return self.toTime
128
128
 
129
129
  def set_to(self, toTime):
130
130
  """ Set end time
131
-
131
+
132
132
  :type toTime: int
133
133
  :param toTime: end time
134
134
  """
@@ -136,14 +136,14 @@ class GetLogsRequest(LogRequest):
136
136
 
137
137
  def get_query(self):
138
138
  """ Get user defined query
139
-
139
+
140
140
  :return: string, user defined query
141
141
  """
142
142
  return self.query
143
143
 
144
144
  def set_query(self, query):
145
145
  """ Set user defined query
146
-
146
+
147
147
  :type query: string
148
148
  :param query: user defined query
149
149
  """
@@ -151,14 +151,14 @@ class GetLogsRequest(LogRequest):
151
151
 
152
152
  def get_line(self):
153
153
  """ Get max line number of return logs
154
-
154
+
155
155
  :return: int, max line number of return logs
156
156
  """
157
157
  return self.line
158
158
 
159
159
  def set_line(self, line):
160
160
  """ Set max line number of return logs
161
-
161
+
162
162
  :type line: int
163
163
  :param line: max line number of return logs
164
164
  """
@@ -166,14 +166,14 @@ class GetLogsRequest(LogRequest):
166
166
 
167
167
  def get_offset(self):
168
168
  """ Get line offset of return logs
169
-
169
+
170
170
  :return: int, line offset of return logs
171
171
  """
172
172
  return self.offset
173
173
 
174
174
  def set_offset(self, offset):
175
175
  """ Set line offset of return logs
176
-
176
+
177
177
  :type offset: int
178
178
  :param offset: line offset of return logs
179
179
  """
@@ -181,14 +181,14 @@ class GetLogsRequest(LogRequest):
181
181
 
182
182
  def get_reverse(self):
183
183
  """ Get request reverse flag
184
-
184
+
185
185
  :return: bool, reverse flag
186
186
  """
187
187
  return self.reverse
188
188
 
189
189
  def set_reverse(self, reverse):
190
190
  """ Set request reverse flag
191
-
191
+
192
192
  :type reverse: bool
193
193
  :param reverse: reverse flag
194
194
  """
@@ -15,10 +15,10 @@ import json
15
15
 
16
16
  class GetLogsResponse(LogResponse):
17
17
  """ The response of the GetLog API from log.
18
-
18
+
19
19
  :type resp: dict
20
20
  :param resp: GetLogsResponse HTTP response body
21
-
21
+
22
22
  :type header: dict
23
23
  :param header: GetLogsResponse HTTP response header
24
24
  """
@@ -72,21 +72,21 @@ class GetLogsResponse(LogResponse):
72
72
 
73
73
  def get_count(self):
74
74
  """ Get log number from the response
75
-
75
+
76
76
  :return: int, log number
77
77
  """
78
78
  return len(self.logs)
79
79
 
80
80
  def is_completed(self):
81
81
  """ Check if the get logs query is completed
82
-
82
+
83
83
  :return: bool, true if this logs query is completed
84
84
  """
85
85
  return self.progress == 'Complete'
86
86
 
87
87
  def get_logs(self):
88
88
  """ Get all logs from the response
89
-
89
+
90
90
  :return: QueriedLog list, all log data
91
91
  """
92
92
  return self.logs
@@ -10,16 +10,16 @@ class Histogram(object):
10
10
  The class used to present the result of log histogram status. For every log
11
11
  histogram, it contains : from/to time range, hit log count and query
12
12
  completed status.
13
-
13
+
14
14
  :type fromTime: int
15
15
  :param fromTime: the begin time
16
-
16
+
17
17
  :type toTime: int
18
18
  :param toTime: the end time
19
-
19
+
20
20
  :type count: int
21
- :param count: log count of histogram that query hits
22
-
21
+ :param count: log count of histogram that query hits
22
+
23
23
  :type progress: string
24
24
  :param progress: histogram query status(Complete or InComplete)
25
25
  """
@@ -32,28 +32,28 @@ class Histogram(object):
32
32
 
33
33
  def get_from(self):
34
34
  """ Get begin time
35
-
35
+
36
36
  :return: int, begin time
37
37
  """
38
38
  return self.fromTime
39
39
 
40
40
  def get_to(self):
41
41
  """ Get end time
42
-
42
+
43
43
  :return: int, end time
44
44
  """
45
45
  return self.toTime
46
46
 
47
47
  def get_count(self):
48
48
  """ Get log count of histogram that query hits
49
-
49
+
50
50
  :return: int, log count of histogram that query hits
51
51
  """
52
52
  return self.count
53
53
 
54
54
  def is_completed(self):
55
55
  """ Check if the histogram is completed
56
-
56
+
57
57
  :return: bool, true if this histogram is completed
58
58
  """
59
59
  return self.progress == 'Complete'
@@ -27,7 +27,7 @@ class IndexJsonKeyConfig(object):
27
27
  self.json_keys = {}
28
28
 
29
29
  """
30
- Inner key config in json, if the json value is :
30
+ Inner key config in json, if the json value is :
31
31
  json_key : {
32
32
  "map_1" : {
33
33
  "k_1" : "v_1",
@@ -230,7 +230,7 @@ class IndexConfig(object):
230
230
  self.docvalue_max_text_len = 0
231
231
 
232
232
  '''
233
- :type max_len : int
233
+ :type max_len : int
234
234
  :param max_len : the max len of the docvalue
235
235
  '''
236
236
 
@@ -238,16 +238,16 @@ class IndexConfig(object):
238
238
  self.docvalue_max_text_len = max_len
239
239
 
240
240
  '''
241
- :type black_list : list
242
- :param black_list : the list of black list keys for log reduce, e.g black_list = ["key_1", "key_2"]
241
+ :type black_list : list
242
+ :param black_list : the list of black list keys for log reduce, e.g black_list = ["key_1", "key_2"]
243
243
  '''
244
244
 
245
245
  def set_log_reduce_black_list(self, black_list):
246
246
  self.log_reduce_black_list = black_list
247
247
 
248
248
  '''
249
- :type white_list : list
250
- :param white_list : the list of white list keys for log reduce, e.g white_list = ["key_1", "key_2"]
249
+ :type white_list : list
250
+ :param white_list : the list of white list keys for log reduce, e.g white_list = ["key_1", "key_2"]
251
251
  '''
252
252
 
253
253
  def set_log_reduce_white_list(self, white_list):