aliyun-log-python-sdk 0.9.45__tar.gz → 0.9.47__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.47/MANIFEST.in +2 -0
- {aliyun_log_python_sdk-0.9.45/aliyun_log_python_sdk.egg-info → aliyun_log_python_sdk-0.9.47}/PKG-INFO +3 -1
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/README.md +12 -1
- aliyun_log_python_sdk-0.9.45/aliyun/log/ext/__init__.py → aliyun_log_python_sdk-0.9.47/aliyun/__init__.pyi +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/__init__.py +4 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/__init__.pyi +60 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/auth.py +8 -14
- aliyun_log_python_sdk-0.9.47/aliyun/log/consumer/__init__.pyi +3 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/consumer/config.pyi +40 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/consumer/py.typed +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/consumer/tasks.py +1 -2
- aliyun_log_python_sdk-0.9.47/aliyun/log/consumer/tasks.pyi +23 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/consumer/worker.pyi +28 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/credentials.pyi +18 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/cursor_response.pyi +9 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/cursor_time_response.pyi +9 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/deletelogsv2request.py +114 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/deletelogsv2request.pyi +17 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/deletelogsv2response.py +23 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/deletelogsv2response.pyi +10 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/ext/__init__.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/external_store_config.py +1 -1
- aliyun_log_python_sdk-0.9.47/aliyun/log/gethistogramsrequest.pyi +26 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/gethistogramsresponse.pyi +13 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/getlogsrequest.pyi +42 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/getlogsresponse.pyi +72 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/index_config.pyi +31 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/listlogstoresrequest.pyi +7 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/listlogstoresresponse.pyi +12 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/listtopicsrequest.pyi +13 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/listtopicsresponse.pyi +12 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/logclient.py +190 -33
- aliyun_log_python_sdk-0.9.47/aliyun/log/logclient.pyi +290 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/logclient_operator.py +1 -2
- aliyun_log_python_sdk-0.9.47/aliyun/log/logexception.pyi +13 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/logitem.pyi +16 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/logresponse.pyi +12 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/machine_group_detail.pyi +14 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/metering_mode_response.pyi +23 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/multimodal_config_response.pyi +15 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/object_response.pyi +19 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/pulllog_response.pyi +34 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/putlogsrequest.pyi +25 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/putlogsresponse.pyi +8 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/queriedlog.pyi +12 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/shipper_config.pyi +15 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/store_view.pyi +39 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/store_view_response.pyi +30 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/submit_async_sql_request.pyi +22 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/updatelogsrequest.py +128 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/updatelogsrequest.pyi +21 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/updatelogsresponse.py +23 -0
- aliyun_log_python_sdk-0.9.47/aliyun/log/updatelogsresponse.pyi +10 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/version.py +1 -1
- aliyun_log_python_sdk-0.9.47/aliyun/py.typed +1 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47/aliyun_log_python_sdk.egg-info}/PKG-INFO +3 -1
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun_log_python_sdk.egg-info/SOURCES.txt +48 -3
- aliyun_log_python_sdk-0.9.47/aliyun_log_python_sdk.egg-info/dependency_links.txt +1 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun_log_python_sdk.egg-info/requires.txt +2 -0
- aliyun_log_python_sdk-0.9.47/pyproject.toml +6 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/setup.py +9 -0
- aliyun_log_python_sdk-0.9.45/tests/test_alert.py +0 -30
- aliyun_log_python_sdk-0.9.45/tests/test_util.py +0 -16
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/LICENSE +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/__init__.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/_proto_py2/__init__.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/_proto_py2/log_logs_pb2.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/_proto_py2/log_logs_raw_pb2.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/acl_config.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/acl_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/async_sql_pb2.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/async_sql_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/common_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/compress.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/consumer/__init__.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/consumer/checkpoint_tracker.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/consumer/config.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/consumer/consumer_client.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/consumer/exceptions.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/consumer/fetched_log_group.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/consumer/heart_beat.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/consumer/preprocessor.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/consumer/shard_worker.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/consumer/worker.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/consumer_group_request.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/consumer_group_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/credentials.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/cursor_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/cursor_time_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/delete_async_sql_request.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/deletelogsrequest.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/deletelogssresponse.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/es_migration/__init__.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/es_migration/doc_logitem_converter.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/es_migration/index_logstore_mappings.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/es_migration/mapping_index_converter.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/es_migration/migration_log.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/es_migration/migration_manager.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/es_migration/migration_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/es_migration/migration_task.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/es_migration/util.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/etl_config_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/etl_core/__init__.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/etl_core/config_parser.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/etl_core/etl_util.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/etl_core/exceptions.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/etl_core/restrict_config_parser.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/etl_core/runner.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/etl_core/settings.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/etl_core/trans_comp/__init__.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/etl_core/trans_comp/trans_base.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/etl_core/trans_comp/trans_csv.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/etl_core/trans_comp/trans_json.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/etl_core/trans_comp/trans_kv.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/etl_core/trans_comp/trans_lookup.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/etl_core/trans_comp/trans_mv.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/etl_core/trans_comp/trans_regex.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/etl_core/trans_comp/trans_set_field.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/etl_core/transform/__init__.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/etl_core/transform/condition_list.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/etl_core/transform/condition_transform.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/etl_core/transform/condition_util.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/etl_core/transform/transform_base.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/etl_core/transform/transform_list.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/etl_core/transform/transform_meta.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/export_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/ext/jupyter_magic.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/ext/syslogclient.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/external_store_config_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/get_async_sql_request.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/getcontextlogsresponse.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/getdeletelogsstatusrequest.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/getdeletelogsstatusresponse.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/gethistogramsrequest.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/gethistogramsresponse.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/getlogsrequest.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/getlogsresponse.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/histogram.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/index_config.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/index_config_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/ingestion_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/job.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/listdeletelogsstasksrequest.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/listdeletelogsstasksresponse.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/listlogstoresrequest.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/listlogstoresresponse.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/listtopicsrequest.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/listtopicsresponse.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/log_logs_pb2.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/log_logs_raw_pb2.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/logclient_core.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/logexception.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/logger_hanlder.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/logitem.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/logrequest.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/logresponse.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/logstore_config_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/logtail_config_detail.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/logtail_config_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/logtail_pipeline_config_detail.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/logtail_pipeline_config_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/machine_group_detail.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/machinegroup_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/metering_mode_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/multimodal_config_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/object_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/odps_sink.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/oss_sink.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/pluralize.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/project_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/proto.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/pulllog_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/putlogsrequest.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/putlogsresponse.py +0 -0
- /aliyun_log_python_sdk-0.9.45/aliyun_log_python_sdk.egg-info/dependency_links.txt → /aliyun_log_python_sdk-0.9.47/aliyun/log/py.typed +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/queriedlog.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/rebuild_index_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/resource_params.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/resource_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/scheduled_sql.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/scheduled_sql_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/shard_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/shipper_config.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/shipper_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/sink.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/sql_instance_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/store_view.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/store_view_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/submit_async_sql_request.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/substore_config_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/tag_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/topostore_params.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/topostore_response.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/util.py +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun_log_python_sdk.egg-info/top_level.txt +0 -0
- {aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: aliyun-log-python-sdk
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.47
|
|
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
|
|
@@ -26,6 +26,8 @@ Requires-Dist: protobuf<6.0.0,>=3.20.3
|
|
|
26
26
|
Requires-Dist: lz4
|
|
27
27
|
Provides-Extra: test
|
|
28
28
|
Requires-Dist: pytest; extra == "test"
|
|
29
|
+
Requires-Dist: pytest-mock; extra == "test"
|
|
30
|
+
Requires-Dist: responses; extra == "test"
|
|
29
31
|
Requires-Dist: lz4; extra == "test"
|
|
30
32
|
Requires-Dist: virtualenv; extra == "test"
|
|
31
33
|
Requires-Dist: zstandard; extra == "test"
|
|
@@ -2,11 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
[](http://aliyun-log-python-sdk.readthedocs.io/?badge=latest)
|
|
4
4
|
[](https://badge.fury.io/py/aliyun-log-python-sdk)
|
|
5
|
-
[](https://github.com/aliyun/aliyun-log-python-sdk/actions/workflows/build.yaml)
|
|
6
|
+
[](https://github.com/aliyun/aliyun-log-python-sdk/actions/workflows/py2-build.yaml)
|
|
6
7
|
[](https://pypi.python.org/pypi/aliyun-log-python-sdk/)
|
|
7
8
|
[](https://pypi.python.org/pypi/aliyun-log-python-sdk/)
|
|
8
9
|
[](https://github.com/aliyun/aliyun-log-python-sdk/blob/master/LICENSE)
|
|
9
10
|
|
|
11
|
+
### CI status
|
|
12
|
+
|
|
13
|
+
| Python | Status |
|
|
14
|
+
|---|---|
|
|
15
|
+
| 2.7 | [](https://github.com/aliyun/aliyun-log-python-sdk/actions/workflows/py2-build.yaml?query=branch%3Amaster) |
|
|
16
|
+
| 3.6 | [](https://github.com/aliyun/aliyun-log-python-sdk/actions/workflows/py2-build.yaml?query=branch%3Amaster) |
|
|
17
|
+
| 3.7 | [](https://github.com/aliyun/aliyun-log-python-sdk/actions/workflows/py2-build.yaml?query=branch%3Amaster) |
|
|
18
|
+
| 3.8 | [](https://github.com/aliyun/aliyun-log-python-sdk/actions/workflows/build.yaml?query=branch%3Amaster) |
|
|
19
|
+
| 3.12 | [](https://github.com/aliyun/aliyun-log-python-sdk/actions/workflows/build.yaml?query=branch%3Amaster) |
|
|
20
|
+
|
|
10
21
|
[中文版README](https://github.com/aliyun/aliyun-log-python-sdk/blob/master/README_CN.md)
|
|
11
22
|
|
|
12
23
|
## Introduction
|
|
File without changes
|
|
@@ -39,6 +39,10 @@ from .proto import LogGroupRaw as LogGroup
|
|
|
39
39
|
from .rebuild_index_response import *
|
|
40
40
|
from .deletelogsrequest import *
|
|
41
41
|
from .deletelogssresponse import *
|
|
42
|
+
from .deletelogsv2request import *
|
|
43
|
+
from .deletelogsv2response import *
|
|
44
|
+
from .updatelogsrequest import *
|
|
45
|
+
from .updatelogsresponse import *
|
|
42
46
|
from .getdeletelogsstatusrequest import *
|
|
43
47
|
from .getdeletelogsstatusresponse import *
|
|
44
48
|
from .listdeletelogsstasksrequest import *
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
from .logclient import LogClient as LogClient
|
|
2
|
+
from .logexception import LogException as LogException
|
|
3
|
+
from .gethistogramsrequest import GetHistogramsRequest as GetHistogramsRequest
|
|
4
|
+
from .getlogsrequest import GetLogsRequest as GetLogsRequest, GetProjectLogsRequest as GetProjectLogsRequest
|
|
5
|
+
from .index_config import IndexConfig as IndexConfig, IndexKeyConfig as IndexKeyConfig, IndexLineConfig as IndexLineConfig
|
|
6
|
+
from .listtopicsrequest import ListTopicsRequest as ListTopicsRequest
|
|
7
|
+
from .listlogstoresrequest import ListLogstoresRequest as ListLogstoresRequest
|
|
8
|
+
from .logtail_config_detail import PluginConfigDetail as PluginConfigDetail, SeperatorFileConfigDetail as SeperatorFileConfigDetail, SimpleFileConfigDetail as SimpleFileConfigDetail, FullRegFileConfigDetail as FullRegFileConfigDetail, JsonFileConfigDetail as JsonFileConfigDetail, ApsaraFileConfigDetail as ApsaraFileConfigDetail, SyslogConfigDetail as SyslogConfigDetail, LogtailConfigGenerator as LogtailConfigGenerator, CommonRegLogConfigDetail as CommonRegLogConfigDetail
|
|
9
|
+
from .logtail_pipeline_config_detail import LogtailPipelineConfigDetail as LogtailPipelineConfigDetail
|
|
10
|
+
from .logtail_pipeline_config_response import CreateLogtailPipelineConfigResponse as CreateLogtailPipelineConfigResponse, DeleteLogtailPipelineConfigResponse as DeleteLogtailPipelineConfigResponse, GetLogtailPipelineConfigResponse as GetLogtailPipelineConfigResponse, UpdateLogtailPipelineConfigResponse as UpdateLogtailPipelineConfigResponse, ListLogtailPipelineConfigResponse as ListLogtailPipelineConfigResponse
|
|
11
|
+
from .machine_group_detail import MachineGroupDetail as MachineGroupDetail
|
|
12
|
+
from .putlogsrequest import PutLogsRequest as PutLogsRequest
|
|
13
|
+
from .shipper_config import ShipperTask as ShipperTask, OssShipperConfig as OssShipperConfig, OdpsShipperConfig as OdpsShipperConfig
|
|
14
|
+
from .version import __version__ as __version__
|
|
15
|
+
from .logitem import LogItem as LogItem
|
|
16
|
+
from .consumer_group_request import CreateConsumerGroupRequest as CreateConsumerGroupRequest, ConsumerGroupGetCheckPointRequest as ConsumerGroupGetCheckPointRequest, ConsumerGroupHeartBeatRequest as ConsumerGroupHeartBeatRequest, ConsumerGroupUpdateCheckPointRequest as ConsumerGroupUpdateCheckPointRequest
|
|
17
|
+
from .external_store_config import ExternalStoreConfig as ExternalStoreConfig, ExternalStoreConfigBase as ExternalStoreConfigBase, ExternalStoreCsvConfig as ExternalStoreCsvConfig, ExternalStoreOssConfig as ExternalStoreOssConfig
|
|
18
|
+
|
|
19
|
+
from .consumer_group_response import ConsumerGroupEntity as ConsumerGroupEntity, ConsumerGroupCheckPointResponse as ConsumerGroupCheckPointResponse, ConsumerGroupHeartBeatResponse as ConsumerGroupHeartBeatResponse, ConsumerGroupUpdateCheckPointResponse as ConsumerGroupUpdateCheckPointResponse, CreateConsumerGroupResponse as CreateConsumerGroupResponse, DeleteConsumerGroupResponse as DeleteConsumerGroupResponse, ListConsumerGroupResponse as ListConsumerGroupResponse, UpdateConsumerGroupResponse as UpdateConsumerGroupResponse
|
|
20
|
+
from .cursor_response import GetCursorResponse as GetCursorResponse
|
|
21
|
+
from .cursor_time_response import GetCursorTimeResponse as GetCursorTimeResponse
|
|
22
|
+
from .gethistogramsresponse import GetHistogramsResponse as GetHistogramsResponse
|
|
23
|
+
from .getlogsresponse import GetLogsResponse as GetLogsResponse
|
|
24
|
+
from .histogram import Histogram as Histogram
|
|
25
|
+
from .queriedlog import QueriedLog as QueriedLog
|
|
26
|
+
from .index_config_response import CreateIndexResponse as CreateIndexResponse, UpdateIndexResponse as UpdateIndexResponse, DeleteIndexResponse as DeleteIndexResponse, GetIndexResponse as GetIndexResponse
|
|
27
|
+
from .listlogstoresresponse import ListLogstoresResponse as ListLogstoresResponse
|
|
28
|
+
from .listtopicsresponse import ListTopicsResponse as ListTopicsResponse
|
|
29
|
+
from .logresponse import LogResponse as LogResponse
|
|
30
|
+
from .logtail_config_response import CreateLogtailConfigResponse as CreateLogtailConfigResponse, DeleteLogtailConfigResponse as DeleteLogtailConfigResponse, GetLogtailConfigResponse as GetLogtailConfigResponse, UpdateLogtailConfigResponse as UpdateLogtailConfigResponse, ListLogtailConfigResponse as ListLogtailConfigResponse
|
|
31
|
+
from .machinegroup_response import CreateMachineGroupResponse as CreateMachineGroupResponse, DeleteMachineGroupResponse as DeleteMachineGroupResponse, GetMachineGroupResponse as GetMachineGroupResponse, UpdateMachineGroupResponse as UpdateMachineGroupResponse, ListMachineGroupResponse as ListMachineGroupResponse, ListMachinesResponse as ListMachinesResponse, ApplyConfigToMachineGroupResponse as ApplyConfigToMachineGroupResponse, RemoveConfigToMachineGroupResponse as RemoveConfigToMachineGroupResponse, GetMachineGroupAppliedConfigResponse as GetMachineGroupAppliedConfigResponse, GetConfigAppliedMachineGroupsResponse as GetConfigAppliedMachineGroupsResponse
|
|
32
|
+
from .project_response import CreateProjectResponse as CreateProjectResponse, UpdateProjectResponse as UpdateProjectResponse, DeleteProjectResponse as DeleteProjectResponse, GetProjectResponse as GetProjectResponse, ListProjectResponse as ListProjectResponse, GetProjectTagsResponse as GetProjectTagsResponse
|
|
33
|
+
from .pulllog_response import PullLogResponse as PullLogResponse
|
|
34
|
+
from .shard_response import ListShardResponse as ListShardResponse, DeleteShardResponse as DeleteShardResponse
|
|
35
|
+
from .shipper_response import CreateShipperResponse as CreateShipperResponse, UpdateShipperResponse as UpdateShipperResponse, DeleteShipperResponse as DeleteShipperResponse, GetShipperConfigResponse as GetShipperConfigResponse, ListShipperResponse as ListShipperResponse, GetShipperTasksResponse as GetShipperTasksResponse, RetryShipperTasksResponse as RetryShipperTasksResponse
|
|
36
|
+
from .common_response import CreateEntityResponse as CreateEntityResponse, UpdateEntityResponse as UpdateEntityResponse, DeleteEntityResponse as DeleteEntityResponse, GetEntityResponse as GetEntityResponse, ListEntityResponse as ListEntityResponse
|
|
37
|
+
from .external_store_config_response import CreateExternalStoreResponse as CreateExternalStoreResponse, DeleteExternalStoreResponse as DeleteExternalStoreResponse, GetExternalStoreResponse as GetExternalStoreResponse, UpdateExternalStoreResponse as UpdateExternalStoreResponse, ListExternalStoreResponse as ListExternalStoreResponse
|
|
38
|
+
from .proto import LogGroupRaw as LogGroup
|
|
39
|
+
from .rebuild_index_response import CreateRebuildIndexResponse as CreateRebuildIndexResponse, GetRebuildIndexResponse as GetRebuildIndexResponse
|
|
40
|
+
from .deletelogsrequest import DeleteLogsRequest as DeleteLogsRequest
|
|
41
|
+
from .deletelogssresponse import DeleteLogsResponse as DeleteLogsResponse
|
|
42
|
+
from .deletelogsv2request import DeleteLogsV2Request as DeleteLogsV2Request
|
|
43
|
+
from .deletelogsv2response import DeleteLogsV2Response as DeleteLogsV2Response
|
|
44
|
+
from .updatelogsrequest import UpdateLogsRequest as UpdateLogsRequest
|
|
45
|
+
from .updatelogsresponse import UpdateLogsResponse as UpdateLogsResponse
|
|
46
|
+
from .getdeletelogsstatusrequest import GetDeleteLogsStatusRequest as GetDeleteLogsStatusRequest
|
|
47
|
+
from .getdeletelogsstatusresponse import GetDeleteLogsStatusResponse as GetDeleteLogsStatusResponse
|
|
48
|
+
from .listdeletelogsstasksrequest import ListDeleteLogsTasksRequest as ListDeleteLogsTasksRequest
|
|
49
|
+
from .listdeletelogsstasksresponse import ListDeleteLogsTasksResponse as ListDeleteLogsTasksResponse
|
|
50
|
+
from .logger_hanlder import SimpleLogHandler as SimpleLogHandler, QueuedLogHandler as QueuedLogHandler, LogFields as LogFields, UwsgiQueuedLogHandler as UwsgiQueuedLogHandler
|
|
51
|
+
from .metering_mode_response import GetLogStoreMeteringModeResponse as GetLogStoreMeteringModeResponse, \
|
|
52
|
+
GetMetricStoreMeteringModeResponse as GetMetricStoreMeteringModeResponse, \
|
|
53
|
+
UpdateLogStoreMeteringModeResponse as UpdateLogStoreMeteringModeResponse, UpdateMetricStoreMeteringModeResponse as UpdateMetricStoreMeteringModeResponse
|
|
54
|
+
from .multimodal_config_response import GetLogStoreMultimodalConfigurationResponse as GetLogStoreMultimodalConfigurationResponse, \
|
|
55
|
+
PutLogStoreMultimodalConfigurationResponse as PutLogStoreMultimodalConfigurationResponse
|
|
56
|
+
from .object_response import PutObjectResponse as PutObjectResponse, GetObjectResponse as GetObjectResponse
|
|
57
|
+
|
|
58
|
+
from .store_view import StoreView as StoreView, StoreViewStore as StoreViewStore
|
|
59
|
+
from .store_view_response import CreateStoreViewResponse as CreateStoreViewResponse, UpdateStoreViewResponse as UpdateStoreViewResponse, DeleteStoreViewResponse as DeleteStoreViewResponse, ListStoreViewsResponse as ListStoreViewsResponse, GetStoreViewResponse as GetStoreViewResponse
|
|
60
|
+
from .submit_async_sql_request import SubmitAsyncSqlRequest as SubmitAsyncSqlRequest
|
|
@@ -165,20 +165,14 @@ class AuthV4(AuthBase):
|
|
|
165
165
|
|
|
166
166
|
@staticmethod
|
|
167
167
|
def _v4_uri_encode(raw_text):
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
if ('A' <= c <= 'Z') or ('a' <= c <= 'z') \
|
|
177
|
-
or ('0' <= c <= '9') or c in ['_', '-', '~', '.']:
|
|
178
|
-
res += c
|
|
179
|
-
else:
|
|
180
|
-
res += "%{0:02X}".format(ord(c))
|
|
181
|
-
return res
|
|
168
|
+
# RFC 3986 unreserved = A-Z a-z 0-9 _ . - ~; everything else
|
|
169
|
+
# percent-encoded as UTF-8 bytes. Py2 urllib.quote omits ~ from
|
|
170
|
+
# its default safe set, so we pass safe='~' for parity with py3.
|
|
171
|
+
if isinstance(raw_text, bytes):
|
|
172
|
+
data = raw_text
|
|
173
|
+
else:
|
|
174
|
+
data = u'{0}'.format(raw_text).encode('utf-8')
|
|
175
|
+
return urlquote(data, safe='~')
|
|
182
176
|
|
|
183
177
|
@staticmethod
|
|
184
178
|
def build_sign_key(key, region, date, string_to_sign):
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
from .config import CursorPosition as CursorPosition, LogHubConfig as LogHubConfig
|
|
2
|
+
from .tasks import ConsumerJsonProcessorBase as ConsumerJsonProcessorBase, ConsumerProcessorAdaptor as ConsumerProcessorAdaptor, ConsumerProcessorBase as ConsumerProcessorBase
|
|
3
|
+
from .worker import ConsumerWorker as ConsumerWorker
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
from typing import Any, Callable, Optional
|
|
2
|
+
from enum import Enum
|
|
3
|
+
|
|
4
|
+
class CursorPosition(Enum):
|
|
5
|
+
BEGIN_CURSOR = 'BEGIN_CURSOR'
|
|
6
|
+
END_CURSOR = 'END_CURSOR'
|
|
7
|
+
SPECIAL_TIMER_CURSOR = 'SPECIAL_TIMER_CURSOR'
|
|
8
|
+
|
|
9
|
+
class ConsumerStatus(Enum):
|
|
10
|
+
INITIALIZING = 'INITIALIZING'
|
|
11
|
+
PROCESSING = 'PROCESSING'
|
|
12
|
+
SHUTTING_DOWN = 'SHUTTING_DOWN'
|
|
13
|
+
SHUTDOWN_COMPLETE = 'SHUTDOWN_COMPLETE'
|
|
14
|
+
|
|
15
|
+
class LogHubConfig:
|
|
16
|
+
endpoint: str
|
|
17
|
+
accessKeyId: str
|
|
18
|
+
accessKey: str
|
|
19
|
+
project: str
|
|
20
|
+
logstore: str
|
|
21
|
+
consumer_group_name: str
|
|
22
|
+
consumer_name: str
|
|
23
|
+
cursor_position: CursorPosition
|
|
24
|
+
heartbeat_interval: int
|
|
25
|
+
data_fetch_interval: int
|
|
26
|
+
in_order: bool
|
|
27
|
+
cursor_start_time: Any
|
|
28
|
+
securityToken: Optional[str]
|
|
29
|
+
max_fetch_log_group_size: int
|
|
30
|
+
worker_pool_size: int
|
|
31
|
+
shared_executor: Any
|
|
32
|
+
consumer_group_time_out: int
|
|
33
|
+
cursor_end_time: Any
|
|
34
|
+
credentials_refresher: Optional[Callable[..., Any]]
|
|
35
|
+
auth_version: str
|
|
36
|
+
region: str
|
|
37
|
+
query: Optional[str]
|
|
38
|
+
accept_compress_type: Optional[str]
|
|
39
|
+
processor: Optional[str]
|
|
40
|
+
def __init__(self, endpoint: str, access_key_id: str, access_key: str, project: str, logstore: str, consumer_group_name: str, consumer_name: str, cursor_position: Optional[CursorPosition] = ..., heartbeat_interval: Optional[int] = ..., data_fetch_interval: Optional[int] = ..., in_order: bool = False, cursor_start_time: Any = ..., security_token: Optional[str] = ..., max_fetch_log_group_size: Optional[int] = ..., worker_pool_size: Optional[int] = ..., shared_executor: Any = ..., cursor_end_time: Any = ..., credentials_refresher: Optional[Callable[..., Any]] = ..., auth_version: str = ..., region: str = '', query: Optional[str] = ..., accept_compress_type: Optional[str] = ..., processor: Optional[str] = ...) -> None: ...
|
|
File without changes
|
|
@@ -214,8 +214,7 @@ def consumer_fetch_task(loghub_client_adapter, preprocessor, shard_id, cursor, m
|
|
|
214
214
|
|
|
215
215
|
for retry_times in range(3):
|
|
216
216
|
try:
|
|
217
|
-
# type: PullLogResponse
|
|
218
|
-
response = loghub_client_adapter.pull_logs(shard_id, cursor, count=max_fetch_log_group_size, end_cursor=end_cursor, query=query, processor=consume_processor)
|
|
217
|
+
response = loghub_client_adapter.pull_logs(shard_id, cursor, count=max_fetch_log_group_size, end_cursor=end_cursor, query=query, processor=consume_processor) # type: PullLogResponse
|
|
219
218
|
data = preprocessor(response)
|
|
220
219
|
next_cursor = response.get_next_cursor()
|
|
221
220
|
raw_size = response.get_raw_size()
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import abc
|
|
2
|
+
from typing import Any
|
|
3
|
+
|
|
4
|
+
class ConsumerProcessorBase(object, metaclass=abc.ABCMeta):
|
|
5
|
+
shard_id: int
|
|
6
|
+
last_check_time: float
|
|
7
|
+
checkpoint_timeout: int
|
|
8
|
+
def __init__(self) -> None: ...
|
|
9
|
+
def save_checkpoint(self, tracker: Any, force: bool = False) -> None: ...
|
|
10
|
+
def initialize(self, shard: int) -> None: ...
|
|
11
|
+
@abc.abstractmethod
|
|
12
|
+
def process(self, log_groups: Any, check_point_tracker: Any) -> Any: ...
|
|
13
|
+
def shutdown(self, check_point_tracker: Any) -> None: ...
|
|
14
|
+
|
|
15
|
+
class ConsumerJsonProcessorBase(ConsumerProcessorBase, metaclass=abc.ABCMeta):
|
|
16
|
+
def __init__(self) -> None: ...
|
|
17
|
+
@abc.abstractmethod
|
|
18
|
+
def process(self, flattern_json_list: Any, check_point_tracker: Any) -> Any: ...
|
|
19
|
+
|
|
20
|
+
class ConsumerProcessorAdaptor(ConsumerProcessorBase):
|
|
21
|
+
func: Any
|
|
22
|
+
def __init__(self, func: Any) -> None: ...
|
|
23
|
+
def process(self, log_groups: Any, check_point_tracker: Any) -> None: ...
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import logging
|
|
2
|
+
from typing import Any, Dict, MutableMapping, Optional, Sequence, Tuple
|
|
3
|
+
from threading import Thread
|
|
4
|
+
from .config import LogHubConfig as LogHubConfig
|
|
5
|
+
|
|
6
|
+
class ConsumerWorkerLoggerAdapter(logging.LoggerAdapter):
|
|
7
|
+
def process(self, msg: Any, kwargs: MutableMapping[str, Any]) -> Tuple[Any, MutableMapping[str, Any]]: ...
|
|
8
|
+
|
|
9
|
+
class ConsumerWorker(Thread):
|
|
10
|
+
make_processor: Any
|
|
11
|
+
process_args: Sequence[Any]
|
|
12
|
+
process_kwargs: Dict[str, Any]
|
|
13
|
+
option: LogHubConfig
|
|
14
|
+
consumer_client: Any
|
|
15
|
+
shut_down_flag: bool
|
|
16
|
+
logger: logging.LoggerAdapter
|
|
17
|
+
shard_consumers: Dict[Any, Any]
|
|
18
|
+
last_owned_consumer_finish_time: float
|
|
19
|
+
heart_beat: Any
|
|
20
|
+
own_executor: bool
|
|
21
|
+
def __init__(self, make_processor: Any, consumer_option: LogHubConfig, args: Optional[Sequence[Any]] = ..., kwargs: Optional[Dict[str, Any]] = ...) -> None: ...
|
|
22
|
+
@property
|
|
23
|
+
def executor(self) -> Any: ...
|
|
24
|
+
def run(self) -> None: ...
|
|
25
|
+
def start(self, join: bool = False) -> None: ...
|
|
26
|
+
def shutdown_and_wait(self) -> None: ...
|
|
27
|
+
def clean_shard_consumer(self, owned_shards: Sequence[Any]) -> None: ...
|
|
28
|
+
def shutdown(self) -> None: ...
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
from typing import Optional
|
|
3
|
+
|
|
4
|
+
class Credentials:
|
|
5
|
+
access_key_id: str
|
|
6
|
+
access_key_secret: str
|
|
7
|
+
security_token: Optional[str]
|
|
8
|
+
def __init__(self, access_key_id: str, access_key_secret: str, security_token: Optional[str] = ...) -> None: ...
|
|
9
|
+
def get_access_key_id(self) -> str: ...
|
|
10
|
+
def get_access_key_secret(self) -> str: ...
|
|
11
|
+
def get_security_token(self) -> Optional[str]: ...
|
|
12
|
+
|
|
13
|
+
class CredentialsProvider:
|
|
14
|
+
def get_credentials(self) -> Optional[Credentials]: ...
|
|
15
|
+
|
|
16
|
+
class StaticCredentialsProvider(CredentialsProvider):
|
|
17
|
+
def __init__(self, access_key_id: str = ..., access_key_secret: str = ..., security_token: str = ...) -> None: ...
|
|
18
|
+
def get_credentials(self) -> Credentials: ...
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
from typing import Any, Dict
|
|
3
|
+
|
|
4
|
+
from .logresponse import LogResponse
|
|
5
|
+
|
|
6
|
+
class GetCursorResponse(LogResponse):
|
|
7
|
+
def __init__(self, resp: Dict[str, Any], header: Dict[str, Any]) -> None: ...
|
|
8
|
+
def get_cursor(self) -> str: ...
|
|
9
|
+
def log_print(self) -> None: ...
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
from typing import Any, Dict
|
|
3
|
+
|
|
4
|
+
from .logresponse import LogResponse
|
|
5
|
+
|
|
6
|
+
class GetCursorTimeResponse(LogResponse):
|
|
7
|
+
def __init__(self, resp: Dict[str, Any], header: Dict[str, Any]) -> None: ...
|
|
8
|
+
def get_cursor_time(self) -> int: ...
|
|
9
|
+
def log_print(self) -> None: ...
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
# encoding: utf-8
|
|
3
|
+
|
|
4
|
+
# Copyright (C) Alibaba Cloud Computing
|
|
5
|
+
# All rights reserved.
|
|
6
|
+
|
|
7
|
+
from .logrequest import LogRequest
|
|
8
|
+
from .util import parse_timestamp
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DeleteLogsV2Request(LogRequest):
|
|
12
|
+
"""The request used to delete logs from a logstore.
|
|
13
|
+
|
|
14
|
+
:type project: string
|
|
15
|
+
:param project: project name
|
|
16
|
+
|
|
17
|
+
:type logstore: string
|
|
18
|
+
:param logstore: logstore name
|
|
19
|
+
|
|
20
|
+
:type fromTime: int/string
|
|
21
|
+
:param fromTime: the begin time
|
|
22
|
+
|
|
23
|
+
:type toTime: int/string
|
|
24
|
+
:param toTime: the end time
|
|
25
|
+
|
|
26
|
+
:type query: string
|
|
27
|
+
:param query: user defined query
|
|
28
|
+
|
|
29
|
+
:type rowId: string
|
|
30
|
+
:param rowId: row id of the log
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
def __init__(self, project=None, logstore=None, fromTime=None, toTime=None, query=None, rowId=None):
|
|
34
|
+
LogRequest.__init__(self, project)
|
|
35
|
+
self.logstore = logstore
|
|
36
|
+
self.fromTime = parse_timestamp(fromTime) if fromTime is not None else fromTime
|
|
37
|
+
self.toTime = parse_timestamp(toTime) if toTime is not None else toTime
|
|
38
|
+
self.query = query
|
|
39
|
+
self.rowId = rowId
|
|
40
|
+
|
|
41
|
+
def get_logstore(self):
|
|
42
|
+
"""Get logstore name.
|
|
43
|
+
|
|
44
|
+
:return: string, logstore name.
|
|
45
|
+
"""
|
|
46
|
+
return self.logstore if self.logstore else ''
|
|
47
|
+
|
|
48
|
+
def set_logstore(self, logstore):
|
|
49
|
+
"""Set logstore name.
|
|
50
|
+
|
|
51
|
+
:type logstore: string
|
|
52
|
+
:param logstore: logstore name
|
|
53
|
+
"""
|
|
54
|
+
self.logstore = logstore
|
|
55
|
+
|
|
56
|
+
def get_from(self):
|
|
57
|
+
"""Get begin time.
|
|
58
|
+
|
|
59
|
+
:return: int, begin time
|
|
60
|
+
"""
|
|
61
|
+
return self.fromTime
|
|
62
|
+
|
|
63
|
+
def set_from(self, fromTime):
|
|
64
|
+
"""Set begin time.
|
|
65
|
+
|
|
66
|
+
:type fromTime: int/string
|
|
67
|
+
:param fromTime: begin time
|
|
68
|
+
"""
|
|
69
|
+
self.fromTime = parse_timestamp(fromTime) if fromTime is not None else fromTime
|
|
70
|
+
|
|
71
|
+
def get_to(self):
|
|
72
|
+
"""Get end time.
|
|
73
|
+
|
|
74
|
+
:return: int, end time
|
|
75
|
+
"""
|
|
76
|
+
return self.toTime
|
|
77
|
+
|
|
78
|
+
def set_to(self, toTime):
|
|
79
|
+
"""Set end time.
|
|
80
|
+
|
|
81
|
+
:type toTime: int/string
|
|
82
|
+
:param toTime: end time
|
|
83
|
+
"""
|
|
84
|
+
self.toTime = parse_timestamp(toTime) if toTime is not None else toTime
|
|
85
|
+
|
|
86
|
+
def get_query(self):
|
|
87
|
+
"""Get user defined query.
|
|
88
|
+
|
|
89
|
+
:return: string, user defined query
|
|
90
|
+
"""
|
|
91
|
+
return self.query
|
|
92
|
+
|
|
93
|
+
def set_query(self, query):
|
|
94
|
+
"""Set user defined query.
|
|
95
|
+
|
|
96
|
+
:type query: string
|
|
97
|
+
:param query: user defined query
|
|
98
|
+
"""
|
|
99
|
+
self.query = query
|
|
100
|
+
|
|
101
|
+
def get_row_id(self):
|
|
102
|
+
"""Get row id.
|
|
103
|
+
|
|
104
|
+
:return: string, row id
|
|
105
|
+
"""
|
|
106
|
+
return self.rowId
|
|
107
|
+
|
|
108
|
+
def set_row_id(self, rowId):
|
|
109
|
+
"""Set row id.
|
|
110
|
+
|
|
111
|
+
:type rowId: string
|
|
112
|
+
:param rowId: row id
|
|
113
|
+
"""
|
|
114
|
+
self.rowId = rowId
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
from typing import Optional, Union
|
|
3
|
+
|
|
4
|
+
from .logrequest import LogRequest
|
|
5
|
+
|
|
6
|
+
class DeleteLogsV2Request(LogRequest):
|
|
7
|
+
def __init__(self, project: Optional[str] = ..., logstore: Optional[str] = ..., fromTime: Optional[Union[int, str]] = ..., toTime: Optional[Union[int, str]] = ..., query: Optional[str] = ..., rowId: Optional[str] = ...) -> None: ...
|
|
8
|
+
def get_logstore(self) -> str: ...
|
|
9
|
+
def set_logstore(self, logstore: str) -> None: ...
|
|
10
|
+
def get_from(self) -> Optional[int]: ...
|
|
11
|
+
def set_from(self, fromTime: Optional[Union[int, str]]) -> None: ...
|
|
12
|
+
def get_to(self) -> Optional[int]: ...
|
|
13
|
+
def set_to(self, toTime: Optional[Union[int, str]]) -> None: ...
|
|
14
|
+
def get_query(self) -> Optional[str]: ...
|
|
15
|
+
def set_query(self, query: Optional[str]) -> None: ...
|
|
16
|
+
def get_row_id(self) -> Optional[str]: ...
|
|
17
|
+
def set_row_id(self, rowId: Optional[str]) -> None: ...
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
# encoding: utf-8
|
|
3
|
+
|
|
4
|
+
# Copyright (C) Alibaba Cloud Computing
|
|
5
|
+
# All rights reserved.
|
|
6
|
+
|
|
7
|
+
from .logresponse import LogResponse
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class DeleteLogsV2Response(LogResponse):
|
|
11
|
+
"""The response of the DeleteLogsV2 API from log."""
|
|
12
|
+
|
|
13
|
+
def __init__(self, resp, header):
|
|
14
|
+
LogResponse.__init__(self, header, resp)
|
|
15
|
+
self.affected_rows = resp.get('affected_rows', 0)
|
|
16
|
+
|
|
17
|
+
def get_affected_rows(self):
|
|
18
|
+
return self.affected_rows
|
|
19
|
+
|
|
20
|
+
def log_print(self):
|
|
21
|
+
print('DeleteLogsV2Response:')
|
|
22
|
+
print('headers:', self.get_all_headers())
|
|
23
|
+
print('affected_rows:', self.affected_rows)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
from typing import Any, Dict
|
|
3
|
+
|
|
4
|
+
from .logresponse import LogResponse
|
|
5
|
+
|
|
6
|
+
class DeleteLogsV2Response(LogResponse):
|
|
7
|
+
affected_rows: int
|
|
8
|
+
def __init__(self, resp: Dict[str, Any], header: Dict[str, Any]) -> None: ...
|
|
9
|
+
def get_affected_rows(self) -> int: ...
|
|
10
|
+
def log_print(self) -> None: ...
|
|
File without changes
|
{aliyun_log_python_sdk-0.9.45 → aliyun_log_python_sdk-0.9.47}/aliyun/log/external_store_config.py
RENAMED
|
@@ -59,7 +59,7 @@ class ExternalStoreConfig(ExternalStoreConfigBase):
|
|
|
59
59
|
json_value["storeType"] = self.storeType
|
|
60
60
|
param = {}
|
|
61
61
|
param["vpc-id"] = self.vpcId
|
|
62
|
-
param["instance-id"] = self.instanceId
|
|
62
|
+
param["instance-id"] = self.instanceId or ""
|
|
63
63
|
param["host"] = self.host
|
|
64
64
|
param["port"] = self.port
|
|
65
65
|
param["username"] = self.username
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
from typing import Optional, Union
|
|
3
|
+
|
|
4
|
+
from .logrequest import LogRequest
|
|
5
|
+
from .util import parse_timestamp
|
|
6
|
+
|
|
7
|
+
class GetHistogramsRequest(LogRequest):
|
|
8
|
+
def __init__(self, project: Optional[str] = ..., logstore: Optional[str] = ..., fromTime: Optional[Union[int, str]] = ..., toTime: Optional[Union[int, str]] = ..., topic: Optional[str] = ..., query: Optional[str] = ..., accurate_query: bool = ..., from_time_nano_part: int = ..., to_time_nano_part: int = ..., shard_id: int = ...) -> None: ...
|
|
9
|
+
def get_logstore(self) -> str: ...
|
|
10
|
+
def set_logstore(self, logstore: str) -> None: ...
|
|
11
|
+
def get_topic(self) -> str: ...
|
|
12
|
+
def set_topic(self, topic: str) -> None: ...
|
|
13
|
+
def get_from(self) -> int: ...
|
|
14
|
+
def set_from(self, fromTime: int) -> None: ...
|
|
15
|
+
def get_to(self) -> int: ...
|
|
16
|
+
def set_to(self, toTime: int) -> None: ...
|
|
17
|
+
def get_query(self) -> str: ...
|
|
18
|
+
def set_query(self, query: str) -> None: ...
|
|
19
|
+
def get_accurate_query(self) -> bool: ...
|
|
20
|
+
def set_accurate_query(self, accurate_query: bool) -> None: ...
|
|
21
|
+
def get_from_time_nano_part(self) -> int: ...
|
|
22
|
+
def set_from_time_nano_part(self, from_time_nano_part: int) -> None: ...
|
|
23
|
+
def get_to_time_nano_part(self) -> int: ...
|
|
24
|
+
def set_to_time_nano_part(self, to_time_nano_part: int) -> None: ...
|
|
25
|
+
def set_shard_id(self, shard_id: int) -> None: ...
|
|
26
|
+
def get_shard_id(self) -> int: ...
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple, Union
|
|
3
|
+
|
|
4
|
+
from .logresponse import LogResponse
|
|
5
|
+
from .histogram import Histogram
|
|
6
|
+
from .util import Util
|
|
7
|
+
|
|
8
|
+
class GetHistogramsResponse(LogResponse):
|
|
9
|
+
def __init__(self, resp: Dict[str, Any], header: Dict[str, Any]) -> None: ...
|
|
10
|
+
def is_completed(self) -> bool: ...
|
|
11
|
+
def get_total_count(self) -> int: ...
|
|
12
|
+
def get_histograms(self) -> List[Histogram]: ...
|
|
13
|
+
def log_print(self) -> None: ...
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple, Union
|
|
3
|
+
|
|
4
|
+
from .logrequest import LogRequest
|
|
5
|
+
|
|
6
|
+
class GetLogsRequest(LogRequest):
|
|
7
|
+
def __init__(self, project: Optional[str] = ..., logstore: Optional[str] = ..., fromTime: Optional[Union[int, str]] = ..., toTime: Optional[Union[int, str]] = ..., topic: Optional[str] = ..., query: Optional[str] = ..., line: int = ..., offset: int = ..., reverse: bool = ..., power_sql: bool = ..., scan: bool = ..., forward: bool = ..., accurate_query: bool = ..., from_time_nano_part: int = ..., to_time_nano_part: int = ...) -> None: ...
|
|
8
|
+
def get_logstore(self) -> str: ...
|
|
9
|
+
def set_logstore(self, logstore: str) -> None: ...
|
|
10
|
+
def get_topic(self) -> str: ...
|
|
11
|
+
def set_topic(self, topic: str) -> None: ...
|
|
12
|
+
def get_from(self) -> int: ...
|
|
13
|
+
def set_from(self, fromTime: int) -> None: ...
|
|
14
|
+
def get_to(self) -> int: ...
|
|
15
|
+
def set_to(self, toTime: int) -> None: ...
|
|
16
|
+
def get_query(self) -> str: ...
|
|
17
|
+
def set_query(self, query: str) -> None: ...
|
|
18
|
+
def get_line(self) -> int: ...
|
|
19
|
+
def set_line(self, line: int) -> None: ...
|
|
20
|
+
def get_offset(self) -> int: ...
|
|
21
|
+
def set_offset(self, offset: int) -> None: ...
|
|
22
|
+
def get_reverse(self) -> bool: ...
|
|
23
|
+
def set_reverse(self, reverse: bool) -> None: ...
|
|
24
|
+
def get_power_sql(self) -> bool: ...
|
|
25
|
+
def set_power_sql(self, power_sql: bool) -> None: ...
|
|
26
|
+
def get_scan(self) -> bool: ...
|
|
27
|
+
def set_scan(self, scan: bool) -> None: ...
|
|
28
|
+
def get_forward(self) -> bool: ...
|
|
29
|
+
def set_forward(self, forward: bool) -> None: ...
|
|
30
|
+
def get_accurate_query(self) -> bool: ...
|
|
31
|
+
def set_accurate_query(self, accurate_query: bool) -> None: ...
|
|
32
|
+
def get_from_time_nano_part(self) -> int: ...
|
|
33
|
+
def set_from_time_nano_part(self, from_time_nano_part: int) -> None: ...
|
|
34
|
+
def get_to_time_nano_part(self) -> int: ...
|
|
35
|
+
def set_to_time_nano_part(self, to_time_nano_part: int) -> None: ...
|
|
36
|
+
|
|
37
|
+
class GetProjectLogsRequest(LogRequest):
|
|
38
|
+
def __init__(self, project: Optional[str] = ..., query: Optional[str] = ..., power_sql: bool = ...) -> None: ...
|
|
39
|
+
def get_query(self) -> str: ...
|
|
40
|
+
def set_query(self, query: str) -> None: ...
|
|
41
|
+
def get_power_sql(self) -> bool: ...
|
|
42
|
+
def set_power_sql(self, power_sql: bool) -> None: ...
|