This repository was archived by the owner on Jan 4, 2026. It is now read-only.
Repository navigation
v1.0.4 - Alerts Controller Support
What's New
🚀 Features
Added comprehensive support for the alerts-controller service with new types and methods.
New Types
Alert Management
AlertChannel- Notification channel configuration (email, Slack, PagerDuty, webhooks)AlertRule- Enhanced alert rule structure with detailed configuration:- Scope configuration (organization, server, tag, group)
- Metric configuration with aggregation options
- Complex conditions and thresholds
- Channel notification settings
AlertConditions- Alert triggering conditions with time windowsAlertThreshold- Threshold configuration with operators, duration, and severity levels
New Methods
AlertsService
ListChannels(ctx, opts)- Retrieve all notification channels for an organizationchannels, meta, err := client.Alerts.ListChannels(ctx, &ListOptions{Page: 1, Limit: 20})
MetricsService
GetServerMetrics(ctx, serverUUID, metricName, timeRange)- Query specific server metrics within a time rangemetrics, err := client.Metrics.GetServerMetrics(ctx, "server-uuid", "cpu.usage", &TimeRange{ Start: "2024-01-01T00:00:00Z", End: "2024-01-02T00:00:00Z", })
💡 Use Cases
These additions enable the alerts-controller to:
- Manage notification channels across multiple platforms
- Query specific metrics for alert evaluation
- Handle complex alert rules with multiple thresholds and scopes
- Support time-based alert conditions
Full Changelog: v1.0.3...v1.0.4