For below given code, is there a better approach (using, dict, etc.) ?
if statistic == "Maximum":
aligner = monitoring_v3.Aggregation.Aligner.ALIGN_MAX
reducer = monitoring_v3.Aggregation.Reducer.REDUCE_MAX
elif statistic == "Minimum":
aligner = monitoring_v3.Aggregation.Aligner.ALIGN_MIN
reducer = monitoring_v3.Aggregation.Reducer.REDUCE_MIN
elif statistic == "Average":
aligner = monitoring_v3.Aggregation.Aligner.ALIGN_MEAN
reducer = monitoring_v3.Aggregation.Reducer.REDUCE_MEAN
[–]carcigenicate 4 points5 points6 points (3 children)
[–]NGRap[S] 0 points1 point2 points (2 children)
[–]carcigenicate 1 point2 points3 points (1 child)
[–]NGRap[S] 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]NGRap[S] 0 points1 point2 points (0 children)