package
Version:
v0.2.3
Opens a new window with list of versions in this module.
Published: May 17, 2026
License: AGPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
const (
AlertTypeCritical AlertType = "critical"
AlertTypeResolved AlertType = "resolved"
)
Client sends events to the Zenduty Events API.
type EventRequest struct {
AlertType AlertType `json:"alert_type"`
Message string `json:"message"`
Summary string `json:"summary"`
EntityID string `json:"entity_id"`
Payload map[string]string `json:"payload,omitempty"`
URLs []EventURL `json:"urls,omitempty"`
}
type EventResponse struct {
Message string `json:"message"`
TraceID string `json:"trace_id"`
}
type EventURL struct {
LinkURL string `json:"link_url"`
LinkText string `json:"link_text"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.