aliyun-log-python-sdk 0.8.10__tar.gz → 0.8.12__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.10 → aliyun-log-python-sdk-0.8.12}/PKG-INFO +1 -1
  2. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/gethistogramsrequest.py +25 -25
  3. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/getlogsrequest.py +25 -25
  4. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/job.py +2 -2
  5. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/logclient.py +18 -15
  6. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/version.py +1 -1
  7. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun_log_python_sdk.egg-info/PKG-INFO +1 -1
  8. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun_log_python_sdk.egg-info/requires.txt +1 -1
  9. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/setup.py +2 -2
  10. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/README.md +0 -0
  11. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/__init__.py +0 -0
  12. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/__init__.py +0 -0
  13. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/acl_config.py +0 -0
  14. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/acl_response.py +0 -0
  15. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/auth.py +0 -0
  16. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/common_response.py +0 -0
  17. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer/__init__.py +0 -0
  18. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer/checkpoint_tracker.py +0 -0
  19. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer/config.py +0 -0
  20. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer/consumer_client.py +0 -0
  21. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer/exceptions.py +0 -0
  22. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer/fetched_log_group.py +0 -0
  23. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer/heart_beat.py +0 -0
  24. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer/shard_worker.py +0 -0
  25. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer/tasks.py +0 -0
  26. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer/worker.py +0 -0
  27. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer_group_request.py +0 -0
  28. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer_group_response.py +0 -0
  29. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/cursor_response.py +0 -0
  30. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/cursor_time_response.py +0 -0
  31. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/es_migration/__init__.py +0 -0
  32. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/es_migration/doc_logitem_converter.py +0 -0
  33. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/es_migration/index_logstore_mappings.py +0 -0
  34. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/es_migration/mapping_index_converter.py +0 -0
  35. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/es_migration/migration_log.py +0 -0
  36. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/es_migration/migration_manager.py +0 -0
  37. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/es_migration/migration_response.py +0 -0
  38. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/es_migration/migration_task.py +0 -0
  39. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/es_migration/util.py +0 -0
  40. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_config_response.py +0 -0
  41. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/__init__.py +0 -0
  42. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/config_parser.py +0 -0
  43. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/etl_util.py +0 -0
  44. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/exceptions.py +0 -0
  45. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/restrict_config_parser.py +0 -0
  46. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/runner.py +0 -0
  47. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/settings.py +0 -0
  48. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/trans_comp/__init__.py +0 -0
  49. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/trans_comp/trans_base.py +0 -0
  50. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/trans_comp/trans_csv.py +0 -0
  51. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/trans_comp/trans_json.py +0 -0
  52. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/trans_comp/trans_kv.py +0 -0
  53. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/trans_comp/trans_lookup.py +0 -0
  54. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/trans_comp/trans_mv.py +0 -0
  55. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/trans_comp/trans_regex.py +0 -0
  56. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/trans_comp/trans_set_field.py +0 -0
  57. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/transform/__init__.py +0 -0
  58. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/transform/condition_list.py +0 -0
  59. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/transform/condition_transform.py +0 -0
  60. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/transform/condition_util.py +0 -0
  61. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/transform/transform_base.py +0 -0
  62. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/transform/transform_list.py +0 -0
  63. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/transform/transform_meta.py +0 -0
  64. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/export_response.py +0 -0
  65. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/ext/__init__.py +0 -0
  66. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/ext/jupyter_magic.py +0 -0
  67. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/ext/syslogclient.py +0 -0
  68. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/external_store_config.py +0 -0
  69. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/external_store_config_response.py +0 -0
  70. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/getcontextlogsresponse.py +0 -0
  71. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/gethistogramsresponse.py +0 -0
  72. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/getlogsresponse.py +0 -0
  73. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/histogram.py +0 -0
  74. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/index_config.py +0 -0
  75. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/index_config_response.py +0 -0
  76. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/ingestion_response.py +0 -0
  77. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/listlogstoresrequest.py +0 -0
  78. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/listlogstoresresponse.py +0 -0
  79. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/listtopicsrequest.py +0 -0
  80. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/listtopicsresponse.py +0 -0
  81. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/log_logs_pb2.py +0 -0
  82. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/log_logs_raw_pb2.py +0 -0
  83. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/logclient_core.py +0 -0
  84. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/logclient_operator.py +0 -0
  85. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/logexception.py +0 -0
  86. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/logger_hanlder.py +0 -0
  87. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/logitem.py +0 -0
  88. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/logrequest.py +0 -0
  89. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/logresponse.py +0 -0
  90. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/logstore_config_response.py +0 -0
  91. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/logtail_config_detail.py +0 -0
  92. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/logtail_config_response.py +0 -0
  93. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/machine_group_detail.py +0 -0
  94. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/machinegroup_response.py +0 -0
  95. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/odps_sink.py +0 -0
  96. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/oss_sink.py +0 -0
  97. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/pluralize.py +0 -0
  98. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/project_response.py +0 -0
  99. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/pulllog_response.py +0 -0
  100. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/putlogsrequest.py +0 -0
  101. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/putlogsresponse.py +0 -0
  102. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/queriedlog.py +0 -0
  103. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/resource_params.py +0 -0
  104. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/resource_response.py +0 -0
  105. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/scheduled_sql.py +0 -0
  106. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/scheduled_sql_response.py +0 -0
  107. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/shard_response.py +0 -0
  108. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/shipper_config.py +0 -0
  109. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/shipper_response.py +0 -0
  110. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/sink.py +0 -0
  111. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/sql_instance_response.py +0 -0
  112. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/substore_config_response.py +0 -0
  113. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/tag_response.py +0 -0
  114. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/topostore_params.py +0 -0
  115. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/topostore_response.py +0 -0
  116. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/util.py +0 -0
  117. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun_log_python_sdk.egg-info/SOURCES.txt +0 -0
  118. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun_log_python_sdk.egg-info/dependency_links.txt +0 -0
  119. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun_log_python_sdk.egg-info/top_level.txt +0 -0
  120. {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: aliyun-log-python-sdk
3
- Version: 0.8.10
3
+ Version: 0.8.12
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
@@ -28,14 +28,14 @@ class GetHistogramsRequest(LogRequest):
28
28
  :type query: string
29
29
  :param query: user defined query
30
30
 
31
- :type from_nano: int
32
- :param from_nano: nano part of query begin time
31
+ :type from_time_nano_part: int
32
+ :param from_time_nano_part: nano part of query begin time
33
33
 
34
- :type to_nano: int
35
- :param to_nano: nano part of query end time
34
+ :type to_time_nano_part: int
35
+ :param to_time_nano_part: nano part of query end time
36
36
  """
37
37
 
38
- def __init__(self, project=None, logstore=None, fromTime=None, toTime=None, topic=None, query=None, accurate_query=False, from_nano=0 ,to_nano=0):
38
+ def __init__(self, project=None, logstore=None, fromTime=None, toTime=None, topic=None, query=None, accurate_query=False, from_time_nano_part=0 ,to_time_nano_part=0):
39
39
  LogRequest.__init__(self, project)
40
40
  self.logstore = logstore
41
41
  self.fromTime = parse_timestamp(fromTime)
@@ -43,8 +43,8 @@ class GetHistogramsRequest(LogRequest):
43
43
  self.topic = topic
44
44
  self.query = query
45
45
  self.accurate_query = accurate_query
46
- self.from_nano = from_nano
47
- self.to_nano = to_nano
46
+ self.from_time_nano_part = from_time_nano_part
47
+ self.to_time_nano_part = to_time_nano_part
48
48
 
49
49
  def get_logstore(self):
50
50
  """ Get logstore name
@@ -134,32 +134,32 @@ class GetHistogramsRequest(LogRequest):
134
134
  """
135
135
  self.accurate_query = accurate_query
136
136
 
137
- def get_from_nano(self):
138
- """ Get request from_nano
137
+ def get_from_time_nano_part(self):
138
+ """ Get request from_time_nano_part
139
139
 
140
- :return: int, from_nano
140
+ :return: int, from_time_nano_part
141
141
  """
142
- return self.from_nano
142
+ return self.from_time_nano_part
143
143
 
144
- def set_from_nano(self, from_nano):
145
- """ Set request from_nano
144
+ def set_from_time_nano_part(self, from_time_nano_part):
145
+ """ Set request from_time_nano_part
146
146
 
147
- :type from_nano: int
148
- :param from_nano: from_nano part of query begin time
147
+ :type from_time_nano_part: int
148
+ :param from_time_nano_part: from_time_nano_part part of query begin time
149
149
  """
150
- self.from_nano = from_nano
150
+ self.from_time_nano_part = from_time_nano_part
151
151
 
152
- def get_to_nano(self):
153
- """ Get request to_nano
152
+ def get_to_time_nano_part(self):
153
+ """ Get request to_time_nano_part
154
154
 
155
- :return: int, to_nano
155
+ :return: int, to_time_nano_part
156
156
  """
157
- return self.to_nano
157
+ return self.to_time_nano_part
158
158
 
159
- def set_to_nano(self, to_nano):
160
- """ Set request to_nano
159
+ def set_to_time_nano_part(self, to_time_nano_part):
160
+ """ Set request to_time_nano_part
161
161
 
162
- :type to_nano: int
163
- :param to_nano: to_nano part of query end time
162
+ :type to_time_nano_part: int
163
+ :param to_time_nano_part: to_time_nano_part part of query end time
164
164
  """
165
- self.to_nano = to_nano
165
+ self.to_time_nano_part = to_time_nano_part
@@ -49,15 +49,15 @@ class GetLogsRequest(LogRequest):
49
49
  :type accurate_query: bool
50
50
  :param accurate_query: if accurate_query is set to true, the query will run global ordered time mode
51
51
 
52
- :type from_nano: int
53
- :param from_nano: nano part of query begin time
52
+ :type from_time_nano_part: int
53
+ :param from_time_nano_part: nano part of query begin time
54
54
 
55
- :type to_nano: int
56
- :param to_nano: nano part of query end time
55
+ :type to_time_nano_part: int
56
+ :param to_time_nano_part: nano part of query end time
57
57
  """
58
58
 
59
59
  def __init__(self, project=None, logstore=None, fromTime=None, toTime=None, topic=None,
60
- query=None, line=100, offset=0, reverse=False, power_sql=False, scan=False, forward=True, accurate_query=False, from_nano=0, to_nano=0):
60
+ query=None, line=100, offset=0, reverse=False, power_sql=False, scan=False, forward=True, accurate_query=False, from_time_nano_part=0, to_time_nano_part=0):
61
61
  LogRequest.__init__(self, project)
