Destinations
DestinationsEligible
Get delivery mechanism eligibility
client.Alerting.Destinations.Eligible.Get(ctx, query) (*DestinationEligibleGetResponse, error)
GET/accounts/{account_id}/alerting/v3/destinations/eligible
DestinationsPagerduty
List PagerDuty services
client.Alerting.Destinations.Pagerduty.Get(ctx, query) (*SinglePage[Pagerduty], error)
GET/accounts/{account_id}/alerting/v3/destinations/pagerduty
Create PagerDuty integration token
client.Alerting.Destinations.Pagerduty.New(ctx, body) (*DestinationPagerdutyNewResponse, error)
POST/accounts/{account_id}/alerting/v3/destinations/pagerduty/connect
Delete PagerDuty Services
client.Alerting.Destinations.Pagerduty.Delete(ctx, body) (*DestinationPagerdutyDeleteResponse, error)
DELETE/accounts/{account_id}/alerting/v3/destinations/pagerduty
Connect PagerDuty
client.Alerting.Destinations.Pagerduty.Link(ctx, tokenID, query) (*DestinationPagerdutyLinkResponse, error)
GET/accounts/{account_id}/alerting/v3/destinations/pagerduty/connect/{token_id}
DestinationsWebhooks
List webhooks
client.Alerting.Destinations.Webhooks.List(ctx, query) (*SinglePage[Webhooks], error)
GET/accounts/{account_id}/alerting/v3/destinations/webhooks
Get a webhook
client.Alerting.Destinations.Webhooks.Get(ctx, webhookID, query) (*Webhooks, error)
GET/accounts/{account_id}/alerting/v3/destinations/webhooks/{webhook_id}
Create a webhook
client.Alerting.Destinations.Webhooks.New(ctx, params) (*DestinationWebhookNewResponse, error)
POST/accounts/{account_id}/alerting/v3/destinations/webhooks
Update a webhook
client.Alerting.Destinations.Webhooks.Update(ctx, webhookID, params) (*DestinationWebhookUpdateResponse, error)
PUT/accounts/{account_id}/alerting/v3/destinations/webhooks/{webhook_id}
Delete a webhook
client.Alerting.Destinations.Webhooks.Delete(ctx, webhookID, body) (*DestinationWebhookDeleteResponse, error)
DELETE/accounts/{account_id}/alerting/v3/destinations/webhooks/{webhook_id}