Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion datadog/dogshell/service_level_objective.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def _update(cls, args):
for threshold_str in args.thresholds.split(","):
parts = threshold_str.split(":")
timeframe = parts[0]
target = parts[1]
target = float(parts[1])

threshold = {"timeframe": timeframe, "target": target}

Expand All @@ -273,6 +273,9 @@ def _update(cls, args):
thresholds.append(threshold)
params["thresholds"] = thresholds

if args.name:
params["name"] = args.name

if args.description:
params["description"] = args.description

Expand Down
Loading