opsgenie / opsgenie-go-sdk-v2

Opsgenie GO SDK v2
Apache License 2.0
34 stars 63 forks source link

Expand options for exporting schedule #142

Open Harm133 opened 5 months ago

Harm133 commented 5 months ago

Currently the only option for exporting a schedule (https://github.com/opsgenie/opsgenie-go-sdk-v2/blob/master/schedule/schedule.go#L75) is by giving a schedule and a file path as a parameter, which the function combines to export to that filepath + scheduleidentifier.

This is quite restrictive. Suggested additions are: Export to []byte and export to specific file path.