62
62
  self.logstore = logstore
63
63
  self.fromTime = fromTime
@@ -71,8 +71,8 @@ class GetLogsRequest(LogRequest):
71
71
  self.scan = scan
72
72
  self.forward = forward
73
73
  self.accurate_query = accurate_query
74
- self.from_nano = from_nano
75
- self.to_nano = to_nano
74
+ self.from_time_nano_part = from_time_nano_part
75
+ self.to_time_nano_part = to_time_nano_part
76
76
 
77
77
  def get_logstore(self):
78
78
  """ Get logstore name
@@ -254,35 +254,35 @@ class GetLogsRequest(LogRequest):
254
254
  """
255
255
  self.accurate_query = accurate_query
256
256
 
257
- def get_from_nano(self):
258
- """ Get request from_nano
257
+ def get_from_time_nano_part(self):
258
+ """ Get request from_time_nano_part
259
259
 
260
- :return: int, from_nano
260
+ :return: int, from_time_nano_part
261
261
  """
262
- return self.from_nano
262
+ return self.from_time_nano_part
263
263
 
264
- def set_from_nano(self, from_nano):
265
- """ Set request from_nano
264
+ def set_from_time_nano_part(self, from_time_nano_part):
265
+ """ Set request from_time_nano_part
266
266
 
267
- :type from_nano: int
268
- :param from_nano: from_nano part of query begin time
267
+ :type from_time_nano_part: int
268
+ :param from_time_nano_part: from_time_nano_part part of query begin time
269
269
  """
