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

feat(api): add PagerDuty alert channel integrations #173

Merged
merged 1 commit into from
Jul 23, 2020

Commits on Jul 23, 2020

  1. feat(api): add PagerDuty alert channel integrations

    With this change users can now do CRUD operations of PagerDuty
    Alert Channels (Integrations), here is a basic usage:
    
    Initialize a new `PagerDutyAlertChannel` struct, then use the new
    instance to do CRUD operations.
    
    ```go
    client, err := api.NewClient("account")
    if err != nil {
      return err
    }
    
    alert := api.NewPagerDutyAlertChannel("foo",
      api.PagerDutyData{
        IntegrationKey:   "1234abc8901abc567abc123abc78e012",
        MinAlertSeverity: api.MediumAlertLevel,
      },
    )
    
    client.Integrations.CreatePagerDutyAlertChannel(alert)
    ```
    
    Signed-off-by: Salim Afiune Maya <[email protected]>
    afiune committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    99e547c View commit details
    Browse the repository at this point in the history