Documentation
¶
Overview ¶
Package sentry is Sentry as a source of production alerts: an issue alert rule whose action is kōjō's internal integration sends a webhook signed with the integration's Client Secret, and kōjō reads the alert's issue through Sentry's API with a token of the same integration.
Sentry's documentation: https://docs.sentry.io/organization/integrations/integration-platform/webhooks/ and https://docs.sentry.io/api/events/retrieve-an-issue/.
Index ¶
Constants ¶
const ( // HeaderSignature is the hex HMAC-SHA256 of the body under the // integration's Client Secret. HeaderSignature = "Sentry-Hook-Signature" // HeaderResource names what the webhook is about: installation, // event_alert, issue, metric_alert, error, comment and more. HeaderResource = "Sentry-Hook-Resource" // HeaderRequestID is unique per delivery. HeaderRequestID = "Request-ID" )
Headers of a Sentry webhook.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Source)
Option changes how New builds the source.
func WithHTTPClient ¶
WithHTTPClient sets the HTTP client of API calls.
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source is one Sentry organization.