Skip to content

Commit

Permalink
fix maintenance status json problem
Browse files Browse the repository at this point in the history
  • Loading branch information
MeralBusraTekinsen committed Dec 2, 2019
1 parent 635a50b commit 5412a32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# opsgenie-go-sdk-v2
Opsgenie GO SDK v2

For more information, please refer to the [Opsgenie Documentation](https://docs.opsgenie.com/docs/opsgenie-go-api-v2)

4 changes: 2 additions & 2 deletions maintenance/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "github.com/opsgenie/opsgenie-go-sdk-v2/client"

type Maintenance struct {
Id string `json:"id"`
Status string `json:"planned"`
Status string `json:"status"`
Time Time `json:"time"`
Description string `json:"description"`
}
Expand All @@ -22,7 +22,7 @@ type UpdateResult struct {
type GetResult struct {
client.ResultMetadata
Id string `json:"id"`
Status string `json:"planned"`
Status string `json:"status"`
Time Time `json:"time"`
Description string `json:"description"`
Results []Rule `json:"rules"`
Expand Down

0 comments on commit 5412a32

Please sign in to comment.