Skip to content

Commit 6f61f29

Browse files
Fix SLO update via dogshell (#889)
* Fix SLO update via dogshell * Do not ignore SLO name on updates --------- Co-authored-by: jack-edmonds-dd <[email protected]>
1 parent 4d1c527 commit 6f61f29

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

datadog/dogshell/service_level_objective.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def _update(cls, args):
257257
for threshold_str in args.thresholds.split(","):
258258
parts = threshold_str.split(":")
259259
timeframe = parts[0]
260-
target = parts[1]
260+
target = float(parts[1])
261261

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

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

276+
if args.name:
277+
params["name"] = args.name
278+
276279
if args.description:
277280
params["description"] = args.description
278281

0 commit comments

Comments
 (0)