Skip to content

Commit

Permalink
Merge pull request #25 from iLert/fix/status-page-missing-field-1
Browse files Browse the repository at this point in the history
Fix/status page missing field
  • Loading branch information
STLVRTX authored May 8, 2023
2 parents 60fd032 + aabd6b1 commit cadebbd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 02.05.2023, Version 3.0.2

- add missing field `accountWideView` to status page resource in [#25](https://github.com/iLert/ilert-go/pull/25)

## 13.03.2023, Version 3.0.1

- add missing field `integrationKey` to metric resource in [#24](https://github.com/iLert/ilert-go/pull/24)
Expand Down
5 changes: 3 additions & 2 deletions status_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ type StatusPage struct {
Services []Service `json:"services,omitempty"`
Subscribed bool `json:"subscribed,omitempty"`
IpWhitelist []string `json:"ipWhitelist,omitempty"`
AccountWideView bool `json:"accountWideView,omitempty"`
Structure *StatusPageStructure `json:"structure,omitempty"`
}

Expand Down Expand Up @@ -102,7 +103,7 @@ func (c *Client) CreateStatusPage(input *CreateStatusPageInput) (*CreateStatusPa
return nil, errors.New("input is required")
}
if input.StatusPage == nil {
return nil, errors.New("statuspage input is required")
return nil, errors.New("status page input is required")
}
resp, err := c.httpClient.R().SetBody(input.StatusPage).Post(apiRoutes.statusPages)
if err != nil {
Expand All @@ -121,7 +122,7 @@ func (c *Client) CreateStatusPage(input *CreateStatusPageInput) (*CreateStatusPa
return &CreateStatusPageOutput{StatusPage: statusPage}, nil
}

// GetStatusPagesInput represents the input of a GetStatusPages operation.
// GetStatusPagesInput represents the input of a GetStatusPagesInput operation.
type GetStatusPagesInput struct {
_ struct{}
// an integer specifying the starting point (beginning with 0) when paging through a list of entities
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ilert

// Version package version
const Version = "v3.0.1"
const Version = "v3.0.2"

0 comments on commit cadebbd

Please sign in to comment.