Skip to content

Commit

Permalink
Merge pull request #10 from iLert/feature/on-call-schedule
Browse files Browse the repository at this point in the history
add schedule resource
  • Loading branch information
yacut authored Aug 26, 2022
2 parents d4eff3e + 8a0e4d9 commit 5e53cab
Show file tree
Hide file tree
Showing 4 changed files with 320 additions and 19 deletions.
43 changes: 43 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,48 @@
# Changelog

## 26.08.2022, Version 2.1.0

- add schedules

## 12.07.2022, Version 2.0.5

- another fix for alert source support hours check

## 12.07.2022, Version 2.0.4

- fix alert source support hours check

## 12.07.2022, Version 2.0.3

- fix error codes on create resources

## 08.07.2022, Version 2.0.2

- add various lists
- fix alert source creation
- add deprecated hints
- fix user alert notification type list

## 04.07.2022, Version 2.0.1

- fix internal version

## 30.06.2022, Version 2.0.0

- add automation rules
- add incident templates
- add services
- add statuspages
- migrating API v1 to versionless
- rename incident v1 to alert and update fields
- add incident
- renaming connection to alert action, therefore deprecating connection
- update alert source fields
- update event fields
- update uptime monitor fields
- update user fields
- update examples

## 16.04.2022, Version 1.6.5

- add not_found error types
Expand Down
8 changes: 2 additions & 6 deletions examples/schedules/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@ import (
)

func main() {
// set your environment variables:
// ILERT_ORGANIZATION="your organization"
// ILERT_USERNAME="your username"
// ILERT_PASSWORD="your password"
client := ilert.NewClient()
var apiToken = "your API token"
client := ilert.NewClient(ilert.WithAPIToken(apiToken))
result, err := client.GetSchedules(&ilert.GetSchedulesInput{})
if err != nil {
log.Println(result)
Expand All @@ -22,5 +19,4 @@ func main() {
for _, schedule := range result.Schedules {
log.Println(fmt.Sprintf("%+v\n", *schedule))
}

}
Loading

0 comments on commit 5e53cab

Please sign in to comment.