270
- self.from_nano = from_nano
270
+ self.from_time_nano_part = from_time_nano_part
271
271
 
272
- def get_to_nano(self):
273
- """ Get request to_nano
272
+ def get_to_time_nano_part(self):
273
+ """ Get request to_time_nano_part
274
274
 
275
- :return: int, to_nano
275
+ :return: int, to_time_nano_part
276
276
  """
277
- return self.to_nano
277
+ return self.to_time_nano_part
278
278
 
279
- def set_to_nano(self, to_nano):
280
- """ Set request to_nano
279
+ def set_to_time_nano_part(self, to_time_nano_part):
280
+ """ Set request to_time_nano_part
281
281
 
282
- :type to_nano: int
283
- :param to_nano: to_nano part of query end time
282
+ :type to_time_nano_part: int
283
+ :param to_time_nano_part: to_time_nano_part part of query end time
284
284
  """
285
- self.to_nano = to_nano
285
+ self.to_time_nano_part = to_time_nano_part
286
286
 
287
287
  class GetProjectLogsRequest(LogRequest):
288
288
  """ The request used to get logs by a query from log cross multiple logstores.
@@ -78,7 +78,7 @@ class ExportConfiguration(object):
78
78
  def getSink(self):
79
79
  return self.__sink
80
80
 
81
- def setSink(self, sink: DataSink):
81
+ def setSink(self, sink):
82
82
  self.__sink = sink
83
83
 
84
84
  def getParameters(self):
@@ -88,7 +88,7 @@ class ExportConfiguration(object):
88
88
  self.__parameters = parameters
89
89
 
90
90
 
91
- class AbstractJob(metaclass=abc.ABCMeta):
91
+ class AbstractJob(object):
92
92
 
93
93
  def getName(self):
94
94
  return self.__name
@@ -251,7 +251,7 @@ class LogClient(object):
251
251
  return json.loads(resp_body)
252
252
  except Exception as ex:
253
253
  raise LogException('BadResponse',
254
- 'Bad json format:\n"%s"' % b64e(resp_body) + '\n' + repr(ex),
254
+ 'Bad json format:\n"%s"' % resp_body + '\n' + repr(ex),
255
255
  requestId, resp_status, resp_header, resp_body)
256
256
 
257
257
  def _getHttpResponse(self, method, url, params, body, headers): # ensure method, url, body is str
@@ -542,8 +542,8 @@ class LogClient(object):
542
542
  params['query'] = request.get_query()
543
543
 
544
544
  params['accurate'] = request.get_accurate_query()
545
- params['fromNs'] = request.get_from_nano()
546
- params['toNs'] = request.get_to_nano()
545
+ params['fromNs'] = request.get_from_time_nano_part()
546
+ params['toNs'] = request.get_to_time_nano_part()
547
547
  params['type'] = 'histogram'
548
548
  logstore = request.get_logstore()
549
549
  project = request.get_project()
@@ -552,7 +552,7 @@ class LogClient(object):
552
552
  return GetHistogramsResponse(resp, header)
553
553
 
554
554
  def get_log(self, project, logstore, from_time, to_time, topic=None,
555
- query=None, reverse=False, offset=0, size=100, power_sql=False, scan=False, forward=True, accurate_query=False, from_nano=0, to_nano=0):
555
+ query=None, reverse=False, offset=0, size=100, power_sql=False, scan=False, forward=True, accurate_query=False, from_time_nano_part=0, to_time_nano_part=0):
556
556
  """ Get logs from log service.
