Alerting
AlertingAvailable Alerts
Get Alert Types
client.Alerting.AvailableAlerts.List(ctx, query) (*AvailableAlertListResponse, error)
GET/accounts/{account_id}/alerting/v3/available_alerts
AlertingDestinations
AlertingDestinationsEligible
Get delivery mechanism eligibility
client.Alerting.Destinations.Eligible.Get(ctx, query) (*DestinationEligibleGetResponse, error)
GET/accounts/{account_id}/alerting/v3/destinations/eligible
AlertingDestinationsPagerduty
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}
AlertingDestinationsWebhooks
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}
AlertingHistory
List History
client.Alerting.History.List(ctx, params) (*V4PagePaginationArray[History], error)
GET/accounts/{account_id}/alerting/v3/history
AlertingPolicies
List Notification policies
client.Alerting.Policies.List(ctx, query) (*SinglePage[Policy], error)
GET/accounts/{account_id}/alerting/v3/policies
Get a Notification policy
client.Alerting.Policies.Get(ctx, policyID, query) (*Policy, error)
GET/accounts/{account_id}/alerting/v3/policies/{policy_id}
Create a Notification policy
client.Alerting.Policies.New(ctx, params) (*PolicyNewResponse, error)
POST/accounts/{account_id}/alerting/v3/policies
Update a Notification policy
client.Alerting.Policies.Update(ctx, policyID, params) (*PolicyUpdateResponse, error)
PUT/accounts/{account_id}/alerting/v3/policies/{policy_id}
Delete a Notification policy
client.Alerting.Policies.Delete(ctx, policyID, body) (*PolicyDeleteResponse, error)
DELETE/accounts/{account_id}/alerting/v3/policies/{policy_id}
AlertingSilences
List Silences
client.Alerting.Silences.List(ctx, query) (*SinglePage[SilenceListResponse], error)
GET/accounts/{account_id}/alerting/v3/silences
Get Silence
client.Alerting.Silences.Get(ctx, silenceID, query) (*SilenceGetResponse, error)
GET/accounts/{account_id}/alerting/v3/silences/{silence_id}
Create Silences
client.Alerting.Silences.New(ctx, params) (*SilenceNewResponse, error)
POST/accounts/{account_id}/alerting/v3/silences
Update Silences
client.Alerting.Silences.Update(ctx, params) (*SinglePage[SilenceUpdateResponse], error)
PUT/accounts/{account_id}/alerting/v3/silences
Delete Silence
client.Alerting.Silences.Delete(ctx, silenceID, body) (*SilenceDeleteResponse, error)
DELETE/accounts/{account_id}/alerting/v3/silences/{silence_id}