aliyun-log-python-sdk 0.9.12__tar.gz → 0.9.13__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.9.12/aliyun_log_python_sdk.egg-info → aliyun_log_python_sdk-0.9.13}/PKG-INFO +6 -6
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/README.md +2 -9
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/__init__.py +1 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/logclient.py +70 -2
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/logclient_operator.py +8 -3
- aliyun_log_python_sdk-0.9.13/aliyun/log/rebuild_index_response.py +60 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/version.py +1 -1
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13/aliyun_log_python_sdk.egg-info}/PKG-INFO +6 -6
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun_log_python_sdk.egg-info/SOURCES.txt +1 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/setup.py +5 -5
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/LICENSE +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/__init__.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/_proto_py2/__init__.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/_proto_py2/log_logs_pb2.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/_proto_py2/log_logs_raw_pb2.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/acl_config.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/acl_response.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/auth.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/common_response.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/consumer/__init__.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/consumer/checkpoint_tracker.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/consumer/config.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/consumer/consumer_client.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/consumer/exceptions.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/consumer/fetched_log_group.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/consumer/heart_beat.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/consumer/shard_worker.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/consumer/tasks.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/consumer/worker.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/consumer_group_request.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/consumer_group_response.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/credentials.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/cursor_response.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/cursor_time_response.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/es_migration/__init__.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/es_migration/doc_logitem_converter.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/es_migration/index_logstore_mappings.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/es_migration/mapping_index_converter.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/es_migration/migration_log.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/es_migration/migration_manager.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/es_migration/migration_response.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/es_migration/migration_task.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/es_migration/util.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_config_response.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_core/__init__.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_core/config_parser.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_core/etl_util.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_core/exceptions.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_core/restrict_config_parser.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_core/runner.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_core/settings.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_core/trans_comp/__init__.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_core/trans_comp/trans_base.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_core/trans_comp/trans_csv.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_core/trans_comp/trans_json.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_core/trans_comp/trans_kv.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_core/trans_comp/trans_lookup.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_core/trans_comp/trans_mv.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_core/trans_comp/trans_regex.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_core/trans_comp/trans_set_field.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_core/transform/__init__.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_core/transform/condition_list.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_core/transform/condition_transform.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_core/transform/condition_util.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_core/transform/transform_base.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_core/transform/transform_list.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_core/transform/transform_meta.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/export_response.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/ext/__init__.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/ext/jupyter_magic.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/ext/syslogclient.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/external_store_config.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/external_store_config_response.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/getcontextlogsresponse.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/gethistogramsrequest.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/gethistogramsresponse.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/getlogsrequest.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/getlogsresponse.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/histogram.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/index_config.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/index_config_response.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/ingestion_response.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/job.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/listlogstoresrequest.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/listlogstoresresponse.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/listtopicsrequest.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/listtopicsresponse.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/log_logs_pb2.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/log_logs_raw_pb2.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/logclient_core.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/logexception.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/logger_hanlder.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/logitem.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/logrequest.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/logresponse.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/logstore_config_response.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/logtail_config_detail.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/logtail_config_response.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/machine_group_detail.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/machinegroup_response.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/odps_sink.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/oss_sink.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/pluralize.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/project_response.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/proto.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/pulllog_response.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/putlogsrequest.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/putlogsresponse.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/queriedlog.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/resource_params.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/resource_response.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/scheduled_sql.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/scheduled_sql_response.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/shard_response.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/shipper_config.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/shipper_response.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/sink.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/sql_instance_response.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/substore_config_response.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/tag_response.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/topostore_params.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/topostore_response.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/util.py +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun_log_python_sdk.egg-info/dependency_links.txt +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun_log_python_sdk.egg-info/requires.txt +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun_log_python_sdk.egg-info/top_level.txt +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/setup.cfg +0 -0
- {aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/tests/test_alert.py +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: aliyun-log-python-sdk
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.13
|
|
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
|
Classifier: Development Status :: 5 - Production/Stable
|
|
8
8
|
Classifier: License :: OSI Approved :: MIT License
|
|
9
9
|
Classifier: Operating System :: OS Independent
|
|
10
|
-
Classifier: Programming Language :: Python :: 2.6
|
|
11
10
|
Classifier: Programming Language :: Python :: 2.7
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.3
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.4
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.5
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
16
11
|
Classifier: Programming Language :: Python :: 3.7
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
17
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
18
18
|
License-File: LICENSE
|
|
19
19
|
Requires-Dist: six
|
|
@@ -30,15 +30,8 @@ Don't want to write code? Try the [CLI](http://aliyun-log-cli.readthedocs.io/en/
|
|
|
30
30
|
|
|
31
31
|
### Supported Python:
|
|
32
32
|
|
|
33
|
-
1. Python 2.
|
|
34
|
-
2. Python
|
|
35
|
-
3. Python 3.3
|
|
36
|
-
4. Python 3.4
|
|
37
|
-
5. Python 3.5
|
|
38
|
-
6. Python 3.6
|
|
39
|
-
7. Python 3.7
|
|
40
|
-
8. Pypy2
|
|
41
|
-
9. Pypy3
|
|
33
|
+
1. Python 2 with version >= 2.7
|
|
34
|
+
2. Python 3 with version >= 3.7
|
|
42
35
|
|
|
43
36
|
### Supported Log Service API
|
|
44
37
|
1. Log Service API 0.6
|
|
@@ -34,6 +34,7 @@ from .shipper_response import *
|
|
|
34
34
|
from .common_response import *
|
|
35
35
|
from .external_store_config_response import *
|
|
36
36
|
from .proto import LogGroupRaw as LogGroup
|
|
37
|
+
from .rebuild_index_response import *
|
|
37
38
|
|
|
38
39
|
# logging handler
|
|
39
40
|
from .logger_hanlder import SimpleLogHandler, QueuedLogHandler, LogFields, UwsgiQueuedLogHandler
|
|
@@ -37,6 +37,7 @@ from .logstore_config_response import *
|
|
|
37
37
|
from .substore_config_response import *
|
|
38
38
|
from .logtail_config_response import *
|
|
39
39
|
from .machinegroup_response import *
|
|
40
|
+
from .rebuild_index_response import *
|
|
40
41
|
from .project_response import *
|
|
41
42
|
from .pulllog_response import PullLogResponse
|
|
42
43
|
from .putlogsresponse import PutLogsResponse
|
|
@@ -3077,7 +3078,7 @@ class LogClient(object):
|
|
|
3077
3078
|
to_client = self
|
|
3078
3079
|
return copy_project(self, to_client, from_project, to_project, copy_machine_group)
|
|
3079
3080
|
|
|
3080
|
-
def copy_logstore(self, from_project, from_logstore, to_logstore, to_project=None, to_client=None, to_region_endpoint=None):
|
|
3081
|
+
def copy_logstore(self, from_project, from_logstore, to_logstore, to_project=None, to_client=None, to_region_endpoint=None, keep_config_name=False):
|
|
3081
3082
|
"""
|
|
3082
3083
|
copy logstore, index, logtail config to target logstore, machine group are not included yet.
|
|
3083
3084
|
the target logstore will be crated if not existing
|
|
@@ -3102,7 +3103,7 @@ class LogClient(object):
|
|
|
3102
3103
|
|
|
3103
3104
|
:return:
|
|
3104
3105
|
"""
|
|
3105
|
-
return copy_logstore(self, from_project, from_logstore, to_logstore, to_project=to_project, to_client=to_client, to_region_endpoint=to_region_endpoint)
|
|
3106
|
+
return copy_logstore(self, from_project, from_logstore, to_logstore, to_project=to_project, to_client=to_client, to_region_endpoint=to_region_endpoint, keep_config_name=keep_config_name)
|
|
3106
3107
|
|
|
3107
3108
|
def list_project(self, offset=0, size=100, project_name_pattern=None, resource_group_id=''):
|
|
3108
3109
|
""" list the project
|
|
@@ -5797,6 +5798,73 @@ class LogClient(object):
|
|
|
5797
5798
|
(resp, header) = self._send("POST", project, body_str, resource, params, headers)
|
|
5798
5799
|
return CreateEntityResponse(header, resp)
|
|
5799
5800
|
|
|
5801
|
+
def create_rebuild_index(self, project, logstore, job_name, display_name, from_time, to_time):
|
|
5802
|
+
"""Create a job that rebuild index for a logstore
|
|
5803
|
+
type: (string, string, string, string, int, int) -> CreateRebuildIndexResponse
|
|
5804
|
+
|
|
5805
|
+
:type project: string
|
|
5806
|
+
:param project: the project name
|
|
5807
|
+
|
|
5808
|
+
:type logstore: string
|
|
5809
|
+
:param logstore: the logstore name
|
|
5810
|
+
|
|
5811
|
+
:type job_name: string
|
|
5812
|
+
:param job_name: job name
|
|
5813
|
+
|
|
5814
|
+
:type display_name: string
|
|
5815
|
+
:param display_name: display name for the job
|
|
5816
|
+
|
|
5817
|
+
:type from_time: int
|
|
5818
|
+
:param from_time: from time, in unix timestamp format, eg 1736156803
|
|
5819
|
+
|
|
5820
|
+
|
|
5821
|
+
:type to_time: int
|
|
5822
|
+
:param to_time: to time, in unix timestamp format, eg 1736156803, to_time should not large than the unix_timestamp before 900 seconds ago
|
|
5823
|
+
|
|
5824
|
+
:return: CreateRebuildIndexResponse
|
|
5825
|
+
|
|
5826
|
+
:raise: LogException
|
|
5827
|
+
"""
|
|
5828
|
+
|
|
5829
|
+
params = {}
|
|
5830
|
+
headers = {"Content-Type": "application/json"}
|
|
5831
|
+
body = {
|
|
5832
|
+
"configuration":
|
|
5833
|
+
{
|
|
5834
|
+
"fromTime": from_time,
|
|
5835
|
+
"toTime": to_time,
|
|
5836
|
+
"logstore": logstore,
|
|
5837
|
+
},
|
|
5838
|
+
"displayName": display_name,
|
|
5839
|
+
"name": job_name,
|
|
5840
|
+
"recyclable": False,
|
|
5841
|
+
"type": "RebuildIndex"
|
|
5842
|
+
}
|
|
5843
|
+
data = six.b(json.dumps(body))
|
|
5844
|
+
|
|
5845
|
+
resource = "/jobs"
|
|
5846
|
+
(resp, header) = self._send("POST", project, data, resource, params, headers)
|
|
5847
|
+
return CreateRebuildIndexResponse(header, resp)
|
|
5848
|
+
|
|
5849
|
+
def get_rebuild_index(self, project, job_name):
|
|
5850
|
+
"""get rebuild index by the given job_name
|
|
5851
|
+
|
|
5852
|
+
:type project: string
|
|
5853
|
+
:param project: the project name
|
|
5854
|
+
|
|
5855
|
+
:type job_name: string
|
|
5856
|
+
:param job_name: the job name
|
|
5857
|
+
|
|
5858
|
+
:return: GetRebuildIndexResponse
|
|
5859
|
+
|
|
5860
|
+
:raise: LogException
|
|
5861
|
+
"""
|
|
5862
|
+
headers = {}
|
|
5863
|
+
params = {}
|
|
5864
|
+
resource = "/jobs/" + job_name
|
|
5865
|
+
(resp, header) = self._send("GET", project, None, resource, params, headers)
|
|
5866
|
+
return GetRebuildIndexResponse(header, resp)
|
|
5867
|
+
|
|
5800
5868
|
# make_lcrud_methods(LogClient, 'job', name_field='name', root_resource='/jobs', entities_key='results')
|
|
5801
5869
|
# make_lcrud_methods(LogClient, 'dashboard', name_field='dashboardName')
|
|
5802
5870
|
# make_lcrud_methods(LogClient, 'alert', name_field='name', root_resource='/jobs', entities_key='results', job_type="Alert")
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/logclient_operator.py
RENAMED
|
@@ -186,7 +186,7 @@ def copy_project(from_client, to_client, from_project, to_project, copy_machine_
|
|
|
186
186
|
break
|
|
187
187
|
|
|
188
188
|
|
|
189
|
-
def copy_logstore(from_client, from_project, from_logstore, to_logstore, to_project=None, to_client=None, to_region_endpoint=None):
|
|
189
|
+
def copy_logstore(from_client, from_project, from_logstore, to_logstore, to_project=None, to_client=None, to_region_endpoint=None, keep_config_name=False):
|
|
190
190
|
"""
|
|
191
191
|
copy logstore, index, logtail config to target logstore, machine group are not included yet.
|
|
192
192
|
the target logstore will be crated if not existing
|
|
@@ -211,6 +211,9 @@ def copy_logstore(from_client, from_project, from_logstore, to_logstore, to_proj
|
|
|
211
211
|
|
|
212
212
|
:type to_region_endpoint: string
|
|
213
213
|
:param to_region_endpoint: target region, use it to operate on the "to_project" while "to_client" not be specified
|
|
214
|
+
|
|
215
|
+
:type keep_config_name: bool
|
|
216
|
+
:param keep_config_name: use the same logtail config name as the source one, note that the config name must be unique in the same project
|
|
214
217
|
|
|
215
218
|
:return:
|
|
216
219
|
"""
|
|
@@ -299,8 +302,10 @@ def copy_logstore(from_client, from_project, from_logstore, to_logstore, to_proj
|
|
|
299
302
|
config = ret.logtail_config
|
|
300
303
|
if config.logstore_name != from_logstore:
|
|
301
304
|
continue
|
|
302
|
-
|
|
303
|
-
|
|
305
|
+
if keep_config_name:
|
|
306
|
+
config.config_name = config_name
|
|
307
|
+
else:
|
|
308
|
+
config.config_name = to_logstore + '_' + config_name
|
|
304
309
|
config.logstore_name = to_logstore
|
|
305
310
|
ret = to_client.create_logtail_config(to_project, config)
|
|
306
311
|
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
from .logresponse import LogResponse
|
|
2
|
+
|
|
3
|
+
__all__ = ['CreateRebuildIndexResponse', 'GetRebuildIndexResponse']
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class CreateRebuildIndexResponse(LogResponse):
|
|
7
|
+
""" Response of create_rebuild_index
|
|
8
|
+
|
|
9
|
+
:type resp: dict
|
|
10
|
+
:param resp: CreateRebuildIndexResponse HTTP response body
|
|
11
|
+
|
|
12
|
+
:type header: dict
|
|
13
|
+
:param header: CreateRebuildIndexResponse HTTP response header
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
def __init__(self, header, resp):
|
|
17
|
+
LogResponse.__init__(self, header, resp)
|
|
18
|
+
|
|
19
|
+
def log_print(self):
|
|
20
|
+
print('CreateRebuildIndexResponse:')
|
|
21
|
+
print('headers:', self.get_all_headers())
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class GetRebuildIndexResponse(LogResponse):
|
|
25
|
+
""" The response of the get_rebuild_index.
|
|
26
|
+
|
|
27
|
+
:type resp: dict
|
|
28
|
+
:param resp: GetRebuildIndexResponse HTTP response body
|
|
29
|
+
|
|
30
|
+
:type header: dict
|
|
31
|
+
:param header: GetRebuildIndexResponse HTTP response header
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
def __init__(self, header, resp):
|
|
35
|
+
LogResponse.__init__(self, header, resp)
|
|
36
|
+
self._status = resp['status']
|
|
37
|
+
self._execution_details = resp.get('executionDetails')
|
|
38
|
+
self._configuration = resp['configuration']
|
|
39
|
+
|
|
40
|
+
def get_status(self):
|
|
41
|
+
"""job status
|
|
42
|
+
"""
|
|
43
|
+
return self._status
|
|
44
|
+
|
|
45
|
+
def get_execution_details(self):
|
|
46
|
+
"""job execution details
|
|
47
|
+
"""
|
|
48
|
+
return self._execution_details
|
|
49
|
+
|
|
50
|
+
def get_configuration(self):
|
|
51
|
+
"""job configuration
|
|
52
|
+
"""
|
|
53
|
+
return self._configuration
|
|
54
|
+
|
|
55
|
+
def log_print(self):
|
|
56
|
+
print('GetRebuildIndexResponse:')
|
|
57
|
+
print('headers:', self.get_all_headers())
|
|
58
|
+
print('status: ', self.get_status())
|
|
59
|
+
print('execution_details: ', self.get_execution_details())
|
|
60
|
+
print('configuration: ', self.get_configuration())
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: aliyun-log-python-sdk
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.13
|
|
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
|
Classifier: Development Status :: 5 - Production/Stable
|
|
8
8
|
Classifier: License :: OSI Approved :: MIT License
|
|
9
9
|
Classifier: Operating System :: OS Independent
|
|
10
|
-
Classifier: Programming Language :: Python :: 2.6
|
|
11
10
|
Classifier: Programming Language :: Python :: 2.7
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.3
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.4
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.5
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
16
11
|
Classifier: Programming Language :: Python :: 3.7
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
17
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
18
18
|
License-File: LICENSE
|
|
19
19
|
Requires-Dist: six
|
|
@@ -54,6 +54,7 @@ aliyun/log/pulllog_response.py
|
|
|
54
54
|
aliyun/log/putlogsrequest.py
|
|
55
55
|
aliyun/log/putlogsresponse.py
|
|
56
56
|
aliyun/log/queriedlog.py
|
|
57
|
+
aliyun/log/rebuild_index_response.py
|
|
57
58
|
aliyun/log/resource_params.py
|
|
58
59
|
aliyun/log/resource_response.py
|
|
59
60
|
aliyun/log/scheduled_sql.py
|
|
@@ -87,13 +87,13 @@ classifiers = [
|
|
|
87
87
|
'Development Status :: 5 - Production/Stable',
|
|
88
88
|
'License :: OSI Approved :: MIT License',
|
|
89
89
|
'Operating System :: OS Independent',
|
|
90
|
-
'Programming Language :: Python :: 2.6',
|
|
91
90
|
'Programming Language :: Python :: 2.7',
|
|
92
|
-
'Programming Language :: Python :: 3.3',
|
|
93
|
-
'Programming Language :: Python :: 3.4',
|
|
94
|
-
'Programming Language :: Python :: 3.5',
|
|
95
|
-
'Programming Language :: Python :: 3.6',
|
|
96
91
|
'Programming Language :: Python :: 3.7',
|
|
92
|
+
'Programming Language :: Python :: 3.8',
|
|
93
|
+
'Programming Language :: Python :: 3.9',
|
|
94
|
+
'Programming Language :: Python :: 3.10',
|
|
95
|
+
'Programming Language :: Python :: 3.11',
|
|
96
|
+
'Programming Language :: Python :: 3.12',
|
|
97
97
|
'Programming Language :: Python :: Implementation :: PyPy',
|
|
98
98
|
]
|
|
99
99
|
|
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/_proto_py2/__init__.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/_proto_py2/log_logs_pb2.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.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/consumer/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/consumer/consumer_client.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/consumer/exceptions.py
RENAMED
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/consumer/heart_beat.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/consumer/shard_worker.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/consumer_group_request.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/consumer_group_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/cursor_time_response.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/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.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/es_migration/util.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_config_response.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_core/__init__.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_core/config_parser.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_core/etl_util.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/etl_core/exceptions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/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.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/ext/jupyter_magic.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/ext/syslogclient.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/external_store_config.py
RENAMED
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/getcontextlogsresponse.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/gethistogramsrequest.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/gethistogramsresponse.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/index_config_response.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/ingestion_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/listlogstoresrequest.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/listlogstoresresponse.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/listtopicsrequest.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/listtopicsresponse.py
RENAMED
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/log_logs_raw_pb2.py
RENAMED
|
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.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/logstore_config_response.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/logtail_config_detail.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/logtail_config_response.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/machine_group_detail.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/machinegroup_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/project_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/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.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/resource_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/scheduled_sql_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/shipper_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/sql_instance_response.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/substore_config_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/topostore_params.py
RENAMED
|
File without changes
|
{aliyun-log-python-sdk-0.9.12 → aliyun_log_python_sdk-0.9.13}/aliyun/log/topostore_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|