File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,6 +89,14 @@ def __init__(self, parent):
8989 type = float ,
9090 help = "Limit values to max one per interval (in seconds)" ,
9191 )
92+ subparser .add_argument (
93+ "--source" ,
94+ dest = "source" ,
95+ type = str ,
96+ help = "Where to search for values" ,
97+ choices = ["parchive" , "replay" ],
98+ default = "parchive" ,
99+ )
92100 subparser .set_defaults (func = self .export_csv )
93101
94102 def list_ (self , args ):
@@ -148,6 +156,10 @@ def export_csv(self, args):
148156 instance = opts .require_instance ()
149157 archive = client .get_archive (instance )
150158
159+ source = args .source
160+ if source == "parchive" :
161+ source = "ParameterArchive"
162+
151163 start = None
152164 if args .since :
153165 start = utils .parse_timestamp (args .since )
@@ -161,5 +173,6 @@ def export_csv(self, args):
161173 stop = stop ,
162174 interval = args .interval ,
163175 namespace = args .namespace ,
176+ source = source ,
164177 ):
165178 sys .stdout .buffer .write (chunk )
You can’t perform that action at this time.
0 commit comments