Versions in this module Expand all Collapse all v0 v0.1.0 Sep 24, 2026 Changes in this version + const DefaultBaseURL + const Version + func IsNotFound(err error) bool + type APIError struct + Message string + Path string + StatusCode int + func (e *APIError) Error() string + func (e *APIError) IsNotFound() bool + type Client struct + func New(opts ...Option) (*Client, error) + func (c *Client) CreateMaintenanceWindow(ctx context.Context, in MaintenanceWindowInput, idempotencyKey string) (*MaintenanceWindow, error) + func (c *Client) CreateScenario(ctx context.Context, in ScenarioInput, idempotencyKey string) (*Scenario, error) + func (c *Client) CreateWebhook(ctx context.Context, in WebhookInput, idempotencyKey string) (*Webhook, error) + func (c *Client) DeleteMaintenanceWindow(ctx context.Context, id string) error + func (c *Client) DeleteScenario(ctx context.Context, id string) error + func (c *Client) DeleteSlaTarget(ctx context.Context, id string) error + func (c *Client) DeleteWebhook(ctx context.Context, id string) error + func (c *Client) GetMaintenanceWindow(ctx context.Context, id string) (*MaintenanceWindow, error) + func (c *Client) GetScenario(ctx context.Context, id string) (*Scenario, error) + func (c *Client) GetSlaTarget(ctx context.Context, id string) (*SlaTarget, error) + func (c *Client) GetWebhook(ctx context.Context, id string) (*Webhook, error) + func (c *Client) ListMaintenanceWindows(ctx context.Context) ([]MaintenanceWindow, error) + func (c *Client) ListScenarios(ctx context.Context) ([]Scenario, error) + func (c *Client) ListSlaTargets(ctx context.Context) ([]SlaTarget, error) + func (c *Client) ListWebhooks(ctx context.Context) ([]Webhook, error) + func (c *Client) MuteScenario(ctx context.Context, id string, until *string) error + func (c *Client) Ping(ctx context.Context) error + func (c *Client) UpdateScenario(ctx context.Context, id string, in ScenarioInput) (*Scenario, error) + func (c *Client) UpsertSlaTarget(ctx context.Context, in SlaTargetInput, idempotencyKey string) (*SlaTarget, error) + type MaintenanceWindow struct + DurationMin *int64 + EndsAt *string + ID string + MonitorID *string + Reason *string + StartMinute *int64 + StartsAt *string + Weekday *int64 + type MaintenanceWindowInput struct + DurationMin *int64 + EndsAt *string + MonitorID *string + Reason *string + StartMinute *int64 + StartsAt *string + Weekday *int64 + type Option func(*Client) + func WithBaseURL(base string) Option + func WithHTTPClient(h *http.Client) Option + func WithSleep(f func(time.Duration)) Option + func WithToken(token string) Option + func WithUserAgent(ua string) Option + type Scenario struct + CreatedAt *string + Cron *string + Enabled *bool + ExpectText *string + ExpectedStatus *int64 + Folder *string + ID string + IntervalSec *int64 + LastStatus *string + MaxLatencyMs *int64 + Method *string + MutedUntil *string + Name string + Regions []string + Runbook *string + ScenarioFingerprint *string + Severity *string + Tags []string + Type string + URL *string + type ScenarioInput struct + Cron *string + Enabled *bool + ExpectText *string + ExpectedStatus *int64 + Folder *string + IntervalSec *int64 + MaxLatencyMs *int64 + Method *string + Name *string + Regions []string + Runbook *string + Severity *string + Tags []string + Type *string + URL *string + type SlaTarget struct + Enabled *bool + ExcludeMaintenance *bool + ID string + MonitorID *string + Name *string + ObjectivePct *float64 + WarnAtBudgetRatio *float64 + WindowDays *int64 + type SlaTargetInput struct + Enabled *bool + ExcludeMaintenance *bool + MonitorID *string + Name *string + ObjectivePct float64 + WarnAtBudgetRatio *float64 + WindowDays int64 + type Webhook struct + CreatedAt *string + Enabled *bool + Events []string + HasSecret *bool + ID string + Secret *string + URLFingerprint *string + type WebhookInput struct + Events []string + URL string