Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support copy logstore #70

Closed
wjo1212 opened this issue Mar 23, 2018 · 1 comment
Closed

support copy logstore #70

wjo1212 opened this issue Mar 23, 2018 · 1 comment

Comments

@wjo1212
Copy link
Collaborator

wjo1212 commented Mar 23, 2018

def copy_logstore(from_client, from_project, from_logstore, to_logstore, to_project=None, to_client=None):
    """
    copy logstore, index, logtail config to target logstore, machine group are not included yet.
    the target logstore will be crated if not existing

    :type from_client: LogClient
    :param from_client: logclient instance

    :type from_project: string
    :param from_project: project name

    :type from_logstore: string
    :param from_logstore: logstore name

    :type to_logstore: string
    :param to_logstore: logstore name

    :type to_project: string
    :param to_project: project name, copy to same project if not being specified, will try to create it if not being specified

    :type to_client: LogClient
    :param to_client: logclient instance, use it to operate on the "to_project" if being specified

    :type apply_machine_group: bool
    :param apply_machine_group: if apply config to same machine group resources, False by default.

    :return:
    """
wjo1212 added a commit that referenced this issue Mar 23, 2018
@wjo1212
Copy link
Collaborator Author

wjo1212 commented Mar 23, 2018

fixed in 0.6.26

@wjo1212 wjo1212 closed this as completed Mar 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant