adding new script
parent
b7d4ee80bd
commit
f96dcb1ebd
|
|
@ -86,7 +86,7 @@ def get_daily_slice(start_date, end_date):
|
||||||
|
|
||||||
return days
|
return days
|
||||||
|
|
||||||
def main() -> None:
|
def main():
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
usage="%(prog)s [--fromDate] [toDate] or [preSelect]",
|
usage="%(prog)s [--fromDate] [toDate] or [preSelect]",
|
||||||
description="gather SLO in daily slices for given Timeframe"
|
description="gather SLO in daily slices for given Timeframe"
|
||||||
|
|
@ -103,7 +103,7 @@ def main() -> None:
|
||||||
"-p","--preSelect",
|
"-p","--preSelect",
|
||||||
help = "week | month - gathers the data for the last full week or month"
|
help = "week | month - gathers the data for the last full week or month"
|
||||||
)
|
)
|
||||||
parser = initargparse()
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
if args.preSelect and (args.fromDate or args.toDate):
|
if args.preSelect and (args.fromDate or args.toDate):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue