Files
python-venusclient/venusclient/v1/config_shell.py
jiasirui 6cc55a8842 add new interface
Change-Id: I646a0a2613aa5fda60cb4a69da15db7f093f3346
2021-06-07 15:39:28 +08:00

26 lines
907 B
Python

# Copyright (c) 2018 Intel, Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
def do_get_log_storage_days(cs, args):
"""get the days of saved logs in elasticsearch(unit day)."""
endpoint = cs.config.get_days()
print(endpoint)
def do_get_log(cs, args):
"""get log content"""
endpoint = cs.config.search_logs(args)
print(endpoint)