Skip to content

Commit

Permalink
docs(xray): update examples in readme for watch functions
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-barker-coles committed Nov 8, 2020
1 parent 1921286 commit bc2aa2f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1185,23 +1185,23 @@ params.Policies = []utils.AssignedPolicy{
},
}

err := xrayManager.CreateWatch(*params)
resp, err := xrayManager.CreateWatch(*params)
```

#### Get an Xray Watch
```go
watch, err := xrayManager.GetWatch("example-watch-all")
watch, resp, err := xrayManager.GetWatch("example-watch-all")
```

#### Update an Xray Watch
```go
watch, err := xrayManager.GetWatch("example-watch-all")
watch, resp, err := xrayManager.GetWatch("example-watch-all")
watch.Description = "Updated description"

xrayManager.UpdateWatch(*watch)
resp, err := xrayManager.UpdateWatch(*watch)
```

#### Delete an Xray Watch
```go
err := xrayManager.DeleteWatch("example-watch-all")
resp, err := xrayManager.DeleteWatch("example-watch-all")
```

0 comments on commit bc2aa2f

Please sign in to comment.