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.
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/PKG-INFO +1 -1
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/gethistogramsrequest.py +25 -25
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/getlogsrequest.py +25 -25
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/job.py +2 -2
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/logclient.py +18 -15
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/version.py +1 -1
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun_log_python_sdk.egg-info/PKG-INFO +1 -1
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun_log_python_sdk.egg-info/requires.txt +1 -1
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/setup.py +2 -2
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/README.md +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/__init__.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/__init__.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/acl_config.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/acl_response.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/auth.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/common_response.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer/__init__.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer/checkpoint_tracker.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer/config.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer/consumer_client.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer/exceptions.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer/fetched_log_group.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer/heart_beat.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer/shard_worker.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer/tasks.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer/worker.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer_group_request.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer_group_response.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/cursor_response.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/cursor_time_response.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/es_migration/__init__.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/es_migration/doc_logitem_converter.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/es_migration/index_logstore_mappings.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/es_migration/mapping_index_converter.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/es_migration/migration_log.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/es_migration/migration_manager.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/es_migration/migration_response.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/es_migration/migration_task.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/es_migration/util.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_config_response.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/__init__.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/config_parser.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/etl_util.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/exceptions.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/restrict_config_parser.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/runner.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/settings.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/trans_comp/__init__.py +0 -0
- {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
- {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
- {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
- {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
- {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
- {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
- {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
- {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
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/transform/__init__.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/transform/condition_list.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/transform/condition_transform.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/transform/condition_util.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/transform/transform_base.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/transform/transform_list.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/transform/transform_meta.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/export_response.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/ext/__init__.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/ext/jupyter_magic.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/ext/syslogclient.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/external_store_config.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/external_store_config_response.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/getcontextlogsresponse.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/gethistogramsresponse.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/getlogsresponse.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/histogram.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/index_config.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/index_config_response.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/ingestion_response.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/listlogstoresrequest.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/listlogstoresresponse.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/listtopicsrequest.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/listtopicsresponse.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/log_logs_pb2.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/log_logs_raw_pb2.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/logclient_core.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/logclient_operator.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/logexception.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/logger_hanlder.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/logitem.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/logrequest.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/logresponse.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/logstore_config_response.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/logtail_config_detail.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/logtail_config_response.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/machine_group_detail.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/machinegroup_response.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/odps_sink.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/oss_sink.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/pluralize.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/project_response.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/pulllog_response.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/putlogsrequest.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/putlogsresponse.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/queriedlog.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/resource_params.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/resource_response.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/scheduled_sql.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/scheduled_sql_response.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/shard_response.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/shipper_config.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/shipper_response.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/sink.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/sql_instance_response.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/substore_config_response.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/tag_response.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/topostore_params.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/topostore_response.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/util.py +0 -0
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun_log_python_sdk.egg-info/SOURCES.txt +0 -0
- {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
- {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
- {aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/setup.cfg +0 -0
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/gethistogramsrequest.py
RENAMED
|
@@ -28,14 +28,14 @@ class GetHistogramsRequest(LogRequest):
|
|
|
28
28
|
:type query: string
|
|
29
29
|
:param query: user defined query
|
|
30
30
|
|
|
31
|
-
:type
|
|
32
|
-
:param
|
|
31
|
+
:type from_time_nano_part: int
|
|
32
|
+
:param from_time_nano_part: nano part of query begin time
|
|
33
33
|
|
|
34
|
-
:type
|
|
35
|
-
:param
|
|
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,
|
|
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.
|
|
47
|
-
self.
|
|
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
|
|
138
|
-
""" Get request
|
|
137
|
+
def get_from_time_nano_part(self):
|
|
138
|
+
""" Get request from_time_nano_part
|
|
139
139
|
|
|
140
|
-
:return: int,
|
|
140
|
+
:return: int, from_time_nano_part
|
|
141
141
|
"""
|
|
142
|
-
return self.
|
|
142
|
+
return self.from_time_nano_part
|
|
143
143
|
|
|
144
|
-
def
|
|
145
|
-
""" Set request
|
|
144
|
+
def set_from_time_nano_part(self, from_time_nano_part):
|
|
145
|
+
""" Set request from_time_nano_part
|
|
146
146
|
|
|
147
|
-
:type
|
|
148
|
-
:param
|
|
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.
|
|
150
|
+
self.from_time_nano_part = from_time_nano_part
|
|
151
151
|
|
|
152
|
-
def
|
|
153
|
-
""" Get request
|
|
152
|
+
def get_to_time_nano_part(self):
|
|
153
|
+
""" Get request to_time_nano_part
|
|
154
154
|
|
|
155
|
-
:return: int,
|
|
155
|
+
:return: int, to_time_nano_part
|
|
156
156
|
"""
|
|
157
|
-
return self.
|
|
157
|
+
return self.to_time_nano_part
|
|
158
158
|
|
|
159
|
-
def
|
|
160
|
-
""" Set request
|
|
159
|
+
def set_to_time_nano_part(self, to_time_nano_part):
|
|
160
|
+
""" Set request to_time_nano_part
|
|
161
161
|
|
|
162
|
-
:type
|
|
163
|
-
:param
|
|
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.
|
|
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
|
|
53
|
-
:param
|
|
52
|
+
:type from_time_nano_part: int
|
|
53
|
+
:param from_time_nano_part: nano part of query begin time
|
|
54
54
|
|
|
55
|
-
:type
|
|
56
|
-
:param
|
|
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,
|
|
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.
|
|
75
|
-
self.
|
|
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
|
|
258
|
-
""" Get request
|
|
257
|
+
def get_from_time_nano_part(self):
|
|
258
|
+
""" Get request from_time_nano_part
|
|
259
259
|
|
|
260
|
-
:return: int,
|
|
260
|
+
:return: int, from_time_nano_part
|
|
261
261
|
"""
|
|
262
|
-
return self.
|
|
262
|
+
return self.from_time_nano_part
|
|
263
263
|
|
|
264
|
-
def
|
|
265
|
-
""" Set request
|
|
264
|
+
def set_from_time_nano_part(self, from_time_nano_part):
|
|
265
|
+
""" Set request from_time_nano_part
|
|
266
266
|
|
|
267
|
-
:type
|
|
268
|
-
:param
|
|
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.
|
|
270
|
+
self.from_time_nano_part = from_time_nano_part
|
|
271
271
|
|
|
272
|
-
def
|
|
273
|
-
""" Get request
|
|
272
|
+
def get_to_time_nano_part(self):
|
|
273
|
+
""" Get request to_time_nano_part
|
|
274
274
|
|
|
275
|
-
:return: int,
|
|
275
|
+
:return: int, to_time_nano_part
|
|
276
276
|
"""
|
|
277
|
-
return self.
|
|
277
|
+
return self.to_time_nano_part
|
|
278
278
|
|
|
279
|
-
def
|
|
280
|
-
""" Set request
|
|
279
|
+
def set_to_time_nano_part(self, to_time_nano_part):
|
|
280
|
+
""" Set request to_time_nano_part
|
|
281
281
|
|
|
282
|
-
:type
|
|
283
|
-
:param
|
|
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.
|
|
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
|
|
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(
|
|
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"' %
|
|
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.
|
|
546
|
-
params['toNs'] = request.
|
|
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,
|
|
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
|
|
601
|
-
:param
|
|
600
|
+
:type from_time_nano_part: int
|
|
601
|
+
:param from_time_nano_part: nano part of query begin time
|
|
602
602
|
|
|
603
|
-
:type
|
|
604
|
-
:param
|
|
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
|
-
|
|
628
|
-
|
|
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':
|
|
643
|
-
'toNs':
|
|
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
|
-
|
|
691
|
-
|
|
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,
|
|
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
|
|
@@ -32,7 +32,7 @@ requirements_py3 = [
|
|
|
32
32
|
'elasticsearch',
|
|
33
33
|
'jmespath',
|
|
34
34
|
'dateparser',
|
|
35
|
-
'protobuf
|
|
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
|
|
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',
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer/consumer_client.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer/exceptions.py
RENAMED
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer/heart_beat.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer/shard_worker.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer_group_request.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/consumer_group_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/cursor_time_response.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/es_migration/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/es_migration/util.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_config_response.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/__init__.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/config_parser.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/etl_util.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/exceptions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/etl_core/settings.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/ext/jupyter_magic.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/ext/syslogclient.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/external_store_config.py
RENAMED
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/getcontextlogsresponse.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/gethistogramsresponse.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/index_config_response.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/ingestion_response.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/listlogstoresrequest.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/listlogstoresresponse.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/listtopicsrequest.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/listtopicsresponse.py
RENAMED
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/log_logs_raw_pb2.py
RENAMED
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/logclient_operator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/logstore_config_response.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/logtail_config_detail.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/logtail_config_response.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/machine_group_detail.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/machinegroup_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/project_response.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/pulllog_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/resource_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/scheduled_sql_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/shipper_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/sql_instance_response.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/substore_config_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/topostore_params.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.8.10 → aliyun-log-python-sdk-0.8.12}/aliyun/log/topostore_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|