Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add schedule resource #10

Merged
merged 5 commits into from
Aug 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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