557
557
  will retry DEFAULT_QUERY_RETRY_COUNT when incomplete.
558
558
  Unsuccessful operation will cause an LogException.
@@ -597,11 +597,11 @@ class LogClient(object):
597
597
  :type accurate_query: bool
598
598
  :param accurate_query: if accurate_query is set to true, the query will global ordered time second mode
599
599
 
600
- :type from_nano: int
601
- :param from_nano: nano part of query begin time
600
+ :type from_time_nano_part: int
601
+ :param from_time_nano_part: nano part of query begin time
602
602
 
603
- :type to_nano: int
604
- :param to_nano: nano part of query end time
603
+ :type to_time_nano_part: int
604
+ :param to_time_nano_part: nano part of query end time
605
605
 
606
606
  :return: GetLogsResponse
607
607
 
@@ -624,8 +624,8 @@ class LogClient(object):
624
624
  query=query,
625
625
  reverse=reverse,
626
626
  accurate_query=accurate_query,
627
- from_nano=from_nano,
628
- to_nano=to_nano
627
+ from_time_nano_part=from_time_nano_part,
628
+ to_time_nano_part=to_time_nano_part
629
629
  )
630
630
 
631
631
  ret = None
@@ -639,8 +639,8 @@ class LogClient(object):
639
639
  'reverse': 'true' if reverse else 'false',
640
640
  'powerSql': power_sql,
641
641
  'accurate': accurate_query,
642
- 'fromNs': from_nano,
643
- 'toNs': to_nano
642
+ 'fromNs': from_time_nano_part,
643
+ 'toNs': to_time_nano_part
644
644
  }
645
645
 
646
646
  if topic:
@@ -687,11 +687,11 @@ class LogClient(object):
687
687
  scan = request.get_scan()
688
688
  forward = request.get_forward()
689
689
  accurate_query = request.get_accurate_query()
690
- from_nano = request.get_from_nano()
691
- to_nano = request.get_to_nano()
690
+ from_time_nano_part = request.get_from_time_nano_part()
691
+ to_time_nano_part = request.get_to_time_nano_part()
692
692
 
693
693
  return self.get_log(project, logstore, from_time, to_time, topic,
694
- query, reverse, offset, size, power_sql, scan, forward, accurate_query, from_nano, to_nano)
694
+ query, reverse, offset, size, power_sql, scan, forward, accurate_query, from_time_nano_part, to_time_nano_part)
695
695
 
696
696
  def get_log_all(self, project, logstore, from_time, to_time, topic=None,
697
697
  query=None, reverse=False, offset=0, power_sql=False, accurate_query=False):
@@ -1294,6 +1294,9 @@ class LogClient(object):
1294
1294
  :type mode: string
1295
1295
  :param mode: type of logstore, can be choose between lite and standard, default value standard
1296
1296
 
1297
+ :type hot_ttl: int
1298
+ :param hot_ttl: the life cycle of hot storage,[0-hot_ttl]is hot storage, (hot_ttl-ttl] is warm storage, if hot_ttl=-1, it means [0-ttl]is all hot storage
1299
+
1297
1300
  :return: CreateLogStoreResponse
1298
1301
 
1299
1302
  :raise: LogException
@@ -1,4 +1,4 @@
1
- __version__ = '0.8.10'
1
+ __version__ = '0.8.12'
2
2
 
3
3
  import sys
4
4
  OS_VERSION = str(sys.platform)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: aliyun-log-python-sdk
3
- Version: 0.8.10
3
+ Version: 0.8.12
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
@@ -4,4 +4,4 @@ python-dateutil
4
4
  elasticsearch
5
5
  jmespath
6
6
  dateparser
7
- protobuf<4.0.0,>=3.4.0
7
+ protobuf<4.0.0,>3.4.0
@@ -32,7 +32,7 @@ requirements_py3 = [
32
32
  'elasticsearch',
33
33
  'jmespath',
34
34
  'dateparser',
35
- 'protobuf>=3.4.0,<4.0.0',
35
+ 'protobuf>3.4.0,<4.0.0',
36
36
  ]
37
37
  requirements_py2 = [
38
38
  'six==1.14.0',
@@ -42,7 +42,7 @@ requirements_py2 = [
42
42
  'jmespath==0.9.5',
43
43
  'enum34==1.1.10',
44
44
  'futures==3.3.0',
45
- 'protobuf<=3.4.0',
45
+ 'protobuf>3.4.0,<4.0.0',
46
46
  'regex==2021.3.17',
47
47
  'tzlocal==2.0.0',
48
48
  'lz4a==0.7.0',