-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
28 lines (19 loc) · 812 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import importer
import stack
print("##################################################################")
print("###### Welcome to InfluxDB Cloud > Voltmetrix migration tool #####")
print("##################################################################\n")
print("I'm going to help you to export your entire stack from InfluxDB Cloud to InfluxDB hosted by Voltmetrix\n")
print("What do you want to do?\n\nPress 1 to export Dashboards, Labels, Telegraf configuration, alerts, etc.\nPress 2 to export data.\nPress 99 to do both.\n")
def main():
action = input("Enter your choice: ")
if action == "1":
stack.stack()
elif action == "2":
importer.data()
elif action == "99":
stack.stack()
importer.data()
else:
print("Invalid option")